LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get problem on ubuntu8.4 (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-problem-on-ubuntu8-4-a-803432/)

yewint 04-21-2010 10:57 PM

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.

cola 04-21-2010 11:08 PM

Post:
Code:

cat /etc/apt/sources.list

yewint 04-21-2010 11:17 PM

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?

cola 04-21-2010 11:21 PM

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


yewint 04-21-2010 11:33 PM

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

cola 04-21-2010 11:37 PM

Typo.That will be:
Code:

ls -l /var/lib/dpkg

cola 04-21-2010 11:40 PM

Post:
Code:

jobs
Code:

sudo kill -9 5850
sudo aptitude clean
sudo aptitude update


yewint 04-21-2010 11:42 PM

no such file or directory !

Quote:

# ls -l /var/log/dpkg
Quote:

ls: cannot access /var/log/dpgk: No such file or directory

cola 04-21-2010 11:45 PM

I edited the post.
See previous post.
Post:
Code:

ls -lR /var/lib/dpkg

yewint 04-21-2010 11:46 PM

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.

yewint 04-21-2010 11:49 PM

# cat /var/log/dpkg.log

no content contained in the file .

cola 04-21-2010 11:53 PM

Code:

sudo dpkg --configure -a
sudo aptitude clean
sudo aptitude update


cola 04-21-2010 11:57 PM

Post:
Code:

ls -lR /var/lib/dpkg
sudo cat /var/lib/dpkg/status


yewint 04-22-2010 12:05 AM

# 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.

cola 04-22-2010 12:10 AM

Quote:

Originally Posted by yewint (Post 3943564)
# sudo dpkg --configure -a



#sudo aptitude clean

Post:
Code:

ls -l /var/lib/dpkg


All times are GMT -5. The time now is 12:34 AM.