apt-get установить kubuntu-desktop не удалось - попытка перезаписать

root@gcomputer:~# apt-get install kubuntu-desktop
...
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
...
Unpacking kaccounts-providers (4:15.12.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/kaccounts-providers_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/etc/signon-ui/webkit-options.d/www.facebook.com.conf', which is also in package account-plugin-facebook 0.12+16.04.20160126-0ubuntu1
...
Errors were encountered while processing:
 /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
 /var/cache/apt/archives/kaccounts-providers_4%3a15.12.3-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Итак, я попробовал еще раз:

root@gcomputer:~# apt-get install kubuntu-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
kubuntu-desktop is already the newest version (1.338).
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).

Итак, я попробовал это:

root@gcomputer:~# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  liblept5 liblightdm-qt-3-0
Use 'apt autoremove' to remove them.
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 1 not upgraded.
259 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] 
(Reading database ... 518857 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)

Итак, я удалил его:

root@gcomputer:~# rm -rf /usr/share/accounts/services/google-im.service

Но все же то же самое:

root@gcomputer:~# apt-get install -f
...
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)

Поэтому я попытался удалить пакет account-plugin-google:

root@gcomputer:~# apt-get purge account-plugin-google
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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
 unity-scope-gdrive : Depends: account-plugin-google but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Так что это не работает. Я не уверен, что делать дальше. Это кажется несколько не интуитивным.

...

1118 Я подумал, что, может быть, aptitude умнее и пытается мне больше помочь. Итак, я попытался:

root@gcomputer:~# aptitude remove account-plugin-google
The following packages will be REMOVED:  
  account-plugin-google liblept5{u} liblightdm-qt-3-0{u} 
The following partially installed packages will be configured:
... (a lot)
0 packages upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 2571 kB will be freed.
The following packages have unmet dependencies:
 unity-scope-gdrive : Depends: account-plugin-google but it is not going to be installed.
 kde-telepathy-minimal : Depends: kde-config-telepathy-accounts (>= 15.04.0) but it is not going to be installed.
The following actions will resolve these dependencies:

      Remove the following packages:                               
1)      kde-telepathy                                              
2)      kde-telepathy-minimal                                      
3)      unity-scope-gdrive                                         

      Leave the following dependencies unresolved:                 
4)      unity-lens-files recommends unity-scope-gdrive             
5)      unity-lens-photos recommends account-plugin-google         
6)      kde-telepathy-approver recommends kde-telepathy            
7)      kde-telepathy-auth-handler recommends kde-telepathy        
8)      kde-telepathy-contact-list recommends kde-telepathy        
9)      kde-telepathy-filetransfer-handler recommends kde-telepathy
10)     kde-telepathy-integration-module recommends kde-telepathy  
11)     kde-telepathy-send-file recommends kde-telepathy           
12)     kde-telepathy-text-ui recommends kde-telepathy             
13)     kubuntu-desktop recommends kde-telepathy                   
14)     mcp-account-manager-uoa recommends account-plugin-google   
15)     unity recommends unity-scope-gdrive                        


Accept this solution? [Y/n/q/?]   (I typed Y. Not sure but I hope the best.)
The following packages will be REMOVED:
  account-plugin-google kde-telepathy{a} kde-telepathy-approver{u} kde-telepathy-auth-handler{u} kde-telepathy-contact-list{u} 
  kde-telepathy-data{u} kde-telepathy-desktop-applets{u} kde-telepathy-filetransfer-handler{u} kde-telepathy-integration-module{u} 
  kde-telepathy-minimal{a} kde-telepathy-send-file{u} kde-telepathy-text-ui{u} libktpmodels9{u} libktpotr9{u} libktpwidgets9{u} liblept5{u} 
  liblightdm-qt-3-0{u} qml-module-org-kde-telepathy{u} unity-scope-gdrive{a} 
The following partially installed packages will be configured:
... (again a lot...)
0 packages upgraded, 0 newly installed, 19 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 8489 kB will be freed.
Do you want to continue? [Y/n/?]   (I typed Y.)
(Reading database ... 518855 files and directories currently installed.)
Removing kde-telepathy (15.04.20ubuntu1) ...
Removing kde-telepathy-minimal (15.04.20ubuntu1) ...
Removing kde-telepathy-approver (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-auth-handler (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-contact-list (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-text-ui (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-send-file (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-desktop-applets (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-filetransfer-handler (4:15.12.3-0ubuntu1) ...
Removing kde-telepathy-integration-module (4:15.12.1-2ubuntu2) ...
Removing qml-module-org-kde-telepathy (4:15.12.3-0ubuntu1) ...
Removing libktpwidgets9 (4:15.12.3-0ubuntu1) ...
Removing libktpmodels9 (4:15.12.3-0ubuntu1) ...
Removing libktpotr9 (4:15.12.3-0ubuntu1) ...
Removing unity-scope-gdrive (0.9+16.04.20151125-0ubuntu1) ...
Removing account-plugin-google (0.12+16.04.20160126-0ubuntu1) ...
Removing liblept5 (1.73-1) ...
Removing liblightdm-qt-3-0:amd64 (1.18.2-0ubuntu1) ...
Removing kde-telepathy-data (4:15.12.3-0ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Current status: 0 (-1) broken.

Итак, похоже, что-то сделал. Не уверен, что все в порядке. Последнее сообщение немного сбивает с толку. 0 (-1) нарушено == 0 (+1) исправлено?

Я хотел еще раз проверить с apt-get:

root@gcomputer:~# apt-get install kubuntu-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
kubuntu-desktop is already the newest version (1.338).
The following packages were automatically installed and are no longer required:
  kaccounts-integration kde-telepathy-kaccounts kde-telepathy-kpeople libkaccounts1 libktpcommoninternals9 libktplogger9 libtelepathy-logger-qt5
  libtelepathy-qt5-0 signon-kwallet-extension telepathy-accounts-signon
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Я все еще задаюсь вопросом об этих вещах kde-телепатии. Они необязательны? У меня их нет сейчас? Они сломаны?

2
задан 31 July 2016 в 05:54

2 ответа

Попробуйте это

sudo find /var/cache -name "kde-config-telepathy-accounts*"

, Образец произвел

/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb

Установка это с флагом - перезапись силы как показано ниже:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb

Наконец, выполняет следующую команду для завершения плазменной установки KDE.

sudo apt-get -f install
0
ответ дан 31 July 2016 в 05:54

Необходимо работать clean прежде, чем работать -f install

sudo apt clean
sudo apt -f install

Сегодня, это помогает мне решить застрявший при установке kubuntu-desktop по моему ubuntu-desktop ноутбук.

справка была найдена на российском форуме Ubuntu http://forum.ubuntu.ru/index.php?topic=291122.0

0
ответ дан 17 April 2019 в 00:36

Другие вопросы по тегам:

Похожие вопросы: