The package needs to be reinstalled, but I can't find an archive for it. code example
Example 1: The package needs to be reinstalled, but I can't find an archive for it
Start with:
sudo dpkg --remove --force-all package_name
If that fails:
sudo rm -i /var/lib/dpkg/info/package_name.*
sudo dpkg --remove --force-remove-reinstreq package_name
Confirm Apt is fixed. The following command should return no errors:
sudo apt-get update
Example 2: The package flectra needs to be reinstalled, but I can't find an archive for it.
run the following commond on the terminal
1)sudo cp /var/lib/dpkg/status status.bkp
2)sudo gedit /var/lib/dpkg/status
3)then Search for the package name that appears in the error.
Note that, in our case the culprit package was ‘flectra’ which was in
‘purge reinstreq half-installed’ state. After you have located the
culprit package, delete the section of information related to that
package and save the file.
In our case, we deleted the section related to ‘flectra’
inside the rectangle and saved the file.
Close ‘gedit’ when done.
then try to install the pakage you want to install and you fill find no
error now :)