我正在使用 apt-get 命令运行升级,它花费了非常长的时间,因为我的 ISP 在中途用他们的公平使用政策打了我的脸。
坐在外面看雨了一会儿,我的电子设备恢复了知觉,所以我回去完成升级,我的终端骂我
"E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
Run Code Online (Sandbox Code Playgroud)
最后一点清晰的信息是这样的:
Installing (ri/RDoc) documention for (stuff and such)
ERROR: Could not find a valid gem 'watobo-0.9.8.724.gem' (>= 0) in any repository
rm: cannot remove `watobo-0.9.8.724.gem': No such file or directory
Setting up metasploit (4.3.0-bt1) ...
Upgrading Pre-Existing Installation...
/opt/metasploit/postgresql/scripts/ctl.sh : postgresql (pid 1191) already running
prosvc is running
metasploit is running
[*]
[*] Attempting to update the Metasploit …Run Code Online (Sandbox Code Playgroud) 我有一个带有 GitLab 的 Ubuntu 14.04 LTS“桌面”。该系统在Windows Server 2012 R2上的虚拟机中运行。
机器每天运行“重要安全更新”、“推荐更新”和“不支持更新”的自动更新。不适用于“预发布更新”。
今天我登录系统,运行“sudo apt-get update”,但它无法完成,因为某些进程正在使用 dpkg。
我已经运行了“sudo apt-get update”并且它已更新但挂在:
Found linux image: /boot/vmlinuz-3.19.0-39-generic
Found initrd image: /boot/initrd.img.3.19.0-39-generic
Found linux image: /boot/vmlinuz-3.19.0-37-generic
Found initrd image: /boot/initrd.img.3.19.0-37-generic
Found linux image: /boot/vmlinuz-3.19.0-33-generic
Found initrd image: /boot/initrd.img.3.19.0-33-generic
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img.3.19.0-32-generic
Found linux image: /boot/vmlinuz-3.19.0-31-generic
Found initrd image: /boot/initrd.img.3.19.0-31-generic
Run Code Online (Sandbox Code Playgroud)
我重新启动并在同一点再次挂起“sudo apt-get升级”。
然后我尝试清理未使用的内核。我跑:
uname -r
Run Code Online (Sandbox Code Playgroud)
并得到:
3.19.0-39-generic
Run Code Online (Sandbox Code Playgroud)
所以我删除了 3.19.0-31、3.19.0-32 和 3.19.0-33:
sudo rm /boot/initrd.img.3.19.0-31-generic
sudo rm /boot/initrd.img.3.19.0-32-generic
sudo rm /boot/initrd.img.3.19.0-33-generic
sudo rm /boot/vmlinuz-3.19.0-31-generic …Run Code Online (Sandbox Code Playgroud)