Score:0

Problems with sudo apt-get upgrade and sudo --fix-broken install and matchbox-keyboard

bw flag

I was trying to install omxplayer, and I was getting errors. I tried sudo apt-get update then sudo apt-get upgrade, but I get this error:

pi@raspberrypi:~ $ sudo apt-get upgrade  
Reading package lists... Done  
Building dependency tree... Done  
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.  
The following packages have unmet dependencies:  
 #libfakekey0 : Depends: libxtst6 but it is not installable  
 matchbox-keyboard : Depends: libxft2 (> 2.1.1) but it is not installable  
                     Depends: libxrender1 but it is not installable  
                     Recommends: matchbox-keyboard-im but it is not installable  
 xinput-calibrator : Depends: libxi6 (>= 2:1.2.0) but it is not installable  
 xserver-xorg-input-evdev : Depends: libevdev2 (>= 1.2.2+dfsg-1~) but it is not installable  
                            Depends: libmtdev1 (>= 1.1.0) but it is not installable  
                            Depends: xorg-input-abi-24 but it is not installable  
                            Depends: xserver-xorg-core (>= 2:1.18.99.901) but it is not installable  
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

When I try apt-fix-broken install , I get this error:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)  
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

I'm not sure where to go from here. Thanks in advance for any tips!

Someone avatar
my flag
You need to run `apt --fix-broken install` as root, try `sudo apt --fix-broken install`, also note:- You can run a smaller version of this as `sudo apt -f install`
bw flag
I did this and it worked. But now when I try to install omxplayer, I get this the following command (not I am running Raspberry Lite): Reading package lists... Done Building dependency tree Reading state information... Done Package omxplayer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'omxplayer' has no installation candidate
ChanganAuto avatar
us flag
https://snapcraft.io/install/omxplayer-pi/ubuntu
bw flag
Turns out, OMXplayer is not supported on the latest upgrade (Bullseye), which is why it was not working.
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.