提示 base-files 无法升级
apt-listchanges: Reading changelogs... Extracting templates from packages: 100% O Preconfiguring packages ... (Reading database ... 117496 files and directories currently installed.) Preparing to unpack .../base-files_13.8_amd64.deb ... ****************************************************************************** * * The base-files package cannot be installed because * /lib64 is a symbolic link and not pointing at usr/lib64 exactly. * * This is an unexpected situation. Cannot proceed with the upgrade. * * For more information please read https://wiki.debian.org/UsrMerge. * ****************************************************************************** dpkg: error processing archive /var/cache/apt/archives/base-files_13.8_amd64.deb (--unpack): new base-files package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/base-files_13.8_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 找了一下相关帖子,有人提示可以把/lib64 软链接删除,这一删任何命令都执行不了:
ls 这大热天的,实在不想把放在弱电箱里的机器拿出来接键盘接电视,于是又研究了一番,可以如此恢复:
cd / /usr/lib64/ld-linux-x86-64.so.2 /usr/bin/ln -s usr/lib64 lib64 再次执行 apt dist-upgrade --autoremove -y 居然莫名其妙又可以升级的,真奇怪,不知道哪里出的问题。
