Score:0

Sub-process /usr/bin/dpkg returned an error code (1) and weird apt errors

ps flag

when ever i use apt i get an error.
for example:

~$ sudo apt install -f libplayerctl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libplayerctl2 powerline python3-powerline python3-powerline-gitstatus python3-psutil
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libplayerctl-doc
The following NEW packages will be installed:
  libplayerctl-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/79.4 kB of archives.
After this operation, 587 kB of additional disk space will be used.
(Reading database ... 679965 files and directories currently installed.)
Preparing to unpack .../libplayerctl-dev_2.0.2-1ubuntu1~ppa2_amd64.deb ...
Unpacking libplayerctl-dev:amd64 (2.0.2-1ubuntu1~ppa2) ...
dpkg: error processing archive /var/cache/apt/archives/libplayerctl-dev_2.0.2-1ubuntu1~ppa2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libplayerctl.so.2.0.2', which is also in package libplayerctl2:amd64 2.0.2-1
Errors were encountered while processing:
 /var/cache/apt/archives/libplayerctl-dev_2.0.2-1ubuntu1~ppa2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

when i run sudo dpkg --configure -a i get

dpkg: dependency problems prevent configuration of playerctl:
 playerctl depends on libplayerctl-dev; however:
  Package libplayerctl-dev:amd64 is not installed.

dpkg: error processing package playerctl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gir1.2-playerctl-1.0:amd64:
 gir1.2-playerctl-1.0:amd64 depends on libplayerctl-dev; however:
  Package libplayerctl-dev:amd64 is not installed.

dpkg: error processing package gir1.2-playerctl-1.0:amd64 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
 playerctl
 gir1.2-playerctl-1.0:amd64

heck, sometimes i just dont get anything

~$ sudo apt install -f yadm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yadm

yes, that package exists. i am using tor if that helps.

N0rbert avatar
zw flag
Which PPA do you use? Please add details to your question - `apt-cache policy libplayerctl-dev libplayerctl2 gir1.2-playerctl-1.0` . What do you expect from "`sudo apt install -f yadm`" command? What is `yadm`, is it a magic stick?
Knud Larsen avatar
by flag
yadm, Yet Another Dotfiles Manager https://packages.ubuntu.com/focal/yadm → → enable **universe**
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.