Unable to install any package

Questions about applications and software
Forum rules
Before you post please read this

Unable to install any package

Postby suryadharani on Tue Feb 05, 2013 2:37 am

when i try to install ANY application through terminal, i get this error
"""
Reading package lists... Error!
E: Read error - read (21: Is a directory)
E: The package lists or status file could not be parsed or opened.
"""


And software center is also not opening.
Neither synaptic manager. It gives the following error when i try to optn it.
"""
E: Read error - read (21: Is a directory)
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
"""
---Solutions i tried so far-(even they dint work out :( )
1>
sudo rm -rf /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-amd64_Packages
sudo apt-get update
2>
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
3>
Frinds, please come with your suggestions.
Am in a kind of hell, not in a position to use the "apt-get install" even..
suryadharani
Level 1
Level 1
 
Posts: 1
Joined: Mon Feb 04, 2013 3:18 am

Linux Mint is funded by ads and donations.
 

Re: Unable to install any package

Postby kc1di on Tue Feb 05, 2013 7:22 am

Hello and welcome to Mint,

go to a terminal and type the following commands and see if it will allow you to install programs.

Code: Select all
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update


good luck,
dave
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1211
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Unable to install any package

Postby viking777 on Tue Feb 05, 2013 8:04 am

The error says it is having problems with either lists or status. As you have already removed lists and it made no difference, that leaves us with 'status'.

If I run the command
Code: Select all
ls /var/lib/dpkg/
alternatives/  available-old  diversions-old  parts/        status-old
arch           cmethopt       info/           statoverride  triggers/
available      diversions     lock            status        updates/


You will see that I have a file called status and another called status-old. If you have the same I would do this:

Code: Select all
sudo mv /var/lib/dpkg/status  /var/lib/dpkg/status.broken

Followed by

Code: Select all
sudo mv /var/lib/dpkg/status-old  /var/lib/dpkg/status

finally run

Code: Select all
sudo dpkg --configure -a

And see if it works now.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests