Unable to repair damaged Linux Mint file

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
Ryuusei_Ja23
Level 1
Level 1
Posts: 1
Joined: Fri Sep 13, 2019 7:50 pm
Location: Japan

Unable to repair damaged Linux Mint file

Post by Ryuusei_Ja23 » Fri Sep 13, 2019 7:59 pm

A message was output when sudo apt-get -f install was actually executed on Linux mint.

Code: Select all

> sudo apt-get -f install
Loading package list ... Done
Creating dependency tree
Reading status information ... Done
Resolving dependencies ... Done
The following packages are "deleted":
linux-headers-5.0.19-050019-generic
0 upgrades, 0 new installations, 1 deletion, 1 pending: 306.
1 package is not completely installed or removed.
This operation frees 13.4 MB of disk space.
Do you want to continue? [Y / n] y
dpkg: Warning: Missing file list file for package 'texlive-latex-recommended'. ..etc
E: Sub-process / usr / bin / dpkg returned an error code (2)
The following command was executed to check the relationship with the package where the problem occurred and the dependency relationship

Code: Select all

~ $ sudo dpkg --audit
The following packages have been deployed but not yet configured.
For these packages to work properly, use dpkg --configure or
Complete the configuration using the dselect configuration (configure) menu option
Must be:
linux-headers-5.0.19-050019-generic Linux kernel headers for version 5.0.19 on

The following packages cannot find the list control file in the database.
You will need to reinstall:
texlive-base TeX Live: Essential programs and files
texlive-fonts-recommended TeX Live: Recommended fonts
texlive-latex-recommended TeX Live: LaTeX recommended packages
Please tell me the solution.

User avatar
Pierre
Level 19
Level 19
Posts: 9074
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Unable to repair damaged Linux Mint file

Post by Pierre » Fri Sep 13, 2019 9:16 pm

Try this first:

Code: Select all

sudo rm /var/lib/dpkg/available 
sudo touch /var/lib/dpkg/available  
sudo sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done'
if that doesn't work, then try this:

Code: Select all

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get clean
sudo apt-get update && sudo apt-get upgrade
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

User avatar
catweazel
Level 19
Level 19
Posts: 9529
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Unable to repair damaged Linux Mint file

Post by catweazel » Fri Sep 13, 2019 9:19 pm

Ryuusei_Ja23 wrote:
Fri Sep 13, 2019 7:59 pm
Please tell me the solution.
First up, when you mess around with unsupported mainline kernels, you are expected to be able to fix the mess that doing such a thing causes.

Second, clearly, the first step is to take the advice in the error message: "You will need to reinstall..."

Edit: Snippage. Pierre beat me to it.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

Post Reply

Return to “Newbie Questions”