Installation issues on the raspberry pi


#1

Ever since the installation and setup for the pi which worked, I can no longer update the raspberry pi.

It seems there is a dependency tree missing. anyone know what is going on?


#2

Hello and Welcome to the Cayenne Community.
Can you post some output from the console so we can review the errors ?
Thank you.


#3

Thank you:

You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
expect : Depends: tcl8.5 (>= 8.5.0) but it is not going to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

i tried running sudo apt-get -f install but got the error below:

apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

i am stuck :frowning:


#4

Can you try to put this command:

sudo rm -rf /var/lib/dpkg/lock

and then again the above command ?


#5

thanks for your response. let me show you the results
sudo rm -rf /var/lib/dpkg/lock apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

And i am running the command right on the pi as admin


#6

I do not have any idea. I am taggin @rsiegel
Sorry @seyia35


#7

You’ll have to run apt as sudo:

sudo apt-get -f install


#8

Adam caught it here – I’m watching the thread now so please let us know how it went, I’d be happy to troubleshoot any further install issue.


#9

@adam thank you! I must have tried it a hundred times without the sudo. Thank you @ognqn.chikov, Thank you @rsiegel. You guys are awesome!