Попытка решить проблемы PPA с libvlccore9, из-за которой управление пакетами стало неработоспособным

Поскольку у PPA нет реального баг-трекера, и они довольно плохо обслуживаются, я думаю, я бы просто спросил, как это исправить здесь.

Пакет libvlccore9 в PPA-устройстве vlc-master пытается установить /usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0, который должен быть установлен в libvlccore8.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libodbcinstq4-1 vlc-bin vlc-l10n vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-splitter vlc-plugin-visualization
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libvlccore9
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
34 not fully installed or removed.
Need to get 470 kB of archives.
After this operation, 1,243 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/videolan/master-daily/ubuntu artful/main amd64 libvlccore9 amd64 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1 [470 kB]
Fetched 470 kB in 1s (279 kB/s)      
(Reading database ... 322201 files and directories currently installed.)
Preparing to unpack .../libvlccore9_3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1_amd64.deb ...
Unpacking libvlccore9:amd64 (3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1) ...
dpkg: error processing archive /var/cache/apt/archives/libvlccore9_3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0', which is also in package libvlccore8:amd64 3.0.0~~git20171208+r73126+99~ubuntu17.10.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libvlccore9_3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

вопрос в том, почему libvlccore8 не показывает этот файл,

apt-file show libvlccore8
libvlccore8: /usr/lib/x86_64-linux-gnu/libvlccore.so.8
libvlccore8: /usr/lib/x86_64-linux-gnu/libvlccore.so.8.0.0
libvlccore8: /usr/share/bug/libvlccore8/control
libvlccore8: /usr/share/bug/libvlccore8/presubj
libvlccore8: /usr/share/doc/libvlccore8/NEWS.Debian.gz
libvlccore8: /usr/share/doc/libvlccore8/changelog.Debian.gz
libvlccore8: /usr/share/doc/libvlccore8/copyright

У меня есть libvlccore8

dpkg -l | grep -i libvlccore
rc  libvlccore7                                   2.1.6-0ubuntu14.04.1                            amd64        base library for VLC and its modules
ii  libvlccore8:amd64                             3.0.0~~git20171208+r73126+99~ubuntu17.10.1      amd64        base library for VLC and its modules

Но я могу даже не удаляю его в текущем состоянии,

sudo apt-get --purge remove libvlccore8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libvlc5 : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
 phonon4qt5-backend-vlc : Depends: libvlccore8 (>= 2.0.0) but it is not going to be installed
 vlc-plugin-base : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                   Depends: vlc-plugin-abi-4-0-0
 vlc-plugin-notify : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                     Depends: vlc-plugin-abi-4-0-0
 vlc-plugin-qt : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                 Depends: vlc-plugin-abi-4-0-0
 vlc-plugin-samba : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                    Depends: vlc-plugin-abi-4-0-0
 vlc-plugin-skins2 : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                     Depends: vlc-plugin-abi-4-0-0
 vlc-plugin-video-output : Depends: libvlccore8 (= 3.0.0~~git20171208+r73126+99~ubuntu17.10.1) but it is not going to be installed
 vlc-plugin-video-splitter : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                             Depends: vlc-plugin-abi-4-0-0
 vlc-plugin-visualization : Depends: libvlccore9 (>= 3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1~) but it is not going to be installed
                            Depends: vlc-plugin-abi-4-0-0
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

И я не могу запустить --fix-broken install, потому что тогда он пытается сделать то же самое, что не получается ...

apt-get --fix-broken install
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:
  libodbcinstq4-1 vlc-bin vlc-l10n vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-splitter vlc-plugin-visualization
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libvlccore9
The following NEW packages will be installed:
  libvlccore9
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
34 not fully installed or removed.
Need to get 0 B/470 kB of archives.
After this operation, 1,243 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 322201 files and directories currently installed.)
Preparing to unpack .../libvlccore9_3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1_amd64.deb ...
Unpacking libvlccore9:amd64 (3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1) ...
dpkg: error processing archive /var/cache/apt/archives/libvlccore9_3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0', which is also in package libvlccore8:amd64 3.0.0~~git20171208+r73126+99~ubuntu17.10.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libvlccore9_3.0.0~rc1~~git20171213+r73247+108~ubuntu17.10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
3
задан 15 December 2017 в 20:30

2 ответа

Чтобы решить эти проблемы, я запустил

rm -rf /usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0
apt-get --purge --yes remove '*vlc*'

. Этот неуклюжий подход в конечном итоге удалил все следы VLC. С этого момента я думал, что смогу добавить его заново. Но тогда, вероятно, реальная проблема все время появилась. Внутренние версии строки в PPA были повреждены .

Чтобы перевести вашу систему в согласованное состояние, вы должны вручную удалить libvlccore.so.9.0.0, без чего dpkg не сможет продолжить работу.

3
ответ дан 15 December 2017 в 20:30

У меня была такая же проблема. Попробуйте эти шаги:

sudo dpkg --purge libvlccore8
sudo apt-get --fix-broken install
sudo apt-get update
sudo apt-get -y upgrade
3
ответ дан 15 December 2017 в 20:30

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

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