Page 3 of 9 FirstFirst 12345 ... LastLast
Results 21 to 30 of 87

Thread: Items cannot be installed or removed until the package catalog is repaired

  1. #21
    Join Date
    Sep 2012
    Beans
    5,003

    Re: Items cannot be installed or removed until the package catalog is repaired

    Code:
    Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
    Hit http://security.ubuntu.com precise-security/universe TranslationIndex
    Hit http://security.ubuntu.com precise-security/main Translation-en            
    Hit http://security.ubuntu.com precise-security/multiverse Translation-en
    Hit http://security.ubuntu.com precise-security/restricted Translation-en
    Hit http://security.ubuntu.com precise-security/universe Translation-en
    Ign http://ppa.launchpad.net precise InRelease
    Get:21 http://ppa.launchpad.net precise Release.gpg [316 B]
    Get:22 http://ppa.launchpad.net precise Release [11.9 kB]
    Get:23 http://ppa.launchpad.net precise/main Sources [657 B]
    Get:24 http://ppa.launchpad.net precise/main i386 Packages [660 B]
    Ign http://ppa.launchpad.net precise/main TranslationIndex
    Ign http://ppa.launchpad.net precise/main Translation-en_US                    
    Ign http://ppa.launchpad.net precise/main Translation-en                       
    Fetched 1,784 kB in 6s (257 kB/s)                                              
    Reading package lists... Done
    iltesham@iltesham-Inspiron-1525:~$ sudo apt-get install ubuntu-tweak
    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-3.2.0-38-generic : Depends: linux-headers-3.2.0-38 but it is not going to be installed
     linux-headers-generic : Depends: linux-headers-3.2.0-35-generic but it is not going to be installed
     linux-headers-generic-pae : Depends: linux-headers-3.2.0-35-generic-pae but it is not going to be installed
     ubuntu-tweak : Depends: python-lxml but it is not going to be installed
                    Depends: python-compizconfig but it is not going to be installed
                    Depends: gir1.2-unique-3.0 but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    iltesham@iltesham-Inspiron-1525
    Oops, should of seen that one coming. Give me a few minutes to find the proper terminal way. BB


  2. #22
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Items cannot be installed or removed until the package catalog is repaired

    First, you have only 1.2G left on /, not 70G. The rest is on your data partition mounted under /media:
    Code:
    Filesystem     Type      Size  Used Avail Use% Mounted on
    /dev/sda8      ext4      7.3G  5.8G 1.2G  84%  /
    But this should still be enough for an upgrade. The real problem however is this
    Code:
    Filesystem     Inodes IUsed IFree IUse% Mounted on
    /dev/sda8      472K   472K  138   100%  /
    You have over 480000 files on your root filesystem. That means the disk space used doesn't matter, it's the number of files that your filesystem cannot deal with anymore, even if they were small or empty. Normally, you shouldn't run out of inodes. There's going something strange with your filesystem.

    Try to free up some inodes by moving old log files to your data partition
    Code:
    mkdir /media/50c17553-f47c-4928-a68e-277c6f946cb9/log
    sudo mv /var/log/*.{gz,1,log} /media/50c17553-f47c-4928-a68e-277c6f946cb9/log
    Then clean APT archives
    Code:
    sudo apt-get clean
    Finally, force the full filesystem check on the next reboot
    Code:
    sudo touch /forcefsck
    and reboot.

    The next step would be using your data partition on /media as temporary store for /var/cache/apt/archives as described here. But first, report back with what you will get after reboot.
    Last edited by schragge; March 16th, 2013 at 09:11 PM.

  3. #23
    Join Date
    Sep 2012
    Beans
    5,003

    Re: Items cannot be installed or removed until the package catalog is repaired

    Ok, found it

    https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels

    EDIT: Just be sure not to delete the current running kernel (uname -r)
    Last edited by ibjsb4; March 16th, 2013 at 08:01 PM.


  4. #24
    Join Date
    Mar 2013
    Beans
    47

    Re: Items cannot be installed or removed until the package catalog is repaired

    Thanks for the reply. But what is the solution to this problem?
    Can you please guide me through it. I am a novice in ubuntu/linux.

  5. #25
    Join Date
    Sep 2012
    Beans
    5,003

    Re: Items cannot be installed or removed until the package catalog is repaired

    Yes, I can see the confusion. So let me step out of the picture and go with "schragge". Ill be on the side for the moment


  6. #26
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Items cannot be installed or removed until the package catalog is repaired

    I've updated my post with proposed actions. There's clearly going something very weird like some process writing tons of empty files or something like this.

  7. #27
    Join Date
    Mar 2013
    Beans
    47

    Re: Items cannot be installed or removed until the package catalog is repaired

    Quote Originally Posted by ibjsb4 View Post
    Ok, found it

    https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels

    EDIT: Just be sure not to delete the current running kernel (uname -r)
    hi ,
    even this is not working. Here is what i get

    iltesham@iltesham-Inspiron-1525:~$ uname -r
    3.2.0-35-generic
    iltesham@iltesham-Inspiron-1525:~$ dpkg -l | grep linux-image-
    rc linux-image-3.0.0-12-generic 3.0.0-12.20 Linux kernel image for version 3.0.0 on x86/x86_64
    rc linux-image-3.0.0-14-generic 3.0.0-14.23 Linux kernel image for version 3.0.0 on x86/x86_64
    rc linux-image-3.0.0-15-generic 3.0.0-15.26 Linux kernel image for version 3.0.0 on x86/x86_64
    rc linux-image-3.0.0-16-generic 3.0.0-16.29 Linux kernel image for version 3.0.0 on x86/x86_64
    rc linux-image-3.0.0-17-generic 3.0.0-17.30 Linux kernel image for version 3.0.0 on x86/x86_64
    ii linux-image-3.0.0-19-generic 3.0.0-19.33 Linux kernel image for version 3.0.0 on x86/x86_64
    rc linux-image-3.0.0-20-generic 3.0.0-20.34 Linux kernel image for version 3.0.0 on x86/x86_64
    ii linux-image-3.2.0-24-generic 3.2.0-24.39 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
    ii linux-image-3.2.0-25-generic 3.2.0-25.40 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-26-generic 3.2.0-26.41 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-29-generic 3.2.0-29.46 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-31-generic 3.2.0-31.50 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-32-generic 3.2.0-32.51 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-33-generic 3.2.0-33.52 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-34-generic 3.2.0-34.53 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-3.2.0-35-generic 3.2.0-35.55 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii linux-image-generic 3.2.0.35.40 Generic Linux kernel image
    iltesham@iltesham-Inspiron-1525:~$ sudo apt-get autoremove linux-image-3.2.0-32-generic
    [sudo] password for iltesham:
    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-3.2.0-38-generic : Depends: linux-headers-3.2.0-38 but it is not going to be installed
    linux-headers-generic : Depends: linux-headers-3.2.0-35-generic but it is not going to be installed
    linux-headers-generic-pae : Depends: linux-headers-3.2.0-35-generic-pae but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    iltesham@iltesham-Inspiron-1525:~$

  8. #28
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Items cannot be installed or removed until the package catalog is repaired

    Please follow the steps I outlined in that post.
    Last edited by schragge; March 16th, 2013 at 08:36 PM.

  9. #29
    Join Date
    Mar 2013
    Beans
    47

    Re: Items cannot be installed or removed until the package catalog is repaired

    hi,
    i cannot even create a dir
    here is what i am getting;

    iltesham@iltesham-Inspiron-1525:~$ sudo mkdir /media/50c17553-f47c-4928-a68e-277c6f946cb9/log
    mkdir: cannot create directory `/media/50c17553-f47c-4928-a68e-277c6f946cb9/log': No such file or directory
    iltesham@iltesham-Inspiron-1525:~$

  10. #30
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Items cannot be installed or removed until the package catalog is repaired

    Wait, what does ls /media show? How do you mount your data partition? By clicking on its label in the file manager?

    Anyway, let's do it the hard way:
    Code:
    sudo find /var/log -name \*.gz -o -name \*.old -o -name \*.1 -delete
    sudo apt-get clean
    sudo touch /forcefsck
    reboot
    Last edited by schragge; March 16th, 2013 at 09:07 PM.

Page 3 of 9 FirstFirst 12345 ... 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
  •