我目前在运行任何 apt-get install 命令时遇到错误
类似于: apt 损坏,由于未满足依赖关系而无法更新 libglvnd(Nvidia) 以及那里列出的重复项。那里列出的任何一种方法似乎都不起作用。
我对 nilesh_101 提到的最后一个解决方案的评论有类似的问题
输出sudo 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:
gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 gir1.2-javascriptcoregtk-4.0 gir1.2-soup-2.4 gir1.2-webkit2-4.0 gstreamer1.0-nice libdee-1.0-4 libfarstream-0.2-5 libgadu3 libgirara-gtk3-3 libgtkspell0
libllvm6.0:i386 libmeanwhile1 libmessaging-menu0 libprotobuf-c1 libpurple-bin libpurple0 libunity-protocol-private0 libunity-scopes-json-def-desktop libunity9 libzephyr4 linux-headers-4.15.0-65
linux-headers-4.15.0-65-generic linux-image-4.15.0-65-generic linux-modules-4.15.0-65-generic linux-modules-extra-4.15.0-65-generic pidgin-data python-attr python-automat python-click python-colorama
python-constantly python-hyperlink python-incremental python-lzma python-pam python-parsley python-pyasn1 python-pyasn1-modules python-serial python-service-identity python-twisted python-twisted-bin
python-twisted-core python-txsocksx python-zope.interface
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libglvnd-core-dev
The following NEW packages will be installed:
libglvnd-core-dev
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
3 not fully installed or removed.
Need to get 0 B/153 kB of archives.
After this operation, 2.291 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 504288 files and directories currently installed.)
Preparing to unpack .../libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb ...
Unpacking libglvnd-core-dev:amd64 (1.2.0-1~b~padoka0) ...
dpkg: error processing archive /var/cache/apt/archives/libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb (--unpack):
trying to overwrite '/usr/include/EGL/egl.h', which is also in package libegl1-mesa-dev:amd64 1:19.3~git191017152900.82f18b7~b~padoka0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
目前有谁解决了这个问题吗?
答案1
在对确切的 .deb 文件进行进一步研究后,我发现另一个文件也遇到了问题:https://askubuntu.com/questions/1187545/dpkg-error-conflict-while-installing-packages/1189151
这个文件和 doug 的信息一起帮助我弄清楚了错误出在以下地方ppa: https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa
删除这个有帮助。