The package needs to be reinstalled, but I can't find an archive for it.

Under the linux mint 18 Serena system, in the middle of installing astah-community, I thought it was too slow and wanted to close it, so I restarted the computer. After installing any software, it will prompt a sentence

“The package astah-community needs to be reinstalled, but I can't find an archive for it.”

Reference link : http://www.ihaveapc.com/2011/10/fix-annoying-the-package-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it-error -in-linux-mint-ubuntu/


I summed up the ending method:

1. Open the terminal and enter the following command to switch to the root user

his

Then enter the password of the root user and switch to root to obtain the highest authorization.

2. Type the following code in the terminal to backup dpkg status.

cp /var/lib/dpkg/status status.bkp

3. Type the following code in the terminal to authorize the permission to modify dpkg status.

chmod 777 /var/lib/dpkg/status

4. In the graphical interface, open status along the path of /var/lib/dpkg/status. Note that it will remind you that it is "run" or "display", select "display".

5. ctrl+F Enter the package with incomplete installation, such as mine is "astah", search the package record in it, delete the entire package record, and then save it.

6. Done.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326057686&siteId=291194637