Ask Your Question
0

The following packages have unmet dependencies: python-rosdep

asked 2018-12-17 16:50:57 -0500

thatblondegirl gravatar image

updated 2018-12-17 18:57:06 -0500

jayess gravatar image

I am trying to install ROS Indigo on Ubuntu 14.04 on a Parallels VM. I am running into the following error:

Parallels-Virtual-Platform:~$ sudo apt-get install ros-indigo-desktop-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-indigo-desktop-full is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 python-rosdep : Depends: python-rosdistro (>= 0.4.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 have tried: sudo apt-get update and sudo apt-get upgrade dpkg With the second command, I get the following output in terminal:

Parallels-Virtual-Platform:~$ sudo apt-get upgrade dpkg
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:
 python-rosdep : Depends: python-rosdistro (>= 0.4.0) but it is not installed
E: Unmet dependencies. Try using -f.

I tried using sudo apt-get -f install and got:

Parallels-Virtual-Platform:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  python-rosdistro python-rosdistro-modules
The following NEW packages will be installed:
  python-rosdistro python-rosdistro-modules
0 upgraded, 2 newly installed, 0 to remove and 380 not upgraded.
820 not fully installed or removed.
Need to get 0 B/37.0 kB of archives.
After this operation, 295 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg-deb: error: archive '/var/cache/apt/archives/python-rosdistro-modules_0.7.0-1_all.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/python-rosdistro-modules_0.7.0-1_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/python-rosdistro_0.7.0-100_all.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/python-rosdistro_0.7.0-100_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/python-rosdistro-modules_0.7.0-1_all.deb
 /var/cache/apt/archives/python-rosdistro_0.7.0-100_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
edit retag flag offensive close merge delete

Comments

Can you check whether this is a duplicate of #q310473 (which was a duplicate of #q299091)?

gvdhoorn gravatar image gvdhoorn  ( 2018-12-18 07:05:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-12-23 05:22:50 -0500

vivek rk gravatar image

updated 2018-12-23 11:58:12 -0500

jayess gravatar image

I had the same problem myself. What i found is that there are 2 packages,

  1. python-rosdistro
  2. python-rosdistro-modules

that were recently updated. These updates can only be installed with dpkg version 1.18 and above. This version is not supported by 14.04 and does not install. I have installed it in the snapdragon flight platform using the following steps

#Change dpkg to 1.18.4 Since i am using the snapdragon flight platform i am downloading the armhf build. Download the correct version for your CPU arch

wget http://ports.ubuntu.com/ubuntu-ports/pool/main/d/dpkg/dpkg_1.18.4ubuntu1_armhf.deb

wget http://ports.ubuntu.com/ubuntu-ports/pool/main/libs/libselinux/libselinux1_2.4-3build2_armhf.deb

Here we download dpkg1.18.4 and its dependancy and manually install them

sudo dpkg -i libselinux1_2.4-3build2_armhf.deb

sudo dpkg --auto-deconfigure -i dpkg_1.18.4ubuntu1_armhf.deb

sudo apt-get -y -f install

Then we install the necessary package

sudo apt-get update

sudo apt-get -y install python-rosdistro

Installing python-rosdistro automatically installs python-rosdistro-modules package as well

Then we install apptitude to install ros

sudo apt-get -y install aptitude

sudo aptitude install ros-indigo-ros-base

While installing ROS apptitude will show there is system dependancy errors and give you options the order of commands are

  1. No (n)
  2. No (n)
  3. Yes (Y)
  4. Yes (Y)

If you follow this, then you will downgrade dpkg back to the old supported version and everything will go back to normal. I have only done this in a fresh install of ubuntu.

edit flag offensive delete link more

Comments

Was able to install ros, but not rosdep

 /var/cache/apt/archives/python-rosdep_0.15.1-1_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

terpy gravatar image terpy  ( 2019-03-01 22:21:51 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-12-17 16:50:57 -0500

Seen: 1,200 times

Last updated: Dec 23 '18