Unable to Update

Roger Benham rogerbenham2000 at yahoo.ca
Wed Jun 3 21:48:30 UTC 2009


More thanks for your help.

Your Letter:
Message: 7
Date: Wed, 3 Jun 2009 14:45:48 -0500
From: Chris Mohler <cr33dog at gmail.com>
Subject: Re: Unable to Update
To: "Ubuntu user technical support,    not for general discussions"
    <ubuntu-users at lists.ubuntu.com>
Message-ID:
    <acfad57e0906031245r18fa1537scd1f99c7b090b4ae at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Wed, Jun 3, 2009 at 2:13 PM, Roger Benham <rogerbenham2000 at yahoo.ca> wrote:
> Thanks for all the help but I'm still stuck!

> **********Terminal gave these replies:
> roger at roger-desktop:~$ sudo -s
> root at roger-desktop:~# aptitude update
> Segmentation fault
> root at roger-desktop:~# aptitude upgrade
> W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
> Segmentation faultsts... 0%
> root at roger-desktop:~# safe-upgrade
> bash: safe-upgrade: command not found
> root at roger-desktop:~# aptitude safe-upgrade
> Segmentation faultsts... 0%
> root at roger-desktop:~# aptitude "safe-upgrade"
> Segmentation faultsts... 0%
> root at roger-desktop:~#

Could this be a corrupt apt cache?  I've never had one since moving to
Ubuntu, but this should clear it out (just tried it myself):
sudo rm /var/cache/apt/*.bin

Then you should be able to 'sudo aptitude update', etc.

HTH,
Chris

So this is what I did:

roger at roger-desktop:~$ sudo rm /var/cache/apt/*.bin
[sudo] password for roger: 
roger at roger-desktop:~$ sudo aptitude update
Writing extended state information... Done
Hit http://ca.archive.ubuntu.com jaunty Release.gpg
Hit http://ca.archive.ubuntu.com jaunty/main Translation-en_CA
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_CA
Hit http://ca.archive.ubuntu.com jaunty/restricted Translation-en_CA
Ign http://ca.archive.ubuntu.com jaunty/universe Translation-en_CA
Ign http://ca.archive.ubuntu.com jaunty/multiverse Translation-en_CA
Hit http://ca.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://ca.archive.ubuntu.com jaunty-updates/main Translation-en_CA
Ign http://ca.archive.ubuntu.com jaunty-updates/restricted Translation-en_CA
Ign http://ca.archive.ubuntu.com jaunty-updates/universe Translation-en_CA
Ign http://ca.archive.ubuntu.com jaunty-updates/multiverse Translation-en_CA
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_CA
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_CA
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_CA
Hit http://security.ubuntu.com jaunty-security Release
Hit http://ca.archive.ubuntu.com jaunty Release
Hit http://ca.archive.ubuntu.com jaunty-updates Release             
Hit http://security.ubuntu.com jaunty-security/main Packages
Hit http://ca.archive.ubuntu.com jaunty/main Packages
Hit http://ca.archive.ubuntu.com jaunty/restricted Packages
Hit http://ca.archive.ubuntu.com jaunty/main Sources
Hit http://ca.archive.ubuntu.com jaunty/restricted Sources
Hit http://ca.archive.ubuntu.com jaunty/universe Packages
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://security.ubuntu.com jaunty-security/restricted Sources
Hit http://security.ubuntu.com jaunty-security/universe Packages
Hit http://ca.archive.ubuntu.com jaunty/universe Sources
Hit http://ca.archive.ubuntu.com jaunty/multiverse Packages
Hit http://ca.archive.ubuntu.com jaunty/multiverse Sources
Hit http://ca.archive.ubuntu.com jaunty-updates/main Packages
Hit http://ca.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://ca.archive.ubuntu.com jaunty-updates/main Sources
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Hit http://ca.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://ca.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://ca.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://ca.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://ca.archive.ubuntu.com jaunty-updates/multiverse Sources
Reading package lists... Done             

roger at roger-desktop:~$ safe-upgrade
bash: safe-upgrade: command not found
roger at roger-desktop:~$ aptitude safe-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
roger at roger-desktop:~$ aptitude "safe-upgrade"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
roger at roger-desktop:~$ 

And nothing happened ... but then the update Manager opened and now I am installing 145 updates.
So, thanks very much!
Roger.






      __________________________________________________________________
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090603/5fec01ec/attachment.html>


More information about the ubuntu-users mailing list