无法统计“./mnt”(我即将安装):传输端点未连接

无法统计“./mnt”(我即将安装):传输端点未连接

运行时:

apt-get update && apt-get upgrade

在 12.04.3 LTS,内核 3.2.0-35-virtual

我得到:

Preparing to replace base-files 6.5ubuntu6.6 (using .../base-files_6.5ubuntu6.7_amd64.deb) ...
Unpacking replacement base-files ...
dpkg: error processing /var/cache/apt/archives/base-files_6.5ubuntu6.7_amd64.deb (--unpack):
 unable to stat `./mnt' (which I was about to install): Transport endpoint is not connected
No apport report written because MaxReports is reached already
                                                              Processing triggers for man-db ...
Processing triggers for install-info ...
Errors were encountered while processing:
 /var/cache/apt/archives/base-files_6.5ubuntu6.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

输出df -ha

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       99G  9.1G   85G  10% /
none               0     0     0    - /proc
sysfs              0     0     0    - /sys
none               0     0     0    - /sys/fs/fuse/connections
none               0     0     0    - /sys/kernel/debug
none               0     0     0    - /sys/kernel/security
udev            819M   12K  819M   1% /dev
devpts             0     0     0    - /dev/pts
tmpfs           331M  192K  331M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            827M     0  827M   0% /run/shm
cgroup          827M     0  827M   0% /sys/fs/cgroup
cgroup             0     0     0    - /sys/fs/cgroup/cpuset
cgroup             0     0     0    - /sys/fs/cgroup/cpu
cgroup             0     0     0    - /sys/fs/cgroup/cpuacct
cgroup             0     0     0    - /sys/fs/cgroup/memory
cgroup             0     0     0    - /sys/fs/cgroup/devices
cgroup             0     0     0    - /sys/fs/cgroup/freezer
cgroup             0     0     0    - /sys/fs/cgroup/blkio
cgroup             0     0     0    - /sys/fs/cgroup/perf_event

输出mount

/dev/xvda1 on / type ext4 (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu,clone_children)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct,clone_children)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory,clone_children)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices,clone_children)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer,clone_children)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio,clone_children)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event,clone_children)

我尝试过在这里找到的解决方案,例如:

apt-get clean

dpkg --configure -a

dpkg -i --force-overwrite /var/cache/apt/archives/base-files_6.5ubuntu6.7_amd64.deb

rm /var/cache/apt/archives/base-files_6.5ubuntu6.7_amd64.deb

我还想提一下,我正在运行一个 LXC 容器。有人知道我该如何解决这个问题吗?

答案1

此错误消息表明 /mnt 上的非默认文件系统处于问题状态。base-files 软件包在文件系统上提供了 /mnt 目录,因此 dpkg 假定它应该能够在必要时解压该目录。您需要在系统上卸载 /mnt 才能升级 base-files。

https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1352012了解更多信息。

相关内容