修复 Debian 测试发行版中损坏的软件包

修复 Debian 测试发行版中损坏的软件包

我正在 VirtualBox 实例中尝试使用 Linux Mint Debian Edition (LMDE),看看它是否适合我的主操作系统。我对大多数系统管理非常有能力,我想要像 LMDE 这样基于 Debian 测试的东西,这样我就可以拥有比 Ubuntu/Linux Mint 更活跃/最新的操作系统,这就是我所拥有的历史上运行在过去。每 6 个月重新安装操作系统以保持最新状态对我来说似乎是错误的。

安装虚拟 LMDE 和 后apt-get updateapt-get dist-upgrade出现以下错误:

Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  gstreamer0.10-plugins-really-bad libntfs-3g75 libntfs-3g804 libvlccore4 vlc
  vlc-nox vlc-plugin-notify vlc-plugin-pulse
The following NEW packages will be installed:
  cpp-4.5 gcc-4.5 gcc-4.5-base gcj-4.6-base gcj-4.6-jre-lib gir1.2-peas-1.0
  gnome-desktop3-data libaacplus2 libaacs0 libbluray-bdj libbluray1
  libcrystalhd3 libelfg0 libevince3 libgail-3-0 libgcj-bc libgcj-common
  libgcj12 libgdata1.8-cil libglew1.6 libgnome-desktop-3-0 libjaxp1.3-java
  libjaxp1.3-java-gcj liblockfile-bin libmhash2 libmission-control-plugins0
  libmtp-runtime libmtp9 libpeas-1.0-0 libpeas-common libpoppler-glib6
  libpoppler13 libseed-gtk3-0 libsigsegv2 libvlccore5 libwebkitgtk-3.0-0
  libwebkitgtk-3.0-common libxalan2-java libxalan2-java-gcj libxerces2-java
  libxerces2-java-gcj linux-headers-3.0.0-1-amd64 linux-headers-3.0.0-1-common
  linux-headers-amd64 linux-image-3.0.0-1-amd64 linux-image-amd64
  linux-kbuild-3.0.0 poppler-data zenity-common
The following packages have been kept back:
  foomatic-db-engine gstreamer0.10-ffmpeg libavcodec53 mplayer
The following packages will be upgraded:
  acpid alsa-utils apt apt-file apt-utils aspell aspell-en banshee base-passwd
  bc binfmt-support brasero brasero-common bsdutils busybox cpp-4.4
  cpufrequtils cron cups cups-client cups-common cups-driver-gutenprint
  cups-ppdc curl dc dkms dmsetup eog evince evince-common fakeroot
  firmware-atheros firmware-bnx2 firmware-bnx2x firmware-intelwimax
  firmware-ipw2x00 firmware-ivtv firmware-iwlwifi firmware-linux
  firmware-linux-nonfree firmware-qlogic firmware-ralink firmware-realtek
  foomatic-db foomatic-filters fortunes-husse fuse fuse-utils g++-4.4 gawk
  gcc-4.4 gcc-4.4-base gconf-editor genisoimage gettext-base gimp
  gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gnome-applets gnome-applets-data
  gnome-bluetooth gnome-disk-utility gnome-nettool gnome-power-manager
  gnome-user-share grep grub-common grub-pc grub-pc-bin grub2-common
  gstreamer0.10-plugins-bad gzip hal hwdata iptables iso-codes jfsutils
  klibc-utils libalgorithm-diff-xs-perl libapache2-mod-dnssd libarchive1
  libart2.0-cil libaspell15 libaudio2 libavutil51 libblas3gf libbrasero-media0
  libbs2b0 libburn4 libcap2-bin libcpufreq0 libcupscgi1 libcupsdriver1
  libcupsimage2 libcupsmime1 libcupsppdc1 libcurl3 libdevmapper1.02.1 libedit2
  libenchant1c2a libencode-locale-perl libevolution libfaac0 libfuse2
  libgconf2.0-cil libgdiplus libgdu-gtk0 libgdu0 libgimp2.0 libglade2.0-cil
  libglib-perl libglib2.0-cil libglu1-mesa libgnome-bluetooth7
  libgnome-vfs2.0-cil libgnome2.24-cil libgnomecanvas2-0
  libgnomecanvas2-common libgnomepanel2.24-cil libgnomeui-0 libgnomeui-common
  libgstfarsight0.10-0 libgtk2.0-cil libgtkmm-2.4-1c2a libgudev-1.0-0
  libgutenprint2 libhal-storage1 libhal1 libhtml-format-perl
  libhtml-template-perl libieee1284-3 libijs-0.35 libisofs6 libjpeg62
  libjs-jquery libkarma0 libklibc libkpathsea5 liblapack3gf liblcms1
  liblist-moreutils-perl liblocale-gettext-perl liblockfile1 liblua5.1-0
  liblvm2app2.2 liblzma2 liblzo2-2 libmjpegtools-2.0-0 libmng1
  libmono-addins-gui0.2-cil libmono-addins0.2-cil libmpfr4 libmtp-common
  libnotify-bin libnspr4-0d libnss3-1d liboobs-1-4 libparted0debian1 libpci3
  libpcre3 libpcsclite1 libplist1 libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libpolkit-gtk-1-0 libportaudio2 libpurple-bin
  libpurple0 libraptor2-0 librasqal3 librecode0 libreoffice libreoffice-base
  libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core
  libreoffice-draw libreoffice-emailmerge libreoffice-filter-mobiledev
  libreoffice-gnome libreoffice-gtk libreoffice-impress
  libreoffice-java-common libreoffice-math libreoffice-report-builder-bin
  libreoffice-style-galaxy libreoffice-style-tango libreoffice-writer
  libruby1.8 libsane libsane-common libsgutils2-2 libsmbclient
  libsoup-gnome2.4-1 libsqlite0 libssh2-1 libstdc++6-4.4-dev libswscale2
  libtalloc2 libtdb1 libtelepathy-glib0 libtext-charwidth-perl
  libtext-iconv-perl liburi-perl libusb-1.0-0 libv4l-0 libvlc5 libwbclient0
  libwmf0.2-7 libxapian22 libxml2-utils libxslt1.1 libxv1 libyajl1
  linux-headers-2.6-amd64 linux-image-2.6-amd64 locales m4 man-db manpages
  manpages-dev mesa-utils mint-meta-codecs mintbackup mintmenu
  mintupdate-debian mintwelcome mobile-broadband-provider-info modemmanager
  multiarch-support nautilus-share net-tools network-manager-gnome
  notification-daemon ntfs-3g ntp openssh-client p7zip p7zip-full pciutils
  pidgin pidgin-data policykit-1 policykit-1-gnome poppler-utils procps
  python-bugbuddy python-chardet python-debian python-evolution
  python-gnomeapplet python-gnomedesktop python-gnomekeyring python-gtkspell
  python-libxml2 python-mako python-markupsafe python-notify python-openssl
  python-parted python-uno python-wnck python-xapian rsyslog ruby1.8 samba
  samba-common samba-common-bin sane-utils simple-scan system-tools-backends
  sysvinit telepathy-gabble telepathy-mission-control-5 thunderbird
  thunderbird-l10n-en-us transmission-common transmission-gtk ttf-dejavu
  ttf-dejavu-core ttf-dejavu-extra ttf-opensymbol ufraw-batch ufw uno-libs3
  update-inetd ure usb-modeswitch usb-modeswitch-data usbutils uuid-runtime
  vim-common vim-tiny vino vlc-data w3m wget wvdial xdg-user-dirs xinit xnest
  xserver-xorg xserver-xorg-input-all xserver-xorg-video-all xsltproc xz-utils
  zenity
Preconfiguring packages ...
309 upgraded, 49 newly installed, 8 to remove and 4 not upgraded.
Need to get 0 B/424 MB of archives.
After this operation, 325 MB of additional disk space will be used.
(Reading database ... 
(Reading database ... 137421 files and directories currently installed.)
Preparing to replace gstreamer0.10-plugins-bad 0.10.22-2 (using .../gstreamer0.10-plugins-bad_0.10.22-3_amd64.deb) ...
Unpacking replacement gstreamer0.10-plugins-bad ...
dpkg: error processing /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-3_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/gstreamer-0.10/libgstxvid.so', which is also in package gstreamer0.10-plugins-really-bad 0.10.22-0.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-3_amd64.deb

显然,gstreamer-plugins-bad在尝试卸载自身或被替换时经历了一段丑陋的(双关语!)时间。诡异的。我在 Ubuntu 管理的“所有这些年”中从未见过这个问题,这可能是因为人们正在昼夜不停地工作以确保我不会看到这样的问题。

我该如何解决这个问题?

答案1

gstreamer0.10-plugins-bad 软件包版本 0.10.22-3 替换了 gstreamer0.10-plugins-really-bad 版本 0.10.22-0.1 中的文件。这似乎是一个错误,它在这里不起作用,没有任何错误(请参阅这里了解更多信息)。但如果混合不同发行版的版本,则无法保证清晰的升级路径。

要解决该问题,只需gstreamer0.10-plugins-really-bad使用aptitude purge gstreamer0.10-plugins-really-bad或删除该包即可apt-get remove --purge gstreamer0.10-plugins-really-bad

答案2

这真的很奇怪,似乎你有三个版本gstreamer0.10-插件-坏:

  1. 安装的版本不是最新的:0.10.22-2
  2. 最新可用版本:0.10.22-3
  3. 一个wtf版本:0.10.22-0.1

我想您需要以某种方式删除这个“0.10.22-0.1”版本。您可以尝试:

apt-get install gstreamer0.10-plugins-really-bad=0.10.22-0.1

或者

dpkg -r gstreamer0.10-plugins-really-bad

为了删除版本0.10.22-2或者0.10.22-0.1。之后你就只有1您系统上此软件包的版本,您应该能够升级。

注意:如果您也删除并重新安装这个,以便恢复健康的系统,可能会更好。

答案3

即使它覆盖了不同包中的文件,也可以强制安装包。当然,通常不建议这样做,等等,但是这些工具使您有能力做到这一点。

sudo dpkg --force-overwrite -i /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-3_amd64.deb

相关内容