AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 986350
Accepted
Evan Carroll
Evan Carroll
Asked: 2017-12-15 12:50:00 +0800 CST2017-12-15 12:50:00 +0800 CST 2017-12-15 12:50:00 +0800 CST

尝试解决导致包管理无法运行的 libvlccore9 的 PPA 问题

  • 772

因为 PPA 没有真正的错误跟踪器,而且维护得很差,我想我只想在这里问如何解决这个问题。

vlc-masterlibvlccore9 PPA中的包正在尝试安装,它应该由./usr/lib/x86_64-linux-gnu/libvlccore.so.9.0.0libvlccore8

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)
package-management
  • 2 2 个回答
  • 1611 Views

2 个回答

  • Voted
  1. Abhishek Salian
    2017-12-18T00:26:40+08:002017-12-18T00:26:40+08:00

    我有同样的问题。尝试以下步骤:

    sudo dpkg --purge libvlccore8
    sudo apt-get --fix-broken install
    sudo apt-get update
    sudo apt-get -y upgrade
    
    • 3
  2. Best Answer
    Evan Carroll
    2017-12-19T06:14:00+08:002017-12-19T06:14:00+08:00

    为了解决这些问题,我跑了

    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

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve