即使在Ubuntu 14.10中安装了Gedit,也无法正常工作

dzil123

当我gedit在终端中输入内容时,我得到:

daniel@daniel-pc:~$ gedit
The program 'gedit' is currently not installed. You can install it by typing:
sudo apt-get install gedit

所以我这样做:

daniel@daniel-pc:~$ sudo apt-get install gedit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gedit : Depends: gedit-common (< 3.11) but 3.12.2-0ubuntu1~trusty1 is to be installed
E: Unable to correct problems, you have held broken packages.
daniel@daniel-pc:~$ 

背景:

我遵循了http://howtoubuntu.org/things-to-do-after-installing-ubuntu-14-10-utopic-unicorn中看到的所有代码,但是在我注意到许多基本程序(例如getedit和nautilus)具有我用gnome样式代替了统一样式,然后从GUI软件和Updates中删除了PPA。

我还编辑sudo apt-get install edubuntu-desktop了edubuntu中的程序,但是在更改主题和背景后,我按照此处的说明进行操作:如何从软件包中删除所有程序?,从返回的列表中选择不需要的程序。我跑

daniel@daniel-pc:~$ apt-cache show gedit
Package: gedit
Priority: optional
Section: gnome
Installed-Size: 2615
Maintainer: Ubuntu Desktop Team <[email protected]>
Original-Maintainer: Debian GNOME Maintainers [email protected]
Architecture: amd64
Version: 3.10.4-0ubuntu6
Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.14), libcairo2 (>= 1.2.4), libenchant1c2a (>= 1.6.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libgirepository-1.0-1 (>= 0.9.3), libglib2.0-0 (>= 2.38), libgtk-3-0 (>= 3.10), libgtksourceview-3.0-1 (>= 3.10.1), libpango-1.0-0 (>= 1.14.0), libpeas-1.0-0 (>= 1.1.0), libx11-6, libxml2 (>= 2.7.4), libzeitgeist-2.0-0 (>= 0.9.9), gedit-common (>= 3.10), gedit-common (<< 3.11), gsettings-desktop-schemas, python3-gi (>= 3.0), python-gi-cairo (>= 3.0), gir1.2-peas-1.0, iso-codes
Recommends: gir1.2-gtksource-3.0, zenity, yelp
Suggests: gedit-plugins
Breaks: gedit-plugins (<< 2.91)
Filename: pool/main/g/gedit/gedit_3.10.4-0ubuntu6_amd64.deb
Size: 483208
MD5sum: 3e4508090c23d68053212ab02cb0287c
SHA1: 9f38aafddfa21cd2743b863b1783710a5360d0d2
SHA256: d43073382e1b9894abecfcd8fe6a04e2c771f6aabe0891e666a8f59ee2107283
Description-en: official text editor of the GNOME desktop environment
 gedit is a text editor which supports most standard editor features,
 extending this basic functionality with other features not usually
 found in simple text editors. gedit is a graphical application which
 supports editing multiple text files in one window (known sometimes as
 tabs or MDI).
 .
 gedit fully supports international text through its use of the Unicode
 UTF-8 encoding in edited files. Its core feature set includes syntax
 highlighting of source code, auto indentation and printing and print preview
 support.
 .
 gedit is also extensible through its plugin system, which currently
 includes support for spell checking, comparing files, viewing CVS
 ChangeLogs, and adjusting indentation levels.
Description-md5: 5091aaf6659e6bf7ca9b32695a59f9cd
Homepage: http://www.gnome.org/projects/gedit/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop

daniel@daniel-pc:~$

因此,它说已安装gedit,但未安装。我试图通过`sudo apt-get remove gedit ='和版本号来卸载gedit的Gnome版本,但是我不记得了。

编辑:

daniel@daniel-pc:~$ apt-cache policy gedit-common
gedit-common:
  Installed: 3.12.2-0ubuntu1~trusty1
  Candidate: 3.12.2-0ubuntu1~trusty1
  Version table:
 *** 3.12.2-0ubuntu1~trusty1 0
        100 /var/lib/dpkg/status
     3.10.4-0ubuntu6 0
        500 http://us.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
daniel@daniel-pc:~$

编辑:现在的nautulus图像,即卸载之前gedit的外观链接在菜单栏中查看。看起来像侏儒,不是默认的统一。我也想为所有受此影响的程序提供一个通用的解决方案,而不仅仅是gedit和nautilus(尽管我不知道是否有)。

g_p

第一次运行

sudo apt-get purge gedit gedit-common
sudo apt-get clean

然后在安装gedit后使用

sudo apt-get install gedit

它应该工作。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

即使源代码中包含Javascript也无法正常工作

来自分类Dev

在Dell Inspiron 14 7490上安装Ubuntu

来自分类Dev

刚安装了Ubuntu 13.10,无法使Netflix桌面正常工作

来自分类Dev

即使安装了熊猫也无法正常工作

来自分类Dev

即使安装了numpy也无法导入?

来自分类Dev

即使在Ubuntu 14.10中安装了Gedit,也无法正常工作

来自分类Dev

在Dell Inspiron 14 7490上安装Ubuntu

来自分类Dev

刚安装了Ubuntu 13.10,无法使Netflix桌面正常工作

来自分类Dev

即使使用旧版BIOS Ubuntu 16.04LTS安装,GRUB也无法检测到旧版BIOS Windows 10安装

来自分类Dev

无法打开Nano,也无法在Ubuntu Server 14上安装它

来自分类Dev

即使安装了Adobe AIR也无法打开.air文件

来自分类Dev

无法在Ubuntu 14上运行IDEA 14

来自分类Dev

新系统无法识别硬盘(ubuntu 14)

来自分类Dev

Windows 10 DISM即使安装了ISO也无法找到文件

来自分类Dev

无法在ubuntu-14中安装许多命令

来自分类Dev

即使在Ubuntu 14,10中配置了以太网接口后也无法连接Internet

来自分类Dev

即使安装了openssh-server,也无法通过SSH进入运行带有NAT IP地址的Ubuntu VM

来自分类Dev

Ubuntu 14,服务不会停止,关机无法正常工作

来自分类Dev

Ubuntu 15.10:即使我有14GB的未分配空间,也无法扩展Ubuntu分区

来自分类Dev

Ubuntu 14安装phpmyadmin新手问题

来自分类Dev

在Windows 10旁边安装Ubuntu 14 LTS

来自分类Dev

PHP无法在ubuntu 14上运行

来自分类Dev

如何安装uTorrent 14 + Ubuntu

来自分类Dev

即使安装了快照包,也无法使用

来自分类Dev

在Ubuntu 14中弄坏公寓

来自分类Dev

即使重新安装凉亭,聚合物元件也无法正常工作

来自分类Dev

即使正确安装,也无法在 Windows 上安装 Ubuntu

来自分类Dev

Ubuntu 14 升级问题,因为我在 Ubuntu 中安装了 ROS

来自分类Dev

在 Ubuntu 14 中安装 Java 12

Related 相关文章

  1. 1

    即使源代码中包含Javascript也无法正常工作

  2. 2

    在Dell Inspiron 14 7490上安装Ubuntu

  3. 3

    刚安装了Ubuntu 13.10,无法使Netflix桌面正常工作

  4. 4

    即使安装了熊猫也无法正常工作

  5. 5

    即使安装了numpy也无法导入?

  6. 6

    即使在Ubuntu 14.10中安装了Gedit,也无法正常工作

  7. 7

    在Dell Inspiron 14 7490上安装Ubuntu

  8. 8

    刚安装了Ubuntu 13.10,无法使Netflix桌面正常工作

  9. 9

    即使使用旧版BIOS Ubuntu 16.04LTS安装,GRUB也无法检测到旧版BIOS Windows 10安装

  10. 10

    无法打开Nano,也无法在Ubuntu Server 14上安装它

  11. 11

    即使安装了Adobe AIR也无法打开.air文件

  12. 12

    无法在Ubuntu 14上运行IDEA 14

  13. 13

    新系统无法识别硬盘(ubuntu 14)

  14. 14

    Windows 10 DISM即使安装了ISO也无法找到文件

  15. 15

    无法在ubuntu-14中安装许多命令

  16. 16

    即使在Ubuntu 14,10中配置了以太网接口后也无法连接Internet

  17. 17

    即使安装了openssh-server,也无法通过SSH进入运行带有NAT IP地址的Ubuntu VM

  18. 18

    Ubuntu 14,服务不会停止,关机无法正常工作

  19. 19

    Ubuntu 15.10:即使我有14GB的未分配空间,也无法扩展Ubuntu分区

  20. 20

    Ubuntu 14安装phpmyadmin新手问题

  21. 21

    在Windows 10旁边安装Ubuntu 14 LTS

  22. 22

    PHP无法在ubuntu 14上运行

  23. 23

    如何安装uTorrent 14 + Ubuntu

  24. 24

    即使安装了快照包,也无法使用

  25. 25

    在Ubuntu 14中弄坏公寓

  26. 26

    即使重新安装凉亭,聚合物元件也无法正常工作

  27. 27

    即使正确安装,也无法在 Windows 上安装 Ubuntu

  28. 28

    Ubuntu 14 升级问题,因为我在 Ubuntu 中安装了 ROS

  29. 29

    在 Ubuntu 14 中安装 Java 12

热门标签

归档