LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2010, 10:57 PM   #1
yewint
Member
 
Registered: Dec 2009
Posts: 57

Rep: Reputation: 15
apt-get problem on ubuntu8.4


Hi geeks,
I got some problem installing packages on ubuntu with apt-get. I have ubuntu8.4 installed on my machine. I tried to install subversion.

Quote:
# apt-get install subversion
then i got this error

Quote:
Reading package lists... Error!
E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.
I update the apt-get

Quote:
# apt-get update
still problem! the above error happens again.
whats worng? Help me please.
 
Old 04-21-2010, 11:08 PM   #2
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Post:
Code:
cat /etc/apt/sources.list
 
Old 04-21-2010, 11:17 PM   #3
yewint
Member
 
Registered: Dec 2009
Posts: 57

Original Poster
Rep: Reputation: 15
that file contains

Quote:
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted

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

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-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/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-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/ hardy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-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 hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
how can i use it to solve my problem?

Last edited by yewint; 04-21-2010 at 11:19 PM.
 
Old 04-21-2010, 11:21 PM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Post the error after doing "sudo apt-get update" and post:
Code:
ps aux | grep apt-get
ps aux | grep aptitude
ls -l /var/lib/dpkg

Last edited by cola; 04-21-2010 at 11:38 PM.
 
Old 04-21-2010, 11:33 PM   #5
yewint
Member
 
Registered: Dec 2009
Posts: 57

Original Poster
Rep: Reputation: 15
the result of apt-get update is

Quote:
Hit http://us.archive.ubuntu.com hardy Release.gpg
Hit http://archive.canonical.com hardy Release.gpg
Hit http://security.ubuntu.com hardy-security Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-en_US
Ign http://us.archive.ubuntu.com hardy/main Translation-en_US
Hit http://archive.canonical.com hardy Release
Ign http://us.archive.ubuntu.com hardy/restricted Translation-en_US
Hit http://archive.canonical.com hardy/partner Packages
Ign http://us.archive.ubuntu.com hardy/universe Translation-en_US
Ign http://us.archive.ubuntu.com hardy/multiverse Translation-en_US
Hit http://archive.canonical.com hardy/partner Sources
Hit http://us.archive.ubuntu.com hardy-updates Release.gpg
Ign http://us.archive.ubuntu.com hardy-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com hardy-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com hardy-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com hardy-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com hardy Release
Hit http://us.archive.ubuntu.com hardy-updates Release
Hit http://us.archive.ubuntu.com hardy/main Packages
Hit http://us.archive.ubuntu.com hardy/restricted Packages
Hit http://us.archive.ubuntu.com hardy/main Sources
Hit http://us.archive.ubuntu.com hardy/restricted Sources
Hit http://us.archive.ubuntu.com hardy/universe Packages
Hit http://us.archive.ubuntu.com hardy/universe Sources
Hit http://us.archive.ubuntu.com hardy/multiverse Packages
Hit http://us.archive.ubuntu.com hardy/multiverse Sources
Hit http://us.archive.ubuntu.com hardy-updates/main Packages
Hit http://us.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://us.archive.ubuntu.com hardy-updates/main Sources
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Hit http://us.archive.ubuntu.com hardy-updates/restricted Sources
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US
Hit http://us.archive.ubuntu.com hardy-updates/universe Packages
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US
Hit http://us.archive.ubuntu.com hardy-updates/universe Sources
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://security.ubuntu.com hardy-security Release
Hit http://us.archive.ubuntu.com hardy-updates/multiverse Sources
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Hit http://security.ubuntu.com hardy-security/universe Packages
Hit http://security.ubuntu.com hardy-security/universe Sources
Hit http://security.ubuntu.com hardy-security/multiverse Packages
Hit http://security.ubuntu.com hardy-security/multiverse Sources
Reading package lists... Error!
E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.
Quote:
# ps aux | grep apt-get
Quote:

root 5850 0.1 0.3 5064 1780 pts/2 S+ 00:35 0:00 apt-get update
root 5857 0.0 0.1 3008 772 pts/0 S+ 00:36 0:00 grep apt-get

Quote:
# ps aux | grep aptitude
Quote:

root 5859 0.0 0.1 3004 768 pts/0 S+ 00:37 0:00 grep aptitude
Quote:
# ls -l /var/log/dpkg.log
Quote:
-rw-r----- 1 root adm 0 2010-04-02 00:43 /var/log/dpkg.log

Last edited by yewint; 04-21-2010 at 11:36 PM.
 
Old 04-21-2010, 11:37 PM   #6
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Typo.That will be:
Code:
ls -l /var/lib/dpkg
 
Old 04-21-2010, 11:40 PM   #7
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Post:
Code:
jobs
Code:
sudo kill -9 5850
sudo aptitude clean
sudo aptitude update
 
Old 04-21-2010, 11:42 PM   #8
yewint
Member
 
Registered: Dec 2009
Posts: 57

Original Poster
Rep: Reputation: 15
no such file or directory !

Quote:
# ls -l /var/log/dpkg
Quote:
ls: cannot access /var/log/dpgk: No such file or directory
 
Old 04-21-2010, 11:45 PM   #9
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
I edited the post.
See previous post.
Post:
Code:
ls -lR /var/lib/dpkg

Last edited by cola; 04-21-2010 at 11:56 PM.
 
Old 04-21-2010, 11:46 PM   #10
yewint
Member
 
Registered: Dec 2009
Posts: 57

Original Poster
Rep: Reputation: 15
when i run "sudo aptitude clean"

Quote:
Reading package lists... Error!
E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.
E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.
 
Old 04-21-2010, 11:49 PM   #11
yewint
Member
 
Registered: Dec 2009
Posts: 57

Original Poster
Rep: Reputation: 15
# cat /var/log/dpkg.log

no content contained in the file .
 
Old 04-21-2010, 11:53 PM   #12
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Code:
sudo dpkg --configure -a
sudo aptitude clean
sudo aptitude update
 
Old 04-21-2010, 11:57 PM   #13
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Post:
Code:
ls -lR /var/lib/dpkg
sudo cat /var/lib/dpkg/status
 
Old 04-22-2010, 12:05 AM   #14
yewint
Member
 
Registered: Dec 2009
Posts: 57

Original Poster
Rep: Reputation: 15
# sudo dpkg --configure -a

Quote:
dpkg: failed to open package info file `/var/lib/dpkg/status' for reading: No such file or directory
#sudo aptitude clean

Quote:
Reading package lists... Error!
E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.
E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.
 
Old 04-22-2010, 12:10 AM   #15
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Quote:
Originally Posted by yewint View Post
# sudo dpkg --configure -a



#sudo aptitude clean
Post:
Code:
ls -l /var/lib/dpkg
 
  


Reply


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
vi editing problem in Ubuntu8.1... visitnag Linux - Newbie 6 01-18-2009 10:23 AM
Ubuntu8.1 partition problem.. visitnag Linux - Software 12 01-04-2009 11:55 AM
hard drive mounting problem in Ubuntu8.04 pr5439 Linux - Software 2 11-11-2008 05:26 PM
LAMP problem on ubuntu8.04 2beahacker Linux - Server 13 10-08-2008 11:34 PM
Sound problem Ubuntu8.04 kernel 2.6.24-19-386 cctv Linux - Desktop 0 09-09-2008 08:44 PM


All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration