升级到 libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb 的问题

升级到 libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb 的问题

libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb 于2018年6月28日(昨天)发布,但安装时出现错误:

$ sudo dpkg -D=3 -i /var/cache/apt/archives/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
D000001: ensure_diversions: new, (re)loading
D000001: ensure_statoverrides: new, (re)loading
(Reading database ... 25657 files and directories currently installed.)
Preparing to unpack .../libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
D000001: process_archive oldversionstatus=installed
D000002: fork/exec /var/lib/dpkg/info/libstdc++6:amd64.prerm ( upgrade 5.4.0-6ubuntu1~16.04.10 )
D000001: ensure_diversions: same, skipping
D000002: maintscript_new nonexistent preinst '/var/lib/dpkg/tmp.ci/preinst'
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) over (5.4.0-6ubuntu1~16.04.9) ...
dpkg: error processing archive /var/cache/apt/archives/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb (--install):
unable to create '/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21.dpkg-new' (while processing './usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21'):     Permission denied
D000002: maintscript_new nonexistent postrm '/var/lib/dpkg/tmp.ci/postrm'
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
D000002: fork/exec /var/lib/dpkg/info/libstdc++6:amd64.postinst ( abort-upgrade 5.4.0-6ubuntu1~16.04.10 )
D000001: ensure_diversions: same, skipping
Processing triggers for libc-bin (2.23-0ubuntu10) ...
D000002: fork/exec /var/lib/dpkg/info/libc-bin.postinst ( triggered ldconfig )
D000001: ensure_diversions: same, skipping
Errors were encountered while processing:
/var/cache/apt/archives/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb

这发生在 LXD 容器上:

$ sudo lxc launch ubuntu:xenial myMachine

有任何想法吗?

答案1

只要其他人遇到此问题,删除容器并从头开始重新创建即可解决这个问题。

相关内容