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..
Unable to install any package
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Unable to install any package
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Unable to install any package
Hello and welcome to Mint,
go to a terminal and type the following commands and see if it will allow you to install programs.
good luck,
dave
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
dave
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Re: Unable to install any package
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
You will see that I have a file called status and another called status-old. If you have the same I would do this:
Followed by
finally run
And see if it works now.
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/
Code: Select all
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.broken
Code: Select all
sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
Code: Select all
sudo dpkg --configure -a