apt-get update && apt-get upgrade
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libxrender1 : Breaks: libxrender1:i386 (!= 1:0.9.7-1+deb7u1) but 1:0.9.7-1+deb7u1+b1 is installed
libxrender1:i386 : Breaks: libxrender1 (!= 1:0.9.7-1+deb7u1+b1) but 1:0.9.7-1+deb7u1 is installed
E: Unmet dependencies. Try using -f.
apt-get -f install
> # apt-get -f 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:
libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libaudio2:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libavcodec53:i386 libavutil51:i386 libcap2:i386 libcups2:i386
libdbus-1-3:i386 libdirac-encoder0:i386 libexpat1:i386 libffi5:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgcrypt11:i386 libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386 libgsm1:i386
libgssapi-krb5-2:i386 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libice6:i386 libjack-jackd2-0:i386 libjpeg62 libjpeg8:i386 libjson0:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386
libkrb5support0:i386 liblcms1:i386 libmng1:i386 libmp3lame0:i386 libogg0:i386 libopenjpeg2:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpcre3:i386 libpng12-0:i386 libpulse0:i386 libqt4-dbus:i386
libqt4-network:i386 libqt4-xml:i386 libqtcore4:i386 libqtdbus4:i386 libqtgui4:i386 libqtwebkit4:i386 libsamplerate0:i386 libschroedinger-1.0-0:i386 libsm6:i386 libsndfile1:i386 libspeex1:i386
libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386 libstdc++6:i386 libtasn1-3:i386 libtheora0:i386 libtiff4:i386 libva1:i386 libvorbis0a:i386 libvorbisenc2:i386 libvpx1:i386 libwrap0:i386 libx11-6:i386
libx11-xcb1:i386 libx264-123:i386 libxau6:i386 libxcb1:i386 libxdmcp6:i386 libxext6:i386 libxi6:i386 libxml2:i386 libxrender1:i386 libxss1:i386 libxt6:i386 libxtst6:i386 libxv1:i386 libxvidcore4:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libxrender1 libxrender1:i386
The following packages will be upgraded:
libxrender1 libxrender1:i386
2 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
1 not fully installed or removed.
Need to get 0 B/65.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Reading changelogs... Done
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
编辑:
如果我尝试:
apt-get remove --purge libxrender1:i386
它只是给了我与上面相同的错误。
有什么建议我可以解决这个问题吗?
谢谢
答案1
这是一个已知的错误。看Debian 错误报告 782505。
简而言之,这是一个错误的安全修复。简而言之,archs i386 和 amd64 的软件包 libxrender1 的共享变更日志文件有不同的内容
/usr/share/doc/libxrender1/changelog.Debian.gz
。这当然是不允许的dpkg
。
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782505#17有一个对我有用的临时解决方法的建议。建议一个可能更简单的替代方案https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782505#27,即 apt pinning。
希望安全团队很快就能解决这个问题。