Problems when installing ros noetic on ubuntu 20.04 [closed]

asked 2021-06-12 08:25:38 -0500

NewToROSLinn gravatar image

I am pretty new to both ROS and Ubuntu, I have 3 packages that I need to upgrade,

python3-catkin-pkg/focal,focal 0.4.23-100 all [upgradable from: 0.4.16-1]
python3-rosdistro/focal,focal 0.8.3-100 all [upgradable from: 0.8.0-1]
python3-rospkg/focal,focal 1.3.0-100 all [upgradable from: 1.2.3-1]

so, I used these commands

sudo apt-get update -y
sudo apt-get install -y python3-catkin-pkg

And got the output/error:

you might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3-catkin-pkg : Depends: python3-catkin-pkg-modules (>= 0.4.23) but it is not going to be installed
 python3-rosdep-modules : Depends: python3-rospkg-modules (>= 1.3.0) but it is not going to be installed
                          Depends: python3-catkin-pkg-modules (>= 0.4.0) but it is not going to be installed
                          Depends: python3-rosdistro-modules (>= 0.7.5) but it is not going to be installed
 ros-noetic-rospack : Depends: python3-catkin-pkg-modules but it is not going to be installed
 ros-noetic-rqt-gui : Depends: python3-rospkg-modules but it is not going to be installed
 ros-noetic-rqt-robot-monitor : Depends: python3-rospkg-modules but it is not going to be installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

so, running the suggested command 'apt --fix-broken install', I got following errors:

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?

How should I resolve this problem?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by NewToROSLinn
close date 2021-06-12 09:51:00.260627

Comments

Hi, Some where you're using the sudo in your system. Can you restart and check once again

Ugesh gravatar image Ugesh  ( 2021-06-14 00:39:09 -0500 )edit