LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 05-06-2011, 01:34 PM   #1
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Rep: Reputation: 0
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?
 
Old 05-06-2011, 07:15 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Hello,

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

Josh
 
Old 05-06-2011, 08:30 PM   #3
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
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
 
Old 05-06-2011, 08:50 PM   #4
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
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.
 
Old 05-06-2011, 10:00 PM   #5
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
I'm curious man.... What kind of installation did you install, and what repos were configured on your system?
 
Old 05-07-2011, 09:08 AM   #6
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
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
 
Old 05-07-2011, 09:10 AM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
repo means "repository".
 
Old 05-07-2011, 09:17 AM   #8
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
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.
 
1 members found this post helpful.
Old 05-08-2011, 07:01 AM   #9
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
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
 
Old 05-08-2011, 07:54 AM   #10
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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
 
1 members found this post helpful.
Old 05-09-2011, 07:11 AM   #11
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
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
 
Old 05-09-2011, 08:07 PM   #12
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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
 
Old 05-10-2011, 06:55 AM   #13
Bob Appleby
Member
 
Registered: Sep 2010
Location: Hope, Maine
Distribution: ubuntu 13.04
Posts: 31

Original Poster
Rep: Reputation: 0
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
 
Old 05-10-2011, 07:00 AM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Mark the thread as solved.
 
1 members found this post helpful.
  


Reply

Tags
update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
got a Fedora 9 indication that yum updates were available, but there were no updates landonmkelsey Linux - Software 12 02-08-2009 09:53 AM
LXer: Updates, Beautiful Updates LXer Syndicated Linux News 0 01-28-2008 04:20 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
Can't receive mail SylCR Linux - Newbie 12 02-06-2004 12:17 PM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration