This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Broken apt-get ...

Tags: None
(comma "," separated)
mathcrimes
Registered Member
Posts
2
Karma
0

Broken apt-get ...

Thu Feb 10, 2022 11:55 pm
Hello,

Running Linux sickie 5.13.0-27-generic #29~20.04.1-Ubuntu SMP Fri Jan 14 00:32:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux and I've never had a problem until now. When I try to apt-get install anything, it tells me:

Code: Select all
The following packages have unmet dependencies:
kdevelop : Depends: kdevplatform58-libs but it is not going to be installed
kdevelop-php : Depends: kdevplatform58-libs but it is not going to be installed
kdevelop-python : Depends: kdevplatform58-libs but it is not going to be installed
Recommends: python-autopep8 but it is not installable
kdevplatform-dev : Depends: kdevplatform58-libs (= 4:21.12.2+p20.04+tunstable+git20220208.0023-0) but it is not going to be installed
variety : Depends: gir1.2-gexiv2-0.10 but it is not going to be installed
Depends: python3-configobj but it is not going to be installed
Recommends: fortune-mod but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


When I try that suggestion (apt --fix-broken install), it does this:
Code: Select all
The following additional packages will be installed:
kdevplatform58-libs
Suggested packages:
cvs kdevplatform-l10n
The following NEW packages will be installed:
kdevplatform58-libs
0 upgraded, 1 newly installed, 0 to remove and 805 not upgraded.
496 not fully installed or removed.
Need to get 0 B/4,398 kB of archives.
After this operation, 21.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 955120 files and directories currently installed.)
Preparing to unpack .../kdevplatform58-libs_4%3a21.12.2+p20.04+tunstable+git20220208.0023-0_amd64.deb ...
Unpacking kdevplatform58-libs (4:21.12.2+p20.04+tunstable+git20220208.0023-0) ...
dpkg: error processing archive /var/cache/apt/archives/kdevplatform58-libs_4%3a21.12.2+p20.04+tunstable+git20220208.0023-0_amd64.deb (--unpack):
trying to overwrite '/usr/bin/kdevplatform_shell_environment.sh', which is also in package kdevplatform57-libs 4:21.12.1+p20.04+tunstable+git20220114.0024-0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/kdevplatform58-libs_4%3a21.12.2+p20.04+tunstable+git20220208.0023-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have already done apt update to get the latest from the repositories. Anyone have a suggestion on how I can get my apt system out of this broken state?

Thank you...
mathcrimes
Registered Member
Posts
2
Karma
0

Re: Broken apt-get ...  Topic is solved

Fri Feb 11, 2022 1:53 am
Hello,

Okay, I resolved this by doing:

sudo dpkg -P kdevplatform57-libs

And, then, apt --fix-broken install ...

It seems like this situation can come up with a variety of different packages so this might be helpful to someone someday. For further details, refer to:
https://askubuntu.com/questions/195950/ ... 443#430443


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]