Installation issues with raspberry pi

I am having installation issues with raspberry pi

I keep getting unmet dependencies despite updating/upgrading the system regularly

I use raspbian and have been able to instal packages in the past but now seem to get these errors all the time. Here is an example

pi@raspberrypi:~ $ sudo apt-get install minicom lsof
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
libavresample-dev : Depends: libavutil-dev (= 6:11.12-1~deb8u1+rpi1) but it is not going to be installed
libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is to be installed
lsof : Depends: libperl4-corelibs-perl but it is not going to be installed or
perl (< 5.12.3-7) but 5.20.2-3+deb8u11 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

appreciate any help!

Hi Peter, try running ‘apt-get -f install’ and see if it can figure out the dependencies from that.

Also try installing minicom and lsof separately, that’ll help you determine which is giving the issue.

Let us know if that helps or not :slight_smile:

1 Like

thanks for any help

I get this. I am not a linux expert!

a.lsof
pi@raspberrypi:~ $ sudo apt-get install lsof
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
libavresample-dev : Depends: libavutil-dev (= 6:11.12-1~deb8u1+rpi1) but it is not going to be installed
libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is to be installed
lsof : Depends: libperl4-corelibs-perl but it is not going to be installed or
perl (< 5.12.3-7) but 5.20.2-3+deb8u11 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

b. for minicom
pi@raspberrypi:~ $ sudo apt-get install minicom
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
libavresample-dev : Depends: libavutil-dev (= 6:11.12-1~deb8u1+rpi1) but it is not going to be installed
libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

Did you try the apt-get -f install ? That’s likely the fix

1 Like

Yes, I did do that a few times but no luck with the install. I will give it a break and do something else for a while!

Mail](https://go.microsoft.com/fwlink/?LinkId=550986) for Windows 10

hi Peter,

I’ll walk through the relevant lines in your message and then make some suggestions:

pi@raspberrypi:~ $ sudo apt-get install lsof
You want to install lsof

libavresample-dev : Depends: libavutil-dev (= 6:11.12-1~deb8u1+rpi1) but it is not going to be installed
libjpeg62-turbo-dev : Depends: libjpeg62-turbo (= 1:1.3.1-12) but 1:1.4.1-2 is to be installed

lsof needs 2 things libabresample-dev and libjpeg62-turbo-dev to work properly.

lsof : Depends: libperl4-corelibs-perl but it is not going to be installed or
perl (< 5.12.3-7) but 5.20.2-3+deb8u11 is to be installed

lsof also requires libperl4-corelibs-perl but it won’t be installed. BECAUSE when the system looks for libperl4-corelibs-perl, it finds that perl5.20.2-3+deb8u11 would be installed instead.

E: Unmet dependencies.
Since there would be an error during the installation, the E at the beginning, rather than have a half-baked installer with errors, it doesn’t do anything.

Try ‘apt-get -f install’ with no packages (or specify a solution).
It has a suggestion that could work. However, as you’ve seen it doesn’t work.

My suggestions:

Run the following 4 commands:
sudo apt update
sudo apt upgrade
sudo apt install lsof
sudo apt install minicom

If still an issue, then I would review /etc/apt/sources.list on your pi and check that it is picking up the right version of lsof and minicom from the right sources.

Fundamentally, the versions of lsof and minicom that you’re trying to install, are compiled against particular versions of other software (perl, libjpegturbo, libavutil). Those versions can’t be installed for several reasons. So, you need to find up-to-date versions of lsof and minicom and the place to do that is defined in /etc/apt/sources.list.

Good luck,

1 Like

Hi Peter,

Isn’t great that other community members reach out to assist you?

Especially, when they provide step-by-step guidance.

Just saying…

1 Like

Yes very pleased to get free help

Peter

1 Like

Kevin,

Community contributors are the life-blood of any forum :slight_smile:

thanks for comprehensive - the sudo commands gave the usual issues but looking at /etc/apt/sources.list.d (the only folder here) I only see a raspi.txt file.

There is a sources.list file also that has the following (using cat sources.list)

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’

#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

I suspect this is the problem - should be much more?

1 Like

I don’t have access to my rpi3 at the moment, but from what i’ve been able to find online, it’s normal to have just the single entry.

I know you’ve been running running apt upgrade. Have you also updated the kernel (and various other support systems) to the latest version with

sudo apt-get dist-upgrade

There’s a slight possibility that could fix it. (https://www.raspberrypi.org/documentation/raspbian/updating.md)

If it’s not the case, then you’re either going to have to learn a bit about using apt, package versions to fix up the issues that have occurred on your system. You may find it somewhat convoluted.

You could also compile and install lsof from source. It isn’t difficult, but after it’s done, you need to remember to update it yourself because it’s been done without apt.

1 Like

I modified the source.list to:
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free
and did a few updates/upgrades and was able to install lsof and minicom

However still unable to install some simple games like frozen-bubble
@raspberrypi:~ $ sudo apt-get install frozen-bubble
Reading package lists… Done
Building dependency tree
Reading state information… Done
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:
frozen-bubble : Depends: perlapi-5.14.2
Depends: libcompress-bzip2-perl but it is not going to be installed
Depends: libsdl-perl (>= 2.511) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 Like

it seems unclear as to what should be in sources.list. according to: https://www.raspbian.org/RaspbianRepository
it should be
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free

but other sites have different packages/options

I would like to see what others have on their systems.

1 Like

issues seem to have been resolved. I found that this sources.list combination works

deb http://archive.raspbian.org/raspbian stable main contrib non-free rpi

Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’

deb-src http://archive.raspbian.org/raspbian stretch main contrib non-free rpi

the official recommendation at: https://www.raspbian.org/RaspbianRepository

does not seem to work!

Thanks for the sources.list tip - I had no idea how the get-apt process worked!

1 Like

Hi Peter,

The official upstream release info tells us the latest is stretch:

https://www.debian.org/releases/

If you have the word stable it will always get the correct version.

Cheers.

1 Like