1

Before I have read more sources like this but didn't find an answer for my error, which is related with system updating package. We can see on top right here:

enter image description here

I have not so big experience in it. The error of updating like here:

enter image description here

proposes me to execute:

 apt-get -f install

also, I had been tried

sudo apt-get install -f
sudo apt-get -f install
apt-get install -f

but I have other error:

enter image description here

Please, maybe anybody has experience in that, thanks.

when I execute successfully:

sudo pip3 uninstall click

I still have the same error: enter image description here

When I execute the command:

journalctl -xe

I have: enter image description here It seems like I need to install click.

2 Answers2

1

In this case, the root cause is the lock file. Lock files are used to prevent two or more processes from using the same data. When apt or apt-commands are run, it creates lock files in a few places. When the previous apt command was not terminated properly, the lock files were not deleted and hence they prevent any new instances of apt/apt-get commands.

To fix the problem, all you need to do is to remove the lock files. You can do that easily using the commands below:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

After that, reconfigure the packages

sudo dpkg --configure -a

Now if you run the sudo apt update command, everything should be fine.

karel
  • 114,770
1

Try using autoremove

sudo apt-get autoremove

This is the command that cleans up dependencies after a package has been removed.