我在 Dell Inspiron 15-5547、AMD Radeon HD R7 M265 上使用带有 HWE 堆栈(内核 3.16)的 Ubuntu 14.04。
我一直在尝试安装专有驱动程序 fglrx 驱动程序,以便能够在显卡之间切换。经过一番尝试,我发现了这一点 这bug。没有仔细考虑,我按照评论 24 的建议运行
sudo apt-get install xserver-xorg-core
安装未完成,但返回
Extracting templates from packages: 100%
(Reading database ... 773072 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (10.1.3-0ubuntu0.4) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb (--unpack):
trying to overwrite shared '/etc/drirc', which is different from other instances of package libgl1-mesa-dri:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
现在,我想撤销该更改。我尝试了、、、,sudo apt-get remove xserver-xorg-core
但得到的结果是:sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get autoclean
bruni@bruni-Inspiron-5547:~$ sudo apt-get autoremove
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:
libegl1-mesa-drivers : Depends: libgl1-mesa-dri
libgbm1 : Depends: libgl1-mesa-dri
libgl1-mesa-dri-lts-quantal : Depends: libgl1-mesa-dri
qtdeclarative5-qtquick2-plugin : Depends: libgl1-mesa-dri
xorg : Depends: xserver-xorg (>= 1:7.7+1ubuntu8.1) orN
xserver-xorg-renamed
Depends: libgl1-mesa-dri
xserver-xorg-lts-quantal : Depends: xserver-xorg
xserver-xorg-video-all-lts-utopic : Depends: xserver-xorg-video-ati-lts-topic but it is not installed
Depends: xserver-xorg-video-cirrus-lts-utopic but it is not installed
Depends: xserver-xorg-video-fbdev-lts-utopic but it is not installed
Depends: xserver-xorg-video-intel-lts-utopic but it is not installed
Depends: xserver-xorg-video-mga-lts-utopic but it is not installed
Depends: xserver-xorg-video-modesetting-lts-utopic but it is not installed
Depends: xserver-xorg-video-neomagic-lts-utopic but it is not installed
Depends: xserver-xorg-video-nouveau-lts-utopic but it is not installed
Depends: xserver-xorg-video-openchrome-lts-utopic but it is not installed
Depends: xserver-xorg-video-savage-lts-utopic but it is not installed
Depends: xserver-xorg-video-siliconmotion-lts-utopic but it is not installed
Depends: xserver-xorg-video-sisusb-lts-utopic but it is not installed
Depends: xserver-xorg-video-tdfx-lts-utopic but it is not installed
Depends: xserver-xorg-video-trident-lts-utopic but it is not installed
Depends: xserver-xorg-video-vesa-lts-utopic but it is not installed
Depends: xserver-xorg-video-vmware-lts-utopic but it is not installed
E: Unmet dependencies. Try using -f.
有什么建议吗,如何清理这个烂摊子?
sudo apt update 或 sudo apt-get update 正常工作。
Ign http://gr.archive.ubuntu.com trusty InRelease
Ign http://gr.archive.ubuntu.com trusty-security InRelease
Hit http://gr.archive.ubuntu.com trusty Release.gpg
Hit http://gr.archive.ubuntu.com trusty-security Release.gpg
Hit http://gr.archive.ubuntu.com trusty Release
Hit http://repo.steampowered.com precise InRelease
Hit http://gr.archive.ubuntu.com trusty-security Release
Hit http://gr.archive.ubuntu.com trusty/main Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://gr.archive.ubuntu.com trusty/restricted Sources
Hit http://gr.archive.ubuntu.com trusty/universe Sources
Hit http://gr.archive.ubuntu.com trusty/multiverse Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://gr.archive.ubuntu.com trusty/main amd64 Packages
Hit http://gr.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://repository.spotify.com stable InRelease
Hit http://gr.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://gr.archive.ubuntu.com trusty/multiverse amd64 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://gr.archive.ubuntu.com trusty/main i386 Packages
Hit http://gr.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://gr.archive.ubuntu.com trusty/universe i386 Packages
Hit http://repository.spotify.com stable/non-free amd64 Packages
Hit http://gr.archive.ubuntu.com trusty/multiverse i386 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://repository.spotify.com stable/non-free i386 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://gr.archive.ubuntu.com trusty/main Translation-en
Hit http://gr.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://gr.archive.ubuntu.com trusty/restricted Translation-en
Hit http://gr.archive.ubuntu.com trusty/universe Translation-en
Hit http://gr.archive.ubuntu.com trusty-security/main Sources
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://gr.archive.ubuntu.com trusty-security/restricted Sources
Hit http://gr.archive.ubuntu.com trusty-security/universe Sources
Hit http://gr.archive.ubuntu.com trusty-security/multiverse Sources
Hit http://gr.archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://gr.archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://gr.archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://gr.archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://gr.archive.ubuntu.com trusty-security/main i386 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://gr.archive.ubuntu.com trusty-security/restricted i386 Packages
Hit http://gr.archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://repo.steampowered.com precise/steam Sources
Hit http://ppa.launchpad.net trusty Release
Hit http://gr.archive.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://gr.archive.ubuntu.com trusty-security/main Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://gr.archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://gr.archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://gr.archive.ubuntu.com trusty-security/universe Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Ign http://gr.archive.ubuntu.com trusty/main Translation-en_US
Ign http://gr.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://gr.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://repository.spotify.com stable/non-free Translation-en_US
Ign http://gr.archive.ubuntu.com trusty/universe Translation-en_US
Hit http://repo.steampowered.com precise/steam amd64 Packages
Ign http://repository.spotify.com stable/non-free Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://repo.steampowered.com precise/steam i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://repo.steampowered.com precise/steam Translation-en_US
Ign http://repo.steampowered.com precise/steam Translation-en
Reading package lists... Done
ls /etc/apt/sources.list.d 但请注意,这些大多已被禁用,应该不是问题。
ian-berke-ppa-drawers-trusty.list libreoffice-ppa-trusty.list spotify.list.save ultradvorka-ppa-trusty.list vikoadi-ppa-trusty.list
ian-berke-ppa-drawers-trusty.list.save spotify.list steam.list ultradvorka-ppa-trusty.list.save vikoadi-ppa-trusty.list.save
答案1
正如你所说,这太乱了,这一定是由于你的存储库和 PPA 源存在问题
我建议先清理一下烂摊子:从
sudo apt-get install gksu
sudo apt-get install gedit
然后gksudo gedit /etc/apt/sources.list
在那里,在打开的文件中,用在那里生成的适当的 sources.list 替换所有内容:http://repogen.simplylinux.ch/(选中全部但不要选中“建议”。)
保存文件时关闭它。然后
sudo apt-get autoclean
sudo apt-get clean
查看 :ls /etc/apt/sources.list.d
还摆脱了精确的戴尔 PPA。
然后尝试
sudo apt update
sudo apt-get install -f
sudo apt full-upgrade
如果仍然被阻止,您可能必须先摆脱阻止包:
sudo dpkg -r --force-remove-reinstreq 'TheBlockingPackage'