web-dev-qa-db-ja.com

Ubuntu 14.10にインストールされているにもかかわらずGeditが機能しない

ターミナルで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ソフトウェアと更新からPPAを削除しました。

Edubuntuで見つかったプログラムを取得するためにSudo apt-get install edubuntu-desktop- edしましたが、テーマと背景を変更した後、ここの手順に従いました: どのプログラムをパッケージから削除するのですか? リストから返されたくありませんでした。走る

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がアンインストール前にどのように見えたかを示しています。 link メニューバーを確認します。デフォルトの単一性ではなく、gnomeのように見えます。また、geditとnautilusだけでなく、これに影響を受けるすべてのプログラムの一般的な解決策が必要です(ただし、存在するかどうかはわかりません)。

4
dzil123

ファーストラン

Sudo apt-get purge gedit gedit-common
Sudo apt-get clean

次に、使用してgeditをインストールした後

Sudo apt-get install gedit

動作するはずです。

2
g_p