I cant install anything on ubuntu and I have system error on top line (this red circle with white line) and when i want to fix this using update I get:
Can't install 'ubuntu-desktop'
It was impossible to install a required package. Please report this as a bug using 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.
when I try to install something I always get:
The following packages have unmet dependencies:
libjpeg8 : Depends: libjpeg-turbo8 (>= 1.1.90+svn722-1ubuntu6) but it is not going to be installed
libjpeg8-dev : Depends: libjpeg8 (= 8d-1+deb7u1) but 8c-2ubuntu8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
and when i type sudo apt-get update
I get:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
When I type sudo apt-get -f install
The following package was automatically installed and is no longer required:
libjpeg-turbo8
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libjpeg8
The following packages will be upgraded:
libjpeg8
1 upgraded, 0 newly installed, 0 to remove and 58 not upgraded.
73 not fully installed or removed.
Need to get 0 B/138 kB of archives.
After this operation, 267 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
libjpeg8
Install these packages without verification? [y/N] n
E: Some packages could not be authenticated
When I choose install without verification(y) i get:
dpkg: error processing archive /var/cache/apt/archives/libjpeg8_8d-1+deb7u1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libjpeg.so.8', which is also in package libjpeg-turbo8:amd64 1.4.2-0ubuntu3
Errors were encountered while processing:
/var/cache/apt/archives/libjpeg8_8d-1+deb7u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code
I'm using Xenial 16.04 amd64 Ubuntu
Thanks for help ;)
aptitude
. See my answer here: How to install/upgrade to the latest version of Poppler/pdftoppm
(version 22.11.0 at the time of this writing) on Linux Ubuntu – Gabriel Staples Nov 04 '22 at 08:19