Failed to check for installed or available applications

Asked by ramesh

When i open the Add/Remove a window appears and following error is displayed.

This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/sources.list' and reload the software information with: 'sudo apt-get update' and 'sudo apt-get install -f'.

I tried to correct it but the following errors are displayed in terminal.Plz help me!!
ramesh@Ramesh:~$ sudo dpkg-reconfigure -a
dpkg-query: syntax error in triggers Deferred file `/var/lib/dpkg/triggers/Unincorp' at character `U' midline
/usr/sbin/dpkg-reconfigure: acl is not installed

ramesh@Ramesh:~$ sudo apt-get install-f
E: Invalid operation install-f
ramesh@Ramesh:~$ sudo apt-get install -f
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.

ramesh@Ramesh:~$ sudo apt-get update
Get:1 http://archive.ubuntu.com hardy Release.gpg [189B]
Get:2 http://archive.canonical.com hardy Release.gpg [189B]
Get:3 http://security.ubuntu.com hardy-security Release.gpg [189B]
Ign http://ppa.launchpad.net hardy Release.gpg
Get:4 http://in.archive.ubuntu.com hardy Release.gpg [189B]
Hit http://archive.ubuntu.com hardy Release
Ign http://archive.canonical.com hardy/partner Translation-en_IN
Ign http://security.ubuntu.com hardy-security/main Translation-en_IN
Ign http://ppa.launchpad.net hardy/main Translation-en_IN
Ign http://in.archive.ubuntu.com hardy/main Translation-en_IN
Hit http://archive.canonical.com hardy Release
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_IN
Hit http://archive.ubuntu.com hardy/main Sources
Get:5 http://ppa.launchpad.net hardy Release [27.6kB]
Ign http://in.archive.ubuntu.com hardy/restricted Translation-en_IN
Hit http://archive.canonical.com hardy/partner Packages
Ign http://security.ubuntu.com hardy-security/universe Translation-en_IN
Hit http://archive.ubuntu.com hardy/restricted Sources
Ign http://ppa.launchpad.net hardy/main Packages
Ign http://in.archive.ubuntu.com hardy/universe Translation-en_IN
Hit http://archive.canonical.com hardy/partner Sources
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_IN
Hit http://ppa.launchpad.net hardy/main Packages
Ign http://in.archive.ubuntu.com hardy/multiverse Translation-en_IN
Get:6 http://security.ubuntu.com hardy-security Release [58.5kB]
Get:7 http://in.archive.ubuntu.com hardy-updates Release.gpg [189B]
Ign http://in.archive.ubuntu.com hardy-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com hardy-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com hardy-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com hardy-updates/multiverse Translation-en_IN
Hit http://in.archive.ubuntu.com hardy Release
Get:8 http://security.ubuntu.com hardy-security/main Packages [67.7kB]
Get:9 http://in.archive.ubuntu.com hardy-updates Release [58.5kB]
Get:10 http://security.ubuntu.com hardy-security/restricted Packages [7159B]
Hit http://in.archive.ubuntu.com hardy/main Packages
Hit http://in.archive.ubuntu.com hardy/restricted Packages
Get:11 http://security.ubuntu.com hardy-security/restricted Sources [1092B]
Get:12 http://security.ubuntu.com hardy-security/main Sources [15.1kB]
Hit http://in.archive.ubuntu.com hardy/restricted Sources
Get:13 http://security.ubuntu.com hardy-security/multiverse Sources [14B]
Get:14 http://security.ubuntu.com hardy-security/universe Sources [6773B]
Get:15 http://security.ubuntu.com hardy-security/universe Packages [40.1kB]
Hit http://in.archive.ubuntu.com hardy/main Sources
Hit http://in.archive.ubuntu.com hardy/multiverse Sources
Hit http://in.archive.ubuntu.com hardy/universe Sources
Hit http://in.archive.ubuntu.com hardy/universe Packages
Get:16 http://security.ubuntu.com hardy-security/multiverse Packages [8637B]
Hit http://in.archive.ubuntu.com hardy/multiverse Packages
Get:17 http://in.archive.ubuntu.com hardy-updates/main Packages [374kB]
Get:18 http://in.archive.ubuntu.com hardy-updates/restricted Packages [7103B]
Get:19 http://in.archive.ubuntu.com hardy-updates/restricted Sources [1092B]
Get:20 http://in.archive.ubuntu.com hardy-updates/main Sources [97.3kB]
Get:21 http://in.archive.ubuntu.com hardy-updates/multiverse Sources [4020B]
Get:22 http://in.archive.ubuntu.com hardy-updates/universe Sources [31.7kB]
Get:23 http://in.archive.ubuntu.com hardy-updates/universe Packages [135kB]
Get:24 http://in.archive.ubuntu.com hardy-updates/multiverse Packages [23.9kB]
Fetched 938kB in 27s (33.6kB/s)
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.
ramesh@Ramesh:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-app-install Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
blackwolf13 (shadowsstuff) said :
#1

1) I would first try renaming the status file to status-1 (my means of a term sudo command), then running System-Administration-Update Manager and see if it will build a new status file.
2) If that doesn't work I would then try renaming the status-old file to status, then running System-Administration-Update Manager and see if that gives you errors.

*) The upside to trying these things is if it doesn't work you rename the files back to there original names, and you are not any worse off than when you started; And then again it could fix your issues.

Revision history for this message
ramesh (rameshiit19) said :
#2

Sorry I dont understand.Plz send me the command to run in terminal to correct the problem

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Try this:

Open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask ramesh for more information if necessary.

To post a message you must log in.