提到这个链接,我正在我的Ubuntu18.04.4LTS中安装ROS2雄辩器。
我的系统信息如下(通过uname -a)
Linux myname 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux我可以安装、区域设置、和安装源,没有问题。然后,安装了ROS 2软件包。
在运行sudo apt更新之后,我运行了sudo apt安装ros-雄辩的桌面,它返回了:
The following packages will be upgraded:
cpp-7 g++-7 gcc-7 gcc-7-base libasan4 libcilkrts5 libdrm-amdgpu1
libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libexif12
libgcc-7-dev libglib2.0-0 libglib2.0-bin libicu60 libjpeg-turbo8 libjson-c3
libopenexr22 libpython2.7 libpython2.7-minimal libpython2.7-stdlib
libpython3.6 libpython3.6-minimal libpython3.6-stdlib libsqlite3-0 libssl1.1
libstdc++-7-dev libubsan0 libuuid1 libwayland-client0 libwayland-cursor0
libwayland-egl1 libwayland-server0 libxml2 python3.6 python3.6-minimal
38 upgraded, 881 newly installed, 0 to remove and 196 not upgraded.
Need to get 9,381 kB/432 MB of archives.
After this operation, 1,967 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7 amd64 7.5.0-3ubuntu1~18.04
Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7 amd64 7.5.0-3ubuntu1~18.04
Connection failed [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/gcc-7_7.5.0-3ubuntu1~18.04_amd64.deb Connection failed [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?我删减了答复,只保留最后一部分,我认为这会帮助你知道出了什么问题。我谷歌了一下,但找不到解决办法。我也没有安装防火墙和防病毒软件。
请帮帮忙。非常感谢。
发布于 2020-06-16 02:18:41
我实际上已经解决了我的问题,但我认为你的方式更合适。如果将来遇到类似的问题,它可以作为我的良药。总之,我所做的是:
最后,我直接从amd64.deb下载deb包,然后通过命令安装它(ref:https://unix.stackexchange.com/questions/159094/how-to-install-a-deb-file-by-dpkg-i-or-by-apt)
sudo dpkg -i path_to_the_deb
sudo apt --fix-broken install
sudo apt update然后,我就能安装有口才的桌面了。
https://stackoverflow.com/questions/62298428
复制相似问题