Author Topic: [SOLVED}Unable to upgrade to 4.0, disk full. Can I add an external drive for  (Read 1588 times)

Absolute

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Hello,
I have a mac mini with a SSD on which I have had Zentyal running for about a year.  I tried to update to 4.0 from 3.5 but it failed.  I went to a terminal window and tried a sudo apt-get update then a sudo apt-get upgrade.  The update appeared to work but the upgrade failed.  I then tried a sudo apt-get -f install.  This also failed and gave the message "cannot copy extracted data for './boot/vmlinuz-3.13.0-43-generic' to '/boot/vmlinuz-3.13.0-43-generic.dpkg-new': failed to write (No space left on device)". 

I tried 'apt-get autoremove' and get the following message:
"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-extra-3.13.0-43-generic : Depends: linux-image-3.13.0-43-generic but it is not installed
 linux-image-generic : Depends: linux-image-3.13.0-43-generic but it is not installed
E: Unmet dependencies. Try using -f."


Can I add an additional external disk (usb raid) and reallocate the partitions? 

Thanks!

dale
« Last Edit: January 13, 2015, 05:49:18 pm by Absolute »

julio

  • Guest
Please post the results of following commands:
Code: [Select]
df -i -h
dpkg -l | grep kernel

Absolute

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Thanks julio,

Thanks!
Here are the results:

df -i -h

Filesystem                     Inodes IUsed IFree IUse% Mounted on
/dev/mapper/absolute5--vg-root   6.0M  310K  5.7M    6% /
none                             2.0M     2  2.0M    1% /sys/fs/cgroup
udev                             2.0M   500  2.0M    1% /dev
tmpfs                            2.0M   519  2.0M    1% /run
none                             2.0M     2  2.0M    1% /run/lock
none                             2.0M     3  2.0M    1% /run/shm
none                             2.0M     1  2.0M    1% /run/user
/dev/sda2                         62K   331   61K    1% /boot


dpkg -l | grep kernel
ii  kmod                                  15-0ubuntu6                          amd64        tools for managing Linux kernel modules
ii  libaio1:amd64                         0.3.109-4                            amd64        Linux kernel AIO access library - shared library
ii  libdrm2:amd64                         2.4.52-1                             amd64        Userspace interface to kernel DRM services -- runtime
ii  libzmq1:amd64                         2.2.0+dfsg-5                         amd64        lightweight messaging kernel (shared library)
ii  libzmq3:amd64                         4.0.4+dfsg-2                         amd64        lightweight messaging kernel (shared library)
ii  linux-firmware                        1.127.10                             all          Firmware for Linux kernel drivers
iU  linux-generic                         3.13.0.43.50                         amd64        Complete Generic Linux kernel and headers
ii  linux-headers-3.11.0-18               3.11.0-18.32                         all          Header files related to Linux kernel version 3.11.0
ii  linux-headers-3.11.0-18-generic       3.11.0-18.32                         amd64        Linux kernel headers for version 3.11.0 on 64 bit x86 SMP
ii  linux-headers-3.11.0-24               3.11.0-24.42                         all          Header files related to Linux kernel version 3.11.0
ii  linux-headers-3.11.0-24-generic       3.11.0-24.42                         amd64        Linux kernel headers for version 3.11.0 on 64 bit x86 SMP
ii  linux-headers-3.11.0-26               3.11.0-26.45                         all          Header files related to Linux kernel version 3.11.0
ii  linux-headers-3.11.0-26-generic       3.11.0-26.45                         amd64        Linux kernel headers for version 3.11.0 on 64 bit x86 SMP
ii  linux-headers-3.13.0-35               3.13.0-35.62                         all          Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-35-generic       3.13.0-35.62                         amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii  linux-headers-3.13.0-36               3.13.0-36.63                         all          Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-36-generic       3.13.0-36.63                         amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii  linux-headers-3.13.0-37               3.13.0-37.64                         all          Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-37-generic       3.13.0-37.64                         amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii  linux-headers-3.13.0-39               3.13.0-39.66                         all          Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-39-generic       3.13.0-39.66                         amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii  linux-headers-3.13.0-40               3.13.0-40.69                         all          Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-40-generic       3.13.0-40.69                         amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii  linux-headers-3.13.0-43               3.13.0-43.72                         all          Header files related to Linux kernel version 3.13.0
ii  linux-headers-3.13.0-43-generic       3.13.0-43.72                         amd64        Linux kernel headers for version 3.13.0 on 64 bit x86 SMP
ii  linux-headers-generic                 3.13.0.43.50                         amd64        Generic Linux kernel headers
ii  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
ii  linux-image-3.11.0-24-generic         3.11.0-24.42                         amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-3.11.0-26-generic         3.11.0-26.45                         amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  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
ii  linux-image-3.13.0-36-generic         3.13.0-36.63                         amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-37-generic         3.13.0-37.64                         amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-39-generic         3.13.0-39.66                         amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-40-generic         3.13.0-40.69                         amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  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
ii  linux-image-extra-3.11.0-24-generic   3.11.0-24.42                         amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-extra-3.11.0-26-generic   3.11.0-26.45                         amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii  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
ii  linux-image-extra-3.13.0-36-generic   3.13.0-36.63                         amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-37-generic   3.13.0-37.64                         amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-39-generic   3.13.0-39.66                         amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
iF  linux-image-extra-3.13.0-40-generic   3.13.0-40.69                         amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
iU  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
iU  linux-image-generic                   3.13.0.43.50                         amd64        Generic Linux kernel image
ii  rsyslog                               7.4.4-1ubuntu2.3                     amd64        reliable system and kernel logging daemon

julio

  • Guest
:o Your problem is: too much old kernel versions installed.

try to remove all unused:
Code: [Select]
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

after removing without error, reboot:
Code: [Select]
sudo reboot
after reboot, try to installing all remaining apps:
Code: [Select]
sudo apt-get -f install
after install, cleanup:
Code: [Select]
sudo apt-get autoremove && sudo apt-get autoclean
« Last Edit: January 08, 2015, 08:00:44 pm by julio »

Absolute

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
julio,
 I tried as you suggested and received the following:

Last login: Thu Jan  8 17:35:32 2015 from 192.168.1.201
apadmin@absolute5:~$ dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
[sudo] password for apadmin:
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-headers-generic : Depends: linux-headers-3.13.0-43-generic but it is not going to be installed
 linux-image-extra-3.13.0-43-generic : Depends: linux-image-3.13.0-43-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-3.13.0-43-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
apadmin@absolute5:~$

julio

  • Guest
please post the results of:
Code: [Select]
ls -la /boot
« Last Edit: January 09, 2015, 12:39:02 pm by julio »

Absolute

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Sorry, been out of town. 

Thanks!
dale

Here it is:

total 231165
drwxr-xr-x  4 root root     3072 Jan  8 17:43 .
drwxr-xr-x 22 root root     4096 Jan  8 17:35 ..
-rw-r--r--  1 root root  1007681 Feb 18  2014 abi-3.11.0-18-generic
-rw-r--r--  1 root root  1008084 Jul  4  2014 abi-3.11.0-24-generic
-rw-r--r--  1 root root  1008084 Jul 14 23:20 abi-3.11.0-26-generic
-rw-r--r--  1 root root  1163858 Aug 14 21:56 abi-3.13.0-35-generic
-rw-r--r--  1 root root  1163858 Sep  3 17:24 abi-3.13.0-36-generic
-rw-r--r--  1 root root  1164489 Sep 22 17:24 abi-3.13.0-37-generic
-rw-r--r--  1 root root  1164547 Oct 28 09:25 abi-3.13.0-39-generic
-rw-r--r--  1 root root  1164509 Nov 13 12:30 abi-3.13.0-40-generic
-rw-r--r--  1 root root   163258 Feb 18  2014 config-3.11.0-18-generic
-rw-r--r--  1 root root   163280 Jul  4  2014 config-3.11.0-24-generic
-rw-r--r--  1 root root   163280 Jul 14 23:20 config-3.11.0-26-generic
-rw-r--r--  1 root root   165652 Aug 14 21:56 config-3.13.0-35-generic
-rw-r--r--  1 root root   165671 Sep  3 17:24 config-3.13.0-36-generic
-rw-r--r--  1 root root   165712 Sep 22 17:24 config-3.13.0-37-generic
-rw-r--r--  1 root root   165712 Oct 28 09:25 config-3.13.0-39-generic
-rw-r--r--  1 root root   165745 Nov 13 12:30 config-3.13.0-40-generic
drwxr-xr-x  5 root root     1024 Nov 25 05:01 grub
-rw-r--r--  1 root root 17969962 May  4  2014 initrd.img-3.11.0-18-generic
-rw-r--r--  1 root root 17966146 Jul  6  2014 initrd.img-3.11.0-24-generic
-rw-r--r--  1 root root 18250684 Aug 28 21:07 initrd.img-3.11.0-26-generic
-rw-r--r--  1 root root 19704442 Sep 10 05:00 initrd.img-3.13.0-35-generic
-rw-r--r--  1 root root 19716372 Oct  3 05:00 initrd.img-3.13.0-36-generic
-rw-r--r--  1 root root 19717579 Oct  9 05:01 initrd.img-3.13.0-37-generic
-rw-r--r--  1 root root 19717663 Nov 13 05:00 initrd.img-3.13.0-39-generic
-rw-r--r--  1 root root 19716226 Nov 25 05:01 initrd.img-3.13.0-40-generic
drwx------  2 root root    12288 May  4  2014 lost+found
-rw-------  1 root root  3296162 Feb 18  2014 System.map-3.11.0-18-generic
-rw-------  1 root root  3297366 Jul  4  2014 System.map-3.11.0-24-generic
-rw-------  1 root root  3297462 Jul 14 23:20 System.map-3.11.0-26-generic
-rw-------  1 root root  3386444 Aug 14 21:56 System.map-3.13.0-35-generic
-rw-------  1 root root  3386479 Sep  3 17:24 System.map-3.13.0-36-generic
-rw-------  1 root root  3386945 Sep 22 17:24 System.map-3.13.0-37-generic
-rw-------  1 root root  3386936 Oct 28 09:25 System.map-3.13.0-39-generic
-rw-------  1 root root  3387231 Nov 13 12:30 System.map-3.13.0-40-generic
-rw-------  1 root root  5634192 Feb 18  2014 vmlinuz-3.11.0-18-generic
-rw-------  1 root root  5637616 Jul  4  2014 vmlinuz-3.11.0-24-generic
-rw-------  1 root root  5639344 Jul 14 23:20 vmlinuz-3.11.0-26-generic
-rw-------  1 root root  5806368 Aug 14 21:56 vmlinuz-3.13.0-35-generic
-rw-------  1 root root  5806848 Sep  3 17:24 vmlinuz-3.13.0-36-generic
-rw-------  1 root root  5808832 Sep 22 17:24 vmlinuz-3.13.0-37-generic
-rw-------  1 root root  5808544 Oct 28 09:25 vmlinuz-3.13.0-39-generic
-rw-------  1 root root  5808960 Nov 13 12:30 vmlinuz-3.13.0-40-generic



julio

  • Guest
try with:

Code: [Select]
cd /boot
sudo rm initrd.img-3.11.0-18-generic initrd.img-3.11.0-24-generic initrd.img-3.11.0-26-generic
sudo apt-get install -f

Absolute

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Hey Julio,
It worked great.  I was able to run the clean up and freed up 3/4 of that disk.
Thanks!
dale