Your APT configuration is corrupt.

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
philpep54
Level 1
Level 1
Posts: 1
Joined: Thu Mar 30, 2023 7:25 pm

Your APT configuration is corrupt.

Post by philpep54 »

Hey there, i run a linuxMint virtual machine from virtualBox and recently i changed the computer hostname in

Code: Select all

/etc/hostname
and

Code: Select all

/etc/hosts
. Since then i have been having trouble doing any update with the

Code: Select all

sudo apt-get update
or from the Update Manager. I tried running

Code: Select all

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
but that didn't work either. I'm also pretty new to linux so i dont really know where to look. Thank you in advance !
Last edited by LockBot on Sat Sep 30, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Your APT configuration is corrupt.

Post by Cosmo. »

How does hosts look now?
Did you do this command after changing the 2 files:

Code: Select all

hostname -F /etc/hostname
Did you reboot?
Locked

Return to “Beginner Questions”