可用磁盘空间不足,无法进行升级,需要帮助

可用磁盘空间不足,无法进行升级,需要帮助

我正在尝试更新我的发行版并收到以下错误:

错误信息

命令的输出df -H为:

Filesystem      Size  Used Avail Use% Mounted on
udev            8.4G   13k  8.4G   1% /dev
tmpfs           1.7G  1.5M  1.7G   1% /run
/dev/sda7        22G   21G  357M  99% /
none            4.1k     0  4.1k   0% /sys/fs/cgroup
none            5.3M     0  5.3M   0% /run/lock
none            8.4G   13M  8.4G   1% /run/shm
none            105M   21k  105M   1% /run/user
/dev/sda1       105M   40M   66M  38% /media/System_Reserved
/dev/sda8       7.0G  2.3G  4.4G  34% /home

的输出dpkg -l | grep linux-image为:

rc  linux-image-3.11.0-18-generic               3.11.0-18.32                                           amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-3.11.0-20-generic               3.11.0-20.35                                           amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-3.11.0-22-generic               3.11.0-22.38                                           amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-101-generic              3.13.0-101.148                                         amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-27-generic               3.13.0-27.50                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-29-generic               3.13.0-29.53                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-30-generic               3.13.0-30.55                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-35-generic               3.13.0-35.62                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-43-generic               3.13.0-43.72                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-44-generic               3.13.0-44.73                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-74-generic               3.13.0-74.118                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-77-generic               3.13.0-77.121                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-79-generic               3.13.0-79.123                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-83-generic               3.13.0-83.127                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-85-generic               3.13.0-85.129                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-87-generic               3.13.0-87.133                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-88-generic               3.13.0-88.135                                          amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.11.0-18-generic         3.11.0-18.32                                           amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-extra-3.11.0-20-generic         3.11.0-20.35                                           amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-extra-3.11.0-22-generic         3.11.0-22.38                                           amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-101-generic        3.13.0-101.148                                         amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-27-generic         3.13.0-27.50                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-29-generic         3.13.0-29.53                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-30-generic         3.13.0-30.55                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-35-generic         3.13.0-35.62                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-43-generic         3.13.0-43.72                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-44-generic         3.13.0-44.73                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-74-generic         3.13.0-74.118                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-77-generic         3.13.0-77.121                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-79-generic         3.13.0-79.123                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-83-generic         3.13.0-83.127                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-85-generic         3.13.0-85.129                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-87-generic         3.13.0-87.133                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-88-generic         3.13.0-88.135                                          amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                         3.13.0.101.109

的输出cat /etc/fstab为:

#Entry for /dev/sda7 :
UUID=570e803b-2793-4396-9adb-4ffc1c59f780       /       ext4    errors=remount-ro   01
#Entry for /dev/sda8 :
UUID=ce0bd6fa-46e8-4a2f-8f9d-a6b3fc998dd0       /home   ext4    defaults        0   2
#Entry for /dev/sda1 :
UUID=DA8C2D5E8C2D3703   /media/System_Reserved  ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sda5 :
UUID=D4F171ECA3AB6795   /media/data     ntfs-3g defaults,locale=en_US.UTF-8     0   0
#Entry for /dev/sda2 :
UUID=7EF43014F42FCCE9   /media/windows  ntfs-3g defaults,locale=en_US.UTF-8     0   0
#Entry for /dev/sda6 :
UUID=b0ba614a-e26b-4a7d-9a7e-6323ec2caa86       none    swap    sw      0       0

输出sudo blkid -o list

device                                           fs_type         label            mount point                                          UUID                                 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
/dev/sda1                                        ntfs            System Reserved  /media/System_Reserved                               DA8C2D5E8C2D3703                     
/dev/sda2                                        ntfs                             (not mounted)                                        18C6E2D8C6E2B4E2                     
/dev/sda3                                        ntfs                             (not mounted)                                        347890A478906700                     
/dev/sda5                                        ntfs            data             (not mounted)                                        BCEC6B90B216E1AF                     
/dev/sda6                                        swap                             (not mounted)                                        563a9a97-7431-4d46-b98b-890f445cb44f 
/dev/sda7                                        ext4            root             /                                                    570e803b-2793-4396-9adb-4ffc1c59f780 
/dev/sda8                                        ext4            home                     /home                                                ce0bd6fa-46e8-4a2f-8f9d-a6b3fc998dd0 

另外,似乎 /root 使用了 20GB,这很奇怪。在 下/root, 的输出du -hc --max-depth 1为:

123M    ./.wine
8.0K    ./.hplip
4.0K    ./.aptitude
16K     ./.p2
4.0K    ./.cache
20K     ./.kde
8.0K    ./.local
12K     ./.dbus
76K     ./.config
12K     ./.wireshark
8.0K    ./.vim
548K    ./.eclipse
24K     ./.synaptic
11G     .
11G     total

“总计 11G”非常奇怪,因为在df -H输出中我可以看到使用了 20G。

另外,在根目录中使用后du -sk * | sort -rn,我可以看到奇怪的 tmp jibbrish,我不知道如何摆脱它,例如:

2510452 tmp_iFCz_-4CdwKM9fqLx8lLungTEU7sknWlG0_9SlbTPGFFCc5Kt.bY.Nhh4IzgdpEd0vFCPT5axftza4iKrIb-we5tQhgxhCeGtGfRjDaAcm1JA4MWLNMnTkaQpE3Whn0xVmxNIIqdk8ypRWbb-4.DxqNuok.2U9ahcn8rQKvNbUzfzscAt9oISX-R_1Oc.Lmsa 0TjT0I3yAKBiOi4e5k0L7R-NnHZklgPkClQf3EMcPuO.AxdMInlEv0k0

这些文件似乎是临时文件,但不确定它们来自哪里,或者删除它们是否安全

输出ls -lh /root

total 12G
-rw------- 1 root root 328M אפר 29  2014 tmp2lk3jyGhuXOKS7RP5I.JMyhOBX4HQOjpwfwWGYiiJFocreeUXWYVwoEJFlCDOHv-.SCENOXTzuNINDjKbOtMNYp.zGUM-xGfxYI7YseMPkOf7KsVAX3NDO63a_NRZMt2fpQ.QSE.oPlBdYgfs p-ZqSkdLQCiTijrK6ybR-yavdEWp 4fsAZk3X2iUc6IXt_mJ3cqeG3gAoB8OOsJN5uO7eoBknOx9s4UXJJhf6v5pK2ycdx8rLLHN7XBWx
-rw------- 1 root root 1.4G ינו 19  2015 tmp5R_jIY5jBuBJ3Za0WLjanIQA91sSAqBGrPLlhzkLPibKkgvshk9F8uCtWvMLD17_wJa0.Y9oduIrecqsrQa.1t4FFD36oRjtwDcxSVLDsHGVLuxPMEH_cLZkWBoBM3PP46IF-1SMVNZdpToJGnG3aHnSLvrEX8USkneTLI0-A z1Vbz4kWw-p2bqkQVbWGf580S6Kt2oPDkfE3PTghkdqk5Qkw4nnS.PruZRB2z36nNDh6a8a1Xbh9YyJXt
-rw------- 1 root root 487M אפר 30  2014 tmpaVNUl8cYsTXQfUDOoe4M2kNlbpplpbm8_3rAVPHFh BKJ-5VYSRz-5dSSbSK9QcTovAxoUAZ83U.8ef7u5 qxAVA_1smiHNZyrBdKsYeclXMuS4jOIOlDixKOExoxhOoPTa4nhStH8v-lm7XJ3T2LxELE9FFs6y1FqTz9-e v6bqerQaTj8Xt17WlHOFSvR9U80c9g2oyaAjNChud-UxMh84O nMfyokCRvlrjL1Tmwkfo7SCeKpyvv0Fzd
-rw------- 1 root root 2.4G דצמ 26  2015 tmp_iFCz_-4CdwKM9fqLx8lLungTEU7sknWlG0_9SlbTPGFFCc5Kt.bY.Nhh4IzgdpEd0vFCPT5axftza4iKrIb-we5tQhgxhCeGtGfRjDaAcm1JA4MWLNMnTkaQpE3Whn0xVmxNIIqdk8ypRWbb-4.DxqNuok.2U9ahcn8rQKvNbUzfzscAt9oISX-R_1Oc.Lmsa 0TjT0I3yAKBiOi4e5k0L7R-NnHZklgPkClQf3EMcPuO.AxdMInlEv0k0
-rw------- 1 root root 619M אפר 16  2014 tmpNiKja6SgJU7DuOcb2zB3qns2PrDWVvixVEq-qNm-xBOQn2YcYGk1-pAj-yl-Q3yNfsS  lxGsR1nSTTF14bGbL2KKWHUSn7oPeqgeIoPdO7vbCbdDsz37PCIAz3TapjLNgFw1rmiXIlDVzHi-xzy0kKf8pqwbXG7SJoloyEGKyjXFgkvCEuTQwX iiGlWJkNd8O9DW_hRJ36PpohW.OyongdDRvA4 dI_RnYp7cZtJ.dtU.v0DLd6bz86qJ
-rw------- 1 root root 807M מאי  6  2014 tmpS8tFRtYvVaHRiHoDFKcUWH9DQFNSU OJCXqMjoWYslH9GdmQx0b-31-qMfr8MWU2l_BINma1XUpNdJI0EGeG5evHk4Zzodqig9DBjE44h-pD3QEuojeMemleLeehIttTMuc5foQJF41NQ_dMbfCogVNfkxEe8Bh0-tCC_naa7fT7ladVXi4uavnvknNBUn l7HqNQcPzeooevVrNPq4WnI5FIAjzA6 eE6zGgCLZM18_5Edf95jlNZ1ljmR
-rw------- 1 root root 892M אפר 27  2014 tmpt1jIRtG1tb.E3xmLtd3JoSy9--RrF1_IZHfiFVuD-SlZ5v-cZiOotu22WWHZb2hn_6sRaxSEueH5LlKtzKSd3CEn8 g5b YEfsucyaQYFxEtGiLNqUk4RiaQF_-7BVn_hid6u8LKDq0SFhKI CBvMoyZO EvQ NPDYQsRcr659GX UyaiA_FnazuyaTuZ t9NSCuGnmEY2lWoUpNRiCw2tg 8j_EEuFhbA4CHU0X0UFrBBuvygeE0hl6XQE
-rw------- 1 root root 720M נוב 13 00:28 tmpt20vR7OIW8eput9gKDUKsVvBsvETj95gMpJq8nT4X5mnSmCd6we-GbW1ITbR21 lv6VWZ9IvsrhO5Gl N3ad3Rjew GPCLfP-cRsyUus2_II.AzvRYmtp9aWc4H81qyax2sXgklkRww_4fn41V1JNksobmmgM6Yt6tymgJ8ksVVrQsgAYZmNUH3Gx-c1wAi0Uc40MFq-HMDp3imDToxf_NArHBM98NmF7IR4_LxSk7kgxCDUb2D4mXL eXE
-rw------- 1 root root 495M אפר 27  2014 tmptAJ2hNrDYvRSP0JI6 NBklh4EdXmsAHqtfYF2X9B3rveYGN7xAX4EAx91EDnImZa -.rzonWUt.yBilPTQmlR7i3r-on.A6EuQQ.vc3PePAniRuAM99--cPRo1BI J1qBntSl2nXUEedo6TqD4QUoJmfVbdYyS9QWl13rsAw-EdFqOnYK4mJyorX6rlh9BE3KQ4a zTxFelC2JtNNXyJ4CPpaCH 1JGyxsI6RCASEViAVkR4UoR_F36-f _
-rw------- 1 root root 838M מאי 17  2014 tmpXfg2g_8c6wh-943elGs6iZVFob4FH.BxtCoQPZJzK7MkrL6HKY8BtX6j6_RlR3Gm6ac9rYRJ9h08hMGJlodxvblfn2wWPuP Vk_XtslLJjVefRuDz6EUD3JX5IQY8Hecs4pfHe-Nki3LBTgxFn2_GtOvei8WhRs-M-zq3qn6SiaXFrkDfrmUm788Tmm3lSjpfJi6_PYZeU9iFKBoSPSxqnHSXymHFLZSXEJbYdaXgyb.Wq.L89SQAQTYyF9
-rw------- 1 root root 948M אפר 16  2014 tmpxG9L4a6W2si-X4i4o.HJEkxDrLQp11FtD5rzNrEXTPNTV6Ui54CNE5AuDyREFUIyzDWLhpTGOnFTl1QicEgPqmOwjTCC97PXXjvND8_6LPS9.KgrF7JIfdjMM8nCKumx9oSQjgYSiFFaWalRKVozVddtiYYVNiN36gKMK_GMsXaFJjR HOSC2yoAFk.SV1gOoCi.iXHoYrxfPDZyDe.3Rw.5UMRkX6vDx.wskofM2Ef5ZucokDjwaGQuOhf
-rw------- 1 root root 1.8G נוב 12 19:07 tmpxzSAQ0-FZzUng-nAEhmwS8OjHUm0d2cWbW8QDvdZXDPUBYMVOZTsldv3fJhLjwA3fdImgD-nEB1.rQBk6DSAI7qLZv3sD aQU2-3o5D1MElfohSJ5HBXmAt0L9DC5VbzU1LXzPhf3pjtDk1O73Jt3E9pnr4 P.QebU.MMeGlS2ltwIzX07mCSQ1eJwoOFCDXZ9iKKoioIJpI6lvdLiVGlJPE-qO9TCIIxAa.rrmbiFThOoEuUnc2U4Piptm

任何帮助都将不胜感激谢谢

答案1

dpkg -l显示了很多已删除的软件包。请尝试以下操作:

dpkg -l|awk '/^rc/{print $2}' >pkgList

应该会列出您未清除的已删除软件包。假设上一个命令运行正常,您应该能够继续:

 cat pkgList | DEBIAN_FRONTEND=noninteractive xargs apt-get remove --purge -yf --force-yes

相关内容