E: There are several software packages that cannot be downloaded and there are unsatisfied dependencies. Solution

E: There are several software packages that cannot be downloaded and there are unsatisfied dependencies. Solution

sudo apt install ros-noetic-desktop-fullI suddenly encountered some problems when installing ros today , record it

E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/pool/universe/s/simbody/libsimbody-dev_3.6.1+dfsg-7build1_amd64.deb  连接失败 [IP: 91.189.91.39 80]
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?

 Try it first sudo apt-get update, if it doesn't work, modify the source again sudo gedit /etc/apt/sources.list , add

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

 

My version is 20.04, and other versions can be searched by yourself:  ubuntu | mirror station use help | Tsinghua University open source software mirror station | Tsinghua Open Source Mirror

After decompression also encountered some problems

您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 python3-rosdep-modules : 依赖: python3-catkin-pkg-modules (>= 0.4.0) 但是它将不会被安装
 python3-rosdistro-modules : 依赖: python3-catkin-pkg-modules 但是它将不会被安装
 python3-rospkg-modules : 依赖: python3-catkin-pkg-modules 但是它将不会被安装
 ros-noetic-rospack : 依赖: python3-catkin-pkg-modules 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。

try first sudo apt --fix-broken install, show

dpkg: 处理归档 /var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.de
b (--unpack)时出错:
 正试图覆盖 /usr/lib/python3/dist-packages/catkin_pkg/__init__.py,它同时被包含
于软件包 python3-catkin-pkg 0.4.16-1
在处理时有错误发生:
 /var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 Then try to run the following command just fine

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get install -f

 Reference blog:
https://blog.csdn.net/creative1/article/details/125074584
https://blog.csdn.net/qq_43695961/article/details/125096706

 

Guess you like

Origin blog.csdn.net/weixin_48345177/article/details/131847968