Installation issues on the raspberry pi

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?

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

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:

Can you try to put this command:

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

and then again the above command ?

1 Like

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

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

You’ll have to run apt as sudo:

sudo apt-get -f install

1 Like

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.

@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!

3 Likes