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

Thread: Reset APT, get rid of obsolete packages, help I'm stuck!

  1. #1
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    88

    Reset APT, get rid of obsolete packages, help I'm stuck!

    I'm running Lubuntu 12.10 liveCD, persistent install on FAT32-formatted 4GB pendrive (3.2GB casper file - Unetbootin method).
    I can install packages, that's cool.
    I tried to install alternative kernel but it failed.
    Now I have linux-image-3.4.9-rt17-avl2-pae package as 'obsolete'.
    It's not installed but whenever I try to install new package or upgrade the system, I get error:

    lubuntu@lubuntu:~$ sudo apt-get install aptitude
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    aptitude-common libboost-iostreams1.49.0 libcwidget3
    Suggested packages:
    aptitude-doc-en aptitude-doc tasksel debtags libcwidget-dev
    Recommended packages:
    apt-xapian-index libparse-debianchangelog-perl
    The following packages will be REMOVED:
    linux-image-3.4.9-rt17-avl2-pae
    The following NEW packages will be installed:
    aptitude aptitude-common libboost-iostreams1.49.0 libcwidget3
    0 upgraded, 4 newly installed, 1 to remove and 116 not upgraded.
    2 not fully installed or removed.
    Need to get 0 B/2,513 kB of archives.
    After this operation, 71.1 MB disk space will be freed.
    Do you want to continue [Y/n]?
    (Reading database ... 145934 files and directories currently installed.)
    Removing linux-image-3.4.9-rt17-avl2-pae ...
    update-initramfs: Deleting /boot/initrd.img-3.4.9-rt17-avl2-pae
    lzma: (stdout): Write error: No space left on device
    run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
    /usr/sbin/grub-probe: error: failed to get canonical path of /cow.
    run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
    dpkg: error processing linux-image-3.4.9-rt17-avl2-pae (--remove):
    subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
    linux-image-3.4.9-rt17-avl2-pae
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    lubuntu@lubuntu:~$

    How to get rid of it? it's not in /boot, it's not in repos.

  2. #2
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    Code:
    update-initramfs: Deleting /boot/initrd.img-3.4.9-rt17-avl2-pae
    lzma: (stdout): Write error: No space left on device
    run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 1
    Sounds like you need to remove some of those old kernels. I use synaptic for that, but there are other ways to do it.

    https://help.ubuntu.com/community/Lu...moveOldKernels
    http://www.googlubuntu.com/results/?...of%3DFORID%3A9

  3. #3
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    88

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    Yes tried synaptic doesn't work

    'no space left' because it's 'live cd'



    lubuntu@lubuntu:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /cow 3.0G 1.4G 1.6G 47% /
    udev 742M 4.0K 742M 1% /dev
    tmpfs 301M 852K 300M 1% /run
    /dev/sdb1 3.8G 3.8G 0 100% /cdrom
    /dev/loop0 639M 639M 0 100% /rofs
    tmpfs 751M 4.0K 751M 1% /tmp
    none 5.0M 0 5.0M 0% /run/lock
    none 751M 596K 750M 1% /run/shm
    none 100M 8.0K 100M 1% /run/user

    lubuntu@lubuntu:~$ ls /cdrom/boot/
    grub

    lubuntu@lubuntu:~$ ls /boot
    abi-3.5.0-17-generic grub System.map-3.5.0-17-generic
    abi-3.5.0-25-lowlatency initrd.img-3.5.0-25-lowlatency System.map-3.5.0-25-lowlatency
    config-3.5.0-17-generic memtest86+.bin vmlinuz-3.5.0-25-lowlatency
    config-3.5.0-25-lowlatency memtest86+_multiboot.bin

    lubuntu@lubuntu:~$ ls /rofs/boot/
    abi-3.5.0-17-generic grub memtest86+_multiboot.bin
    config-3.5.0-17-generic memtest86+.bin System.map-3.5.0-17-generic
    lubuntu@lubuntu:~$

  4. #4
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    88

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    Solution from the link provided doesn't work still the same error.
    Well I have to reinstall the system I guess.

    Thanks for reply!

  5. #5
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    you're really funny, really

    if you boot on the livecd, all the commands are related to that livecd; which is (as you know) write protected (as its burned)

    so apt is ok, but your brain not

  6. #6
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    88

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    Quote Originally Posted by dino99 View Post
    you're really funny, really

    if you boot on the livecd, all the commands are related to that livecd; which is (as you know) write protected (as its burned)

    so apt is ok, but your brain not
    Nothing wrong with my brain, mate. Read again first post.
    It's PERSISTENT install.
    I CAN install packages, make changes in /etc, it still there after reboot. Just the kernel upgrade caused problem.

  7. #7
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    88

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    lubuntu@lubuntu:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /cow 3.0G 1.4G 1.6G 47% /
    udev 742M 4.0K 742M 1% /dev
    tmpfs 301M 852K 300M 1% /run
    /dev/sdb1 3.8G 3.8G 0 100% /cdrom
    /dev/loop0 639M 639M 0 100% /rofs
    tmpfs 751M 4.0K 751M 1% /tmp
    none 5.0M 0 5.0M 0% /run/lock
    none 751M 568K 750M 1% /run/shm
    none 100M 8.0K 100M 1% /run/user

    /cow - that's where changes are written, physically it's 3.2GB disk image on pendrive.
    In order to install kernel, system tries to write something on /rofs.

  8. #8
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    sorry misunderstood

    but 4 Gb for a persistent install is way too narrow, as the cache grow with updates, and /tmp needs room while decompressing/installing. 10-12 Gb is required, or everytime you need to wipe the cache first to make room.

    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove

    An easy way to deal with the packages (kernel removal for example) is to install synaptic, then using it.
    Last edited by dino99; March 6th, 2013 at 12:15 PM.

  9. #9
    Join Date
    Feb 2006
    Location
    Europe
    Beans
    88

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    4 Gb for a persistent install is way too narrow, as the cache grow with updates, and /tmp needs room while decompressing/installing
    lubuntu@lubuntu:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    tmpfs 751M 4.0K 751M 1% /tmp

    /tmp is mounted in RAM so flushed after each reboot

    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove
    I do it after each install/remove

    An easy way to deal with the packages (kernel removal for example) is to install synaptic, then using it.
    I said already - synaptic generates the same error.

  10. #10
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Reset APT, get rid of obsolete packages, help I'm stuck!

    You cant update or change the kernel when using a persistant USB setup.

    The kernel lives in the root squashfs filesystem which is read only.
    Cheesemill

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
  •