見出しに赤いエラーアイコンがあり、フォーラムの多くのアドバイスに従いましたが、どれも役に立たなかった。私はハンガリー語でUbuntuを使用していますが、エラーメッセージから重要なものを読むことができます。 Sudo apt-get install -f
と入力すると、これが結果です。
$ Sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
kde-config-telepathy-accounts
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 213142 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy- accounts_4%3a15.12.3-0ubuntu1_AMD64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
編集!:
~$ Sudo apt-get autoremove kde-config-telepathy-accounts
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'kde-config-telepathy-accounts' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
kde-telepathy-minimal : Depends: kde-config-telepathy-accounts (>= 15.04.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
hamana@hamana-AO756:~$ Sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
hamana@hamana-AO756:~$ Sudo apt-get update
Get:1 http://hu.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:4 http://hu.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Fetched 437 kB in 1s (338 kB/s)
Reading package lists... Done
hamana@hamana-AO756:~$ Sudo apt-get --reinstall kde-config-telepathy-accounts
E: Command line option --reinstall is not understood in combination with the other options
hamana@hamana-AO756:~$ Sudo apt-get install --reinstall kde-config-telepathy-accounts
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
kde-config-telepathy-accounts
0 upgraded, 1 newly installed, 0 to remove and 362 not upgraded.
2 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 825 kB of additional disk space will be used.
(Reading database ... 213142 files and directories currently installed.)
Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb ...
Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb (--unpack):
trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hamana@hamana-AO756:~$
Sudo dpkg --configure -a
動作しない場合
Sudo apt-get autoremove <packagename>
Sudo apt-get autoclean
Sudo apt-get update
Sudo apt-get install --reinstall <packagename>
編集:それが動作しない場合は、sources.list file。を削除し、新しいsources.listを作成...
Sudo rm /etc/apt/sources.list
次に、入力します
Sudo software-properties-gtk
これにより、software-properties-gtkが開き、newsources.listが自動的に作成されます。
次に、サーバーを米国または選択した他のサーバーに変更します。新しいsources.listを作成するには、新しいダイアログからリポジトリを有効にする必要があります。
すべてのボックスにチェックマークを付け、[元に戻す]をクリックしてから[閉じる]をクリックします。
デフォルトのリポジトリを復元する必要がある
Sudo apt-get update && Sudo apt-get dist-upgrade -y
(このようなことが発生した場合は、インストールする前にこのファイルをバックアップしてから回復することをお勧めします)