LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-06-2008, 09:34 AM   #1
Bottesford
LQ Newbie
 
Registered: Nov 2004
Location: Nottingham, UK
Distribution: Ubuntu 7.10
Posts: 6

Rep: Reputation: 0
DPKG Package List Missing


Hi, I'm fairly new and I have a problem that I just can't fix despite much searching.

I'm having big problems with dpkg and apt-get.
I recently attempted an install of Pro-FTPD server via the Webmin interface which just hung forever for some reason.
I went into the terminal to try and got all sorts of locking errors within dpkg folder. I followed advice online to remove lock files and trying:

sudo apt-get clean
sudo apt-get update

But now I get the error:
'The package lists or status file could not be parsed or opened'.
The status folder under dpkg was missing so I put it back but still I get this error.
Can I rebuild my pakage list somehow? I think the file has gone missing somehow.
I cannot use any installation tools or updates at the moment. I've tried rebooting to no avail.

I'm fairly new to Ubuntu & Linux and am trying to setup a web server (well LAMP server) for my website but I'm getting a bit nervous as it seems extremely easy to break your computer!

Thanks for any help
 
Old 01-06-2008, 01:44 PM   #2
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
check to see if the apt repository list exist

post the results of...
cat /etc/apt/sources.list

If the files isn't found, I'll send you a copy of mine. At that point it should fix apt-get update

Also, are you running these commands as root or by using sudo?
 
Old 01-06-2008, 02:25 PM   #3
Bottesford
LQ Newbie
 
Registered: Nov 2004
Location: Nottingham, UK
Distribution: Ubuntu 7.10
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by armanox View Post
check to see if the apt repository list exist

post the results of...
cat /etc/apt/sources.list

If the files isn't found, I'll send you a copy of mine. At that point it should fix apt-get update

Also, are you running these commands as root or by using sudo?
All commands using sudo yes. sources.list is present and shown below.
I don't think it's apt that's at fault - seems to be DPKG from what I can gather.

Code:
# 
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-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://gb.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-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://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-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://gb.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-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 gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
 
Old 01-06-2008, 03:20 PM   #4
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
Code:
# 
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

#deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-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://gb.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-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://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-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://gb.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-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 gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
try with the modification i made. If it really is dpkg that's borked, you may need to redo the installation.
 
Old 01-07-2008, 03:40 PM   #5
Bottesford
LQ Newbie
 
Registered: Nov 2004
Location: Nottingham, UK
Distribution: Ubuntu 7.10
Posts: 6

Original Poster
Rep: Reputation: 0
I found that several files & dirs were missing from DPKG-
'status' and 'available' had gone along with 'updates' dir. I put them back which allows update tools to function again.
Problem now is I think everything is out of sync. The system is asking to do critical updates (56 of them) which I tell it do. It then fails to install with error:
'Could not perform immediate configuration (2) on libpam-runtime'.
To me, it seems like its trying to redo already installed updates.
Is there a way to rebuild the install package lists?

edit - using Synaptic Package Manager shows I have 0 packages installed - so I'm sure I'm right. Well think so anyway!

Last edited by Bottesford; 01-07-2008 at 03:41 PM.
 
  


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
apt-get dpkg error: files list file ... missing final newline PBSchmidt Debian 12 02-07-2017 11:41 PM
What is the Package Search pattern Syntax for dpkg --list? Akhran Debian 3 08-23-2005 06:23 AM
DPKG & "files list file for package `pkg-config' contains empty filename" error :( Angelus Debian 2 04-02-2005 08:34 AM
DPKG and truncated package name list gjhicks Debian 2 07-20-2004 02:02 AM
Is there any way to display the full name of package via dpkg -l <package pattern> ? davidas Debian 4 04-07-2004 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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