Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: getting You don't have enough free space in /var/cache/apt/archives/.

  1. #1
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    524
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    getting You don't have enough free space in /var/cache/apt/archives/.

    Hello Guys
    I am currently getting this error code: You don't have enough free space in /var/cache/apt/archives/. on my ubuntu server 16.04 lts and I have tried sudo apt-get autoremove and sudo autoremove still get that error code.

    so I did this df -ha and got this:
    Code:
    Filesystem                 Size  Used Avail Use% Mounted on
    sysfs                         0     0     0    - /sys
    proc                          0     0     0    - /proc
    udev                       2.0G     0  2.0G   0% /dev
    devpts                        0     0     0    - /dev/pts
    tmpfs                      396M   11M  385M   3% /run
    /dev/mapper/mail--vg-root  455G  454G     0 100% /
    securityfs                    0     0     0    - /sys/kernel/security
    tmpfs                      2.0G     0  2.0G   0% /dev/shm
    tmpfs                      5.0M     0  5.0M   0% /run/lock
    tmpfs                      2.0G     0  2.0G   0% /sys/fs/cgroup
    cgroup                        0     0     0    - /sys/fs/cgroup/systemd
    pstore                        0     0     0    - /sys/fs/pstore
    cgroup                        0     0     0    - /sys/fs/cgroup/devices
    cgroup                        0     0     0    - /sys/fs/cgroup/cpu,cpuacct
    cgroup                        0     0     0    - /sys/fs/cgroup/net_cls,net_prio
    cgroup                        0     0     0    - /sys/fs/cgroup/cpuset
    cgroup                        0     0     0    - /sys/fs/cgroup/memory
    cgroup                        0     0     0    - /sys/fs/cgroup/pids
    cgroup                        0     0     0    - /sys/fs/cgroup/blkio
    cgroup                        0     0     0    - /sys/fs/cgroup/hugetlb
    cgroup                        0     0     0    - /sys/fs/cgroup/perf_event
    cgroup                        0     0     0    - /sys/fs/cgroup/freezer
    systemd-1                     -     -     -    - /proc/sys/fs/binfmt_misc
    mqueue                        0     0     0    - /dev/mqueue
    hugetlbfs                     0     0     0    - /dev/hugepages
    debugfs                       0     0     0    - /sys/kernel/debug
    fusectl                       0     0     0    - /sys/fs/fuse/connections
    /dev/vda1                  472M  467M     0 100% /boot
    lxcfs                         0     0     0    - /var/lib/lxcfs
    binfmt_misc                   0     0     0    - /proc/sys/fs/binfmt_misc
    tracefs                       -     -     -    - /sys/kernel/debug/tracing
    tmpfs                      396M     0  396M   0% /run/user/1000
    what can I do get it back to running mail server?
    Tim's Computer Repair
    trpcrepair.com

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,975
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    Both your root and /boot are 100% full. You need to free space. For /boot you can uninstall old kernels using dpkg. For root you need to delete some data to free up space.

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    8,997
    Distro
    Ubuntu

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    Code:
    sudo apt-get clean
    clears out the archive, entirely.

    Bonus is
    Code:
    sudo apt-get autoclean
    this cleans out only the older and obsolete archives.
    Keeping the most recent
    Example would be it'll clear out older firefox archived packages, but keep the currently installed archive package.
    (edit: though if server Firefox would be irrelevant.....)
    Last edited by deadflowr; October 12th, 2017 at 09:08 PM.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    524
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    whats the best way on removing old kernels?
    Tim's Computer Repair
    trpcrepair.com

  5. #5
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,975
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    1. Use uname -r to check loaded kernel. DO NOT remove that one.
    2. Use dpkg --list | grep linux-image to list all kernels. The ones with ii in front are currently installed.
    3. To remove use sudo dpkg --purge linux-image-XXXX-generic. Leave the two newest kernels and the one currently loaded.

  6. #6
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    524
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    this is what images I have loaded:

    Code:
    tim@mail:~$ dpkg --list | grep linux-image
    pi  linux-image-4.4.0-62-generic       4.4.0-62.83                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-75-generic       4.4.0-75.96                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-77-generic       4.4.0-77.98                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-78-generic       4.4.0-78.99                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-79-generic       4.4.0-79.100                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-81-generic       4.4.0-81.104                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-83-generic       4.4.0-83.106                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-4.4.0-87-generic       4.4.0-87.110                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    pi  linux-image-4.4.0-89-generic       4.4.0-89.112                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-91-generic       4.4.0-91.114                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-4.4.0-92-generic       4.4.0-92.115                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-62-generic 4.4.0-62.83                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-75-generic 4.4.0-75.96                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-77-generic 4.4.0-77.98                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-78-generic 4.4.0-78.99                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-79-generic 4.4.0-79.100                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-81-generic 4.4.0-81.104                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-83-generic 4.4.0-83.106                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    ii  linux-image-extra-4.4.0-87-generic 4.4.0-87.110                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iF  linux-image-extra-4.4.0-89-generic 4.4.0-89.112                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-91-generic 4.4.0-91.114                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-92-generic 4.4.0-92.115                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-extra-4.4.0-93-generic 4.4.0-93.116                               amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
    iU  linux-image-generic                4.4.0.93.98                                amd64        Generic Linux kernel image
    when I try to remove one of them I get this error:

    xx@mail:~$ sudo dpkg --purge linux-image-4.4.0-89-generic
    [sudo] password for xx:
    dpkg: dependency problems prevent removal of linux-image-4.4.0-89-generic:
    linux-image-extra-4.4.0-89-generic depends on linux-image-4.4.0-89-generic.

    dpkg: error processing package linux-image-4.4.0-89-generic (--purge):
    dependency problems - not removing
    Errors were encountered while processing:
    linux-image-4.4.0-89-generic
    xx@mail:~$
    Tim's Computer Repair
    trpcrepair.com

  7. #7
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,975
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    But that one says 'pi' in the first column, not 'ii'. Try ones with 'ii'.

    Also dependencies can be broken if apt-get ran out of space. In that case the alternative is removing kernel files manually with rm from /boot. Be careful though, and as said never remove the current running kernel or the two newest ones. The initrd and the linux files are the biggest ones in /boot. You can ignore the rest for now... Just remove the biggest ones for each -XX- kernel versio nthat you want to remove. Once you have about 200MB free in /boot, apt-get will start working and you can continue cleaning up with apt-get.

    Don't forget, this is only related to /boot. You also have to clean space on root partition, delete some of the data there.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  8. #8
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    524
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    Alright when I did that it crash the VPS server and right now I am in recovery and I am still lost how a 500gb mail server can use all of that 500gb that quick I only got 15 customers on this mail server with only 100meg mail boxes and I am using iredmail with mysql.
    Tim's Computer Repair
    trpcrepair.com

  9. #9
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,975
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    Recovery? If you entered with 'drop to root shell' you need to remount / as RW, you know that?

    Plus, I didn't really understand which part crashed the server, deleting kernels with rm?

    Post the content of your /boot:
    Code:
    df -h
    uname -r
    ls /boot/
    Then we can help with more detailed commands if you need it...
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  10. #10
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    524
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: getting You don't have enough free space in /var/cache/apt/archives/.

    here is a image since I had to do kvm console due to system crash
    .ub1.jpg

    Yes I crashed the system after removing the older kernels and I left the 2 newest ones in there.
    Last edited by kustomjs; October 13th, 2017 at 04:21 PM.
    Tim's Computer Repair
    trpcrepair.com

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •