(Reading database...
我正在尝试在 Ubuntu 16.04.2 上安装 unzip。百分比更新需要很长时间
我不断收到以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-64-generic linux-headers-4.4.0-98-generic linux-image-4.4.0-64-generic linux-image-4.4.0-98-generic snap-confine
Use 'sudo apt autoremove' to remove them.
Suggested packages:
zip
The following NEW packages will be installed:
unzip
0 upgraded, 1 newly installed, 0 to remove and 216 not upgraded.
Need to get 0 B/158 kB of archives.
After this operation, 530 kB of additional disk space will be used.
Selecting previously unselected package unzip.
E: Sub-process /usr/bin/dpkg exited unexpectedly
没有特别的错误信息。
dpkg --configure -a
并且dpkg -C
不返回任何内容。
apt-get clean
并且apt -f install unzip
不提供帮助。
答案1
我在 AWS 的 t3.nano 机器上遇到了同样的问题。问题是 t3.nano 只有 512MB 的 RAM。我认为这不足以执行升级。我将我的实例升级到 m5.large,并能够成功运行升级。