尝试删除或安装包时出错

尝试删除或安装包时出错

又是我。我尝试运行此命令:sudo apt-get remove bitcoind 但我收到此响应:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-46-generic but it is not going to be installed
 linux-modules-extra-4.15.0-33-generic : Depends: linux-image-4.15.0-33-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-33-generic but it is not going to be installed
 linux-modules-extra-4.15.0-38-generic : Depends: linux-image-4.15.0-38-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-38-generic but it is not going to be installed
 linux-modules-extra-4.15.0-42-generic : Depends: linux-image-4.15.0-42-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-42-generic but it is not going to be installed
 linux-modules-extra-4.15.0-45-generic : Depends: linux-image-4.15.0-45-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-45-generic but it is not going to be installed
 linux-modules-extra-4.15.0-46-generic : Depends: linux-image-4.15.0-46-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-46-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

然后当apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libdb4.8++ libllvm5.0 linux-headers-4.13.0-41
  linux-headers-4.13.0-41-generic linux-headers-4.13.0-43
  linux-headers-4.13.0-43-generic linux-headers-4.15.0-24
  linux-headers-4.15.0-24-generic linux-headers-4.15.0-29
  linux-headers-4.15.0-29-generic linux-headers-4.15.0-33
  linux-headers-4.15.0-33-generic linux-headers-4.15.0-38
  linux-headers-4.15.0-38-generic linux-headers-4.15.0-42
  linux-headers-4.15.0-42-generic linux-headers-4.15.0-45
  linux-headers-4.15.0-45-generic linux-image-4.13.0-41-generic
  linux-image-4.13.0-43-generic linux-image-4.15.0-24-generic
  linux-image-4.15.0-29-generic linux-image-4.15.0-33-generic
  linux-image-4.15.0-38-generic linux-image-4.15.0-42-generic
  linux-image-4.15.0-45-generic linux-image-extra-4.13.0-41-generic
  linux-image-extra-4.13.0-43-generic linux-image-extra-4.13.0-45-generic
  linux-modules-4.15.0-24-generic linux-modules-4.15.0-29-generic
  linux-modules-4.15.0-33-generic linux-modules-4.15.0-38-generic
  linux-modules-4.15.0-42-generic linux-modules-4.15.0-45-generic
  linux-modules-extra-4.15.0-24-generic linux-modules-extra-4.15.0-29-generic
  linux-modules-extra-4.15.0-33-generic linux-modules-extra-4.15.0-38-generic
  linux-modules-extra-4.15.0-42-generic linux-modules-extra-4.15.0-45-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.15.0-33-generic linux-image-4.15.0-38-generic
  linux-image-4.15.0-42-generic linux-image-4.15.0-45-generic
  linux-image-4.15.0-46-generic linux-modules-4.15.0-42-generic
  linux-modules-4.15.0-45-generic linux-modules-4.15.0-46-generic
Suggested packages:
  fdutils linux-hwe-tools
The following NEW packages will be installed:
  linux-image-4.15.0-33-generic linux-image-4.15.0-38-generic
  linux-image-4.15.0-42-generic linux-image-4.15.0-45-generic
  linux-image-4.15.0-46-generic linux-modules-4.15.0-42-generic
  linux-modules-4.15.0-45-generic linux-modules-4.15.0-46-generic
0 upgraded, 8 newly installed, 0 to remove and 281 not upgraded.
75 not fully installed or removed.
Need to get 0 B/78,2 MB of archives.
After this operation, 237 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 593097 files and directories currently installed.)
Preparing to unpack .../linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.15.0-46-generic' to '/boot/System.map-4.15.0-46-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-46-generic (4.15.0-46.49~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-46-generic' to '/boot/vmlinuz-4.15.0-46-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-33-generic_4.15.0-33.36~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-33-generic (4.15.0-33.36~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-33-generic_4.15.0-33.36~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-33-generic' to '/boot/vmlinuz-4.15.0-33-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-38-generic_4.15.0-38.41~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-38-generic (4.15.0-38.41~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-38-generic_4.15.0-38.41~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-38-generic' to '/boot/vmlinuz-4.15.0-38-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-modules-4.15.0-42-generic_4.15.0-42.45~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-42-generic (4.15.0-42.45~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-42-generic_4.15.0-42.45~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.15.0-42-generic' to '/boot/System.map-4.15.0-42-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-42-generic_4.15.0-42.45~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-42-generic (4.15.0-42.45~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-42-generic_4.15.0-42.45~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-42-generic' to '/boot/vmlinuz-4.15.0-42-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-45-generic (4.15.0-45.48~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.15.0-45-generic' to '/boot/System.map-4.15.0-45-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-45-generic_4.15.0-45.48~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-45-generic (4.15.0-45.48~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-45-generic_4.15.0-45.48~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-45-generic' to '/boot/vmlinuz-4.15.0-45-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-modules-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-46-generic_4.15.0-46.49~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-33-generic_4.15.0-33.36~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-38-generic_4.15.0-38.41~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-modules-4.15.0-42-generic_4.15.0-42.45~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-42-generic_4.15.0-42.45~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-modules-4.15.0-45-generic_4.15.0-45.48~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-45-generic_4.15.0-45.48~16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

希望您能像往常一样帮助我解决问题。再次感谢!

root@gear:/# df -h
Filesystem                   Size  Used Avail Use% Mounted on
udev                         3,9G     0  3,9G   0% /dev
tmpfs                        798M   74M  724M  10% /run
/dev/mapper/ubuntu--vg-root 1019G  359G  618G  37% /
tmpfs                        3,9G  337M  3,6G   9% /dev/shm
tmpfs                        5,0M  4,0K  5,0M   1% /run/lock
tmpfs                        3,9G     0  3,9G   0% /sys/fs/cgroup
/dev/loop0                   138M  138M     0 100% /snap/skype/33
/dev/loop1                    87M   87M     0 100% /snap/core/4650
/dev/sda1                    472M  471M     0 100% /boot
tmpfs      

              798M  144K  798M   1% /run/user/1000

答案1

错误信息表明:

<list of packages>...
Use 'sudo apt autoremove' to remove them.

这将删除不再需要的软件包,并释放它们在 上占用的空间/boot(该空间已 100% 满)。

相关内容