LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   can't receive updates (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/cant-receive-updates-879236/)

Bob Appleby 05-06-2011 02:34 PM

can't receive updates
 
I've received no upgrades in 13 days. There is a red triangle on my top panel containing a bang that says there is an update problem. Went to synaptic and asked for a reload and got two errors:

Could not download all repository indexes
The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the list directo

apt-get update: gave a message:
bob@bob-laptop:~/Scripts$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
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?

The network is working fine. Any ideas?

corp769 05-06-2011 08:15 PM

Hello,

Have you tried running apt-get update under root? Try the following:
Code:

sudo apt-get update
Cheers,

Josh

Bob Appleby 05-06-2011 09:30 PM

Hi Josh,

Tried it both ways and neither worked. Should have mentioned it in the first post.
If nothing else works I may do an update with natty narwhal.

Bob

Bob Appleby 05-06-2011 09:50 PM

update problem solved (I hope!)
 
I shut down the computer and rebooted and then tried the
sudo apt-get update command again. The following occurred:
*************************************************************
[sudo] password for bob:
Ign cdrom://Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007) maverick Release.gpg
Media change: please insert the disc labeled
'Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)'
in the drive '/cdrom/' and press enter
*************************************************************
After inserting the 10.10 disk and hitting enter it seemed
to do the job and synaptic agreed. The red triangle also disappeared.

I wonder what this whole thing was about?

Thanks for the help.

corp769 05-06-2011 11:00 PM

I'm curious man.... What kind of installation did you install, and what repos were configured on your system?

Bob Appleby 05-07-2011 10:08 AM

repro
 
Good morning Josh,

Not sure of he meaning of repo. Repository?

I installed 10.10 late last year from a downloaded disk. Except for google earth all programs
were installed using Synaptic or the Ubuntu Software Center. Been using the internet
and three books to study Ubuntu and bash and have screwed up the system on occasion
but have managed so far to bring everything back to normal. Everything except for an
error message when bringing up the terminal:

********************************************************************************
alias fot='dir'
bash: alias: =diralias: not found
bob@bob-laptop:~$
********************************************************************************

So, what does repo stand for?

Bob

MTK358 05-07-2011 10:10 AM

repo means "repository".

carltm 05-07-2011 10:17 AM

Bob, it sounds like you have the CD configured as a source. It
can be removed since you have network connections. If you're not
sure how to do this, post the contents of your /etc/apt/sources.list
file and any files in /etc/apt/sources.list.d.

Bob Appleby 05-08-2011 08:01 AM

update problem
 
/etc/apt/sources.list

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse

deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository
bob@bob-laptop:~$

Two files in /etc/apt/sources.list.d.

google-earth.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb http://dl.google.com/linux/earth/deb/ stable main # disabled on upgrade to maverick

google-earth.list.distUpgrade
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/earth/deb/ stable main

corp769 05-08-2011 08:54 AM

Code:

deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
You can just comment that line out using the # character. You should be good after that. If the problem still persists, let us know.

Cheers,

Josh

Bob Appleby 05-09-2011 08:11 AM

That was an interesting learning experience! Never changed a read only file before.
It took a while to figure out the necessity of logging in on the terminal witb
sudo su. After that everything went well. There are no updates available right
now so I can't check on whether it is working.

A many years a go I read a book with the title "The mythical man month"
about the writing of the operating system for the IBM360(?) main frame. I was a chemist in the
process of learning Fortran on an IBM 1620 that had (as I remember) 32k of donut memory.
Programs had to be written in separate parts because of memory
restrictions. Anyway the book said that no one knew the whole 360 operating
system since many people and groups worked on different aspects and essentially
wrote multitudes of "black boxes". Do you guys or any others understand all of Ubuntu Linux?
I've learned a lot over the past year, but it is probably a tiny percentage of
the whole thing. I'm learning it because (#1) of being told that people of my age
should take on difficult mental activities (#2) the recommended cross word
puzzles are not fun and (#3) leaning Ubuntu is loads of fun.

If it is not too much trouble would you tell me why commenting out the line
you suggested works and why it interfered in the first place?

bob

corp769 05-09-2011 09:07 PM

The reason why it interfered in the first place is because it tried looking for that directory, and it stuck because it was the primary repo; the first one in the list. So by removing it, or commenting out like you did, now it will work as advertised :)

And as far as learning Ubuntu, honestly, I never used it ;) I run Fedora, OpenBSD, and Slackware :)

Bob Appleby 05-10-2011 07:55 AM

Just got a call from the update manager and everything went smoothly, so the problem
has gone away and I've learned a lot. Many, many thanks.

Bob

MTK358 05-10-2011 08:00 AM

Mark the thread as solved.


All times are GMT -5. The time now is 10:38 AM.