错误:BrokenCount>0 安装 ROS(机器人操作系统)indigo 后

错误:BrokenCount>0 安装 ROS(机器人操作系统)indigo 后

就像所有遇到此问题的人一样,有一个警告标志,上面写着“错误消息是‘BrokenCount > 0’,这通常意味着您安装了具有未满足依赖关系的软件包。”

当我尝试安装 vim 之类的东西时,出现了以下问题

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 installedvim : Depends: vim-common (= 2:7.4.052-1ubuntu3.1) but 2:7.4.052-1ubuntu3 is to be installed
Depends: vim-runtime (= 2:7.4.052-1ubuntu3.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试后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 389 not upgraded.
139 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)

我该如何解决这个问题?感谢您的时间,希望得到建议。

答案1

据报道https://github.com/ros/rosdistro/issues/19481

您需要dpkg 1.17.5ubuntu5.8通过进行安装sudo apt-get install dpkg -y

相关内容