Fails to install on Raspbian 10
-
Hey
I am trying to get retropie installed on an already running 10.3 Raspbian on a rpi 3b.
I did git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git and then ran the setup script which resulted in multiple package dependency error:Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libasound2-dev : Depends: libasound2 (= 1.1.8-1) libavcodec-dev : Depends: libavcodec58 (= 7:4.1.4-1~deb10u1) Depends: libavutil-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed Depends: libswresample-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed libavdevice-dev : Depends: libavdevice58 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt7~deb10u1 is to be installed Depends: libavfilter-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed Depends: libavutil-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed Depends: libpostproc-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed Depends: libswscale-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed Depends: libswresample-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed libavformat-dev : Depends: libavformat58 (= 7:4.1.4-1~deb10u1) but 7:4.1.4-1+rpt7~deb10u1 is to be installed Depends: libavutil-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed Depends: libswresample-dev (= 7:4.1.4-1~deb10u1) but it is not going to be installed libgles2-mesa-dev : Depends: libegl1-mesa-dev but it is not going to be installed Depends: libglvnd-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. Could not install package(s): libudev-dev libxkbcommon-dev libasound2-dev libusb-1.0-0-dev libgles2-mesa-dev libavcodec-dev libavformat-dev libavdevice-dev.
That's a pretty default raspbian installation, should this have worked?
-
@Lesezeichen said in Fails to install on Raspbian 10:
That's a pretty default raspbian installation, should this have worked?
Yes, but it doesn't look like a default Raspbian if you're unable to install basic packages. Did you add/modify the default APT repository sources ?
-
I have some additional repositories but (docker and influx), the problem seems to be this:
# apt-get install libasound2 Reading package lists... Done Building dependency tree Reading state information... Done libasound2 is already the newest version (1.1.8-1+rpt1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
but libasound2-dev wants the non "rpt1" packages, i can manually install the rpt1 version of libasound2-dev and all the other packages (i guess). All these come from the rapsbian repo.
-
@Lesezeichen Is this a clean Raspbian Buster install or an upgraded system ? Run the following
apt-cache policy libasound2 libasound2-dev
and see where the packages get their version.
-
@mitu said in Fails to install on Raspbian 10:
apt-cache policy libasound2 libasound2-dev
Thanks for your help, it's an updated version.
This repo may have been the cause of all this, not sure
"deb http://archive.raspberrypi.org/debian/ buster main ui"Now i am only using this one:
"deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi"There seem to be 2 versions of "some?" packages and for some reason i had the +rpt1 version on some packages.
After fixing this mess manually the setup script ran almost without an issue.The only remaining issue is this:
apt-get install omxplayer 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
-
@Lesezeichen You need to have both.
omxplayer
is in http://archive.raspberrypi.org/debian/pool/main/o/omxplayer/.- You main
sources.conf
should havedeb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
- You should have an additional file
/etc/apt/sources.list.d/raspi.list
withdeb http://archive.raspberrypi.org/debian/ buster main ui
Make sure you enable both repositories, then do an
apt update
and you should be able to installomxplayer
. - You main
-
That's what i had, that was what caused the version mismatch on the packages, that is where the "wrong" packages comes from:
http://archive.raspberrypi.org/debian/pool/main/a/alsa-lib/libasound2_1.1.8-1+rpt1_armhf.debReenabled the second repo, omxplayer installs now and so does the rest of the stuff in the script.
Thanks for you time, appreciated.
-
We don't recommend in-place upgrades, and neither Raspbian.
One thing to know is that the new Buster images have a larger
boot
partition to accomodate larger kernel sizes. It might not be a problem now, but in the future this might pose an issue.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.