apt-get: Could not resolve 'archive.ubuntu.com'解决方法

本文介绍了解决Ubuntu系统中使用apt-get时出现Couldnotresolve'archive.ubuntu.com'错误的方法。首先需要修改源地址,添加多个国内镜像源。其次要确保hosts文件中有正确的IP地址映射。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在使用Ubuntu搭建TFTP服务器的时候,新买的Linux服务器主机,在是还用atp-get的时候出现了apt-get: Could not resolve 'archive.ubuntu.com'的错误,一开始按照网上的说法,修改apt-get的源网址,添加了国内的一些网址资源以后还是不行,比如添加了以下的一些资源网址:

deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
deb http://mirrors.ustc.edu.cn/ubuntu/ precise universe
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise universe
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates universe
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates universe
deb http://mirrors.ustc.edu.cn/ubuntu/ precise multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ precise universe
deb-src http://mirrors.sohu.com/ubuntu/ precise universe
deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb http://mirrors.sohu.com/ubuntu/ precise multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

至于怎么修改该文件,可以通过通过SSH Secure File Transfer软件打开目录/etc/apt下面的source.list文件通过记事本进行编辑,也就是将上面的内容添加到文件的后面。编辑如下图所示:

但是添加完以上网址后,还是出现Could not resolve 'archive.ubuntu.com'的错误,这种原因其实是因为还缺少一个步骤,就是讲添加的这几个网址的网址和IP进行映射,修改/etc/目录下的host文件,用记事本打开,如下图所示:

讲host文件中的网址找到其实际的IP地址,至于怎么通过网址找到实际的IP,可以百度一下,或者使用ip.chinaz.com进行查询,修改后的host文件如下图所示:

不同时期的网址和IP对应关系是不一样的,上面的网址与IP对应关系在2016年9月5日的时候有效,如果实现请重新查询网址与IP的对应关系。

设置好以上步骤之后,执行命令sudo apt-get update和命令sudo apt-get upgrade。执行完之后,会更新目录,如下图所示:

执行完上面的更新后,就会解决改问题了。

 

综上,主要就是2点:1、添加资源网站,2讲添加的资源网站和实际的IP做映射。

下面是我按照你的思路执行指令后终端打印的结果(base) casbot@casbot:~/ros_catkin_ws$ # 备份原文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak # 使用清华源(Ubuntu 22.04) sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list sudo apt update && sudo apt upgrade -y Ign:1 http://deb.repo.autolabor.com.cn jammy InRelease Ign:2 http://deb.repo.autolabor.com.cn jammy Release Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Hit:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy InRelease Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Hit:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates InRelease Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Hit:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-backports InRelease Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Hit:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-security InRelease Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Get:10 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease [4682 B] Hit:11 http://packages.ros.org/ros/ubuntu focal InRelease Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Hit:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Fetched 4682 B in 3s (1850 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 80 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: exo-utils libzvbi-common libzbar0 libheif1 libiperf0 libmujs1 libavdevice58 ffmpeg libopenexr25 libpostproc55 libmagickcore-6.q16-6-extra libavcodec58 libgstreamer-plugins-bad1.0-0 iperf3 libmagickwand-6.q16-6 libavutil56 libswscale5 libmagickcore-6.q16-6 libexo-2-0 libgsl27 gir1.2-gst-plugins-bad-1.0 libswresample3 imagemagick-6-common libavformat58 libzvbi0 gstreamer1.0-plugins-bad libgslcblas0 libde265-0 libexo-common libavfilter7 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following NEW packages will be installed: libxcvt-dev The following packages have been kept back: dvb-tools ir-keytable libdvbv5-0 libdvbv5-dev libv4l-0 libv4l-dev libv4l2rds0 libv4lconvert0 qv4l2 v4l-utils xserver-common xserver-xorg-core xserver-xorg-legacy The following packages will be upgraded: apport ghostscript ghostscript-x gir1.2-javascriptcoregtk-4.0 gir1.2-soup-2.4 gir1.2-webkit2-4.0 git git-man libarchive13 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdjvulibre-text libdjvulibre21 libdvbv5-doc libgnutls30 libgs9 libgs9-common libjavascriptcoregtk-4.0-18 libnss-systemd libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libprotobuf23 libpython3.10 libpython3.10-dev libpython3.10-minimal libpython3.10-stdlib libre2-9 libsoup-gnome2.4-1 libsoup2.4-1 libsoup2.4-common libssh-4 libssh-gcrypt-4 libsystemd0 libudev1 libudisks2-0 libvpx7 libwebkit2gtk-4.0-37 libxslt1.1 linux-libc-dev python3-apport python3-pip python3-problem-report python3-protobuf python3-requests python3-urllib3 python3.10 python3.10-dev python3.10-minimal sudo systemd systemd-sysv ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n udev udisks2 xserver-xorg-dev xwayland 67 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. 62 standard LTS security updates Need to get 77.1 MB of archives. After this operation, 64.5 kB of additional disk space will be used. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam0g arm64 1.4.0-11ubuntu2.6 [59.7 kB] Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-modules-bin arm64 1.4.0-11ubuntu2.6 [38.6 kB] Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-modules arm64 1.4.0-11ubuntu2.6 [279 kB] Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libnss-systemd arm64 249.11-0ubuntu3.16 [133 kB] Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsystemd0 arm64 249.11-0ubuntu3.16 [314 kB] Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 systemd-sysv arm64 249.11-0ubuntu3.16 [10.5 kB] Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-systemd arm64 249.11-0ubuntu3.16 [205 kB] Get:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 systemd arm64 249.11-0ubuntu3.16 [4423 kB] Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 udev arm64 249.11-0ubuntu3.16 [1541 kB] Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libudev1 arm64 249.11-0ubuntu3.16 [74.5 kB] Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-runtime all 1.4.0-11ubuntu2.6 [40.2 kB] Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libgnutls30 arm64 3.7.3-4ubuntu1.7 [922 kB] Get:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3.10-dev arm64 3.10.12-1~22.04.10 [508 kB] Get:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10-dev arm64 3.10.12-1~22.04.10 [4666 kB] Get:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10 arm64 3.10.12-1~22.04.10 [1885 kB] Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3.10 arm64 3.10.12-1~22.04.10 [508 kB] Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10-stdlib arm64 3.10.12-1~22.04.10 [1846 kB] Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3.10-minimal arm64 3.10.12-1~22.04.10 [2260 kB] Get:19 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10-minimal arm64 3.10.12-1~22.04.10 [812 kB] Get:20 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 sudo arm64 1.9.9-1ubuntu2.5 [807 kB] Get:21 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ubuntu-pro-client-l10n arm64 36ubuntu0~22.04 [20.6 kB] Get:22 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ubuntu-pro-client arm64 36ubuntu0~22.04 [236 kB] Get:23 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ubuntu-advantage-tools all 36ubuntu0~22.04 [10.9 kB] Get:24 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-problem-report all 2.20.11-0ubuntu82.9 [11.4 kB] Get:25 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-apport all 2.20.11-0ubuntu82.9 [89.0 kB] Get:26 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 apport all 2.20.11-0ubuntu82.9 [135 kB] Get:27 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ghostscript-x arm64 9.55.0~dfsg1-0ubuntu5.12 [48.0 kB] Get:28 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ghostscript arm64 9.55.0~dfsg1-0ubuntu5.12 [49.7 kB] Get:29 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libgs9 arm64 9.55.0~dfsg1-0ubuntu5.12 [4956 kB] Get:30 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libgs9-common all 9.55.0~dfsg1-0ubuntu5.12 [753 kB] Get:31 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 gir1.2-webkit2-4.0 arm64 2.48.3-0ubuntu0.22.04.1 [105 kB] Get:32 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 gir1.2-javascriptcoregtk-4.0 arm64 2.48.3-0ubuntu0.22.04.1 [39.0 kB] Get:33 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libwebkit2gtk-4.0-37 arm64 2.48.3-0ubuntu0.22.04.1 [26.2 MB] Get:34 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libjavascriptcoregtk-4.0-18 arm64 2.48.3-0ubuntu0.22.04.1 [8729 kB] Get:35 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 gir1.2-soup-2.4 arm64 2.74.2-3ubuntu0.6 [31.8 kB] Get:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsoup-gnome2.4-1 arm64 2.74.2-3ubuntu0.6 [6194 B] Get:37 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsoup2.4-common all 2.74.2-3ubuntu0.6 [4778 B] Get:38 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsoup2.4-1 arm64 2.74.2-3ubuntu0.6 [281 kB] Get:39 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libxslt1.1 arm64 1.1.34-4ubuntu0.22.04.4 [161 kB] Get:40 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 git-man all 1:2.34.1-1ubuntu1.15 [955 kB] Get:41 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 git arm64 1:2.34.1-1ubuntu1.15 [3224 kB] Get:42 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libarchive13 arm64 3.6.0-1ubuntu1.5 [367 kB] Get:43 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-utils2 arm64 2.26-1ubuntu0.1 [15.5 kB] Get:44 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-crypto2 arm64 2.26-1ubuntu0.1 [17.3 kB] Get:45 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-part-err2 arm64 2.26-1ubuntu0.1 [5650 B] Get:46 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-fs2 arm64 2.26-1ubuntu0.1 [21.5 kB] Get:47 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-loop2 arm64 2.26-1ubuntu0.1 [6838 B] Get:48 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-part2 arm64 2.26-1ubuntu0.1 [15.0 kB] Get:49 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-swap2 arm64 2.26-1ubuntu0.1 [7452 B] Get:50 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev2 arm64 2.26-1ubuntu0.1 [45.5 kB] Get:51 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libdjvulibre-text all 3.5.28-2ubuntu0.22.04.1 [51.0 kB] Get:52 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libdjvulibre21 arm64 3.5.28-2ubuntu0.22.04.1 [590 kB] Get:53 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy/main arm64 libdvbv5-doc all 1.22.1-2build1 [1479 kB] Get:54 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libprotobuf23 arm64 3.12.4-1ubuntu7.22.04.4 [809 kB] Get:55 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy/main arm64 libre2-9 arm64 20220201+dfsg-1 [153 kB] Get:56 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libssh-4 arm64 0.9.6-2ubuntu0.22.04.4 [185 kB] Get:57 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libssh-gcrypt-4 arm64 0.9.6-2ubuntu0.22.04.4 [224 kB] Get:58 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libudisks2-0 arm64 2.9.4-1ubuntu2.2 [168 kB] Get:59 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libvpx7 arm64 1.11.0-2ubuntu2.4 [1042 kB] Get:60 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy/main arm64 libxcvt-dev arm64 0.1.1-3 [3236 B] Get:61 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 linux-libc-dev arm64 5.15.0-144.157 [1294 kB] Get:62 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/universe arm64 python3-pip all 22.0.2+dfsg-1ubuntu0.6 [1306 kB] Get:63 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-protobuf arm64 3.12.4-1ubuntu7.22.04.4 [352 kB] Get:64 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-urllib3 all 1.26.5-1~exp1ubuntu0.3 [98.6 kB] Get:65 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-requests all 2.25.1+dfsg-2ubuntu0.3 [48.8 kB] Get:66 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 udisks2 arm64 2.9.4-1ubuntu2.2 [275 kB] Get:67 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 xserver-xorg-dev arm64 2:21.1.4-2ubuntu1.7~22.04.15 [205 kB] Get:68 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 xwayland arm64 2:22.1.1-1ubuntu0.19 [918 kB] Fetched 77.1 MB in 4min 46s (270 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam0g_1.4.0-11ubuntu2.6_arm64.deb ... Unpacking libpam0g:arm64 (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam0g:arm64 (1.4.0-11ubuntu2.6) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam-modules-bin_1.4.0-11ubuntu2.6_arm64.deb ... Unpacking libpam-modules-bin (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam-modules-bin (1.4.0-11ubuntu2.6) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam-modules_1.4.0-11ubuntu2.6_arm64.deb ... Unpacking libpam-modules:arm64 (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam-modules:arm64 (1.4.0-11ubuntu2.6) ... Installing new version of config file /etc/security/namespace.init ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libnss-systemd_249.11-0ubuntu3.16_arm64.deb ... Unpacking libnss-systemd:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../libsystemd0_249.11-0ubuntu3.16_arm64.deb ... Unpacking libsystemd0:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Setting up libsystemd0:arm64 (249.11-0ubuntu3.16) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../systemd-sysv_249.11-0ubuntu3.16_arm64.deb ... Unpacking systemd-sysv (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../libpam-systemd_249.11-0ubuntu3.16_arm64.deb ... Unpacking libpam-systemd:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../systemd_249.11-0ubuntu3.16_arm64.deb ... Unpacking systemd (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../udev_249.11-0ubuntu3.16_arm64.deb ... Unpacking udev (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../libudev1_249.11-0ubuntu3.16_arm64.deb ... Unpacking libudev1:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Setting up libudev1:arm64 (249.11-0ubuntu3.16) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam-runtime_1.4.0-11ubuntu2.6_all.deb ... Unpacking libpam-runtime (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam-runtime (1.4.0-11ubuntu2.6) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libgnutls30_3.7.3-4ubuntu1.7_arm64.deb ... Unpacking libgnutls30:arm64 (3.7.3-4ubuntu1.7) over (3.7.3-4ubuntu1.6) ... Setting up libgnutls30:arm64 (3.7.3-4ubuntu1.7) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../00-python3.10-dev_3.10.12-1~22.04.10_arm64.deb ... Unpacking python3.10-dev (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../01-libpython3.10-dev_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10-dev:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../02-libpython3.10_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../03-python3.10_3.10.12-1~22.04.10_arm64.deb ... Unpacking python3.10 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../04-libpython3.10-stdlib_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10-stdlib:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../05-python3.10-minimal_3.10.12-1~22.04.10_arm64.deb ... Unpacking python3.10-minimal (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../06-libpython3.10-minimal_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10-minimal:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../07-sudo_1.9.9-1ubuntu2.5_arm64.deb ... Unpacking sudo (1.9.9-1ubuntu2.5) over (1.9.9-1ubuntu2.4) ... Preparing to unpack .../08-ubuntu-pro-client-l10n_36ubuntu0~22.04_arm64.deb ... Unpacking ubuntu-pro-client-l10n (36ubuntu0~22.04) over (35.1ubuntu0~22.04) ... Preparing to unpack .../09-ubuntu-pro-client_36ubuntu0~22.04_arm64.deb ... Unpacking ubuntu-pro-client (36ubuntu0~22.04) over (35.1ubuntu0~22.04) ... Preparing to unpack .../10-ubuntu-advantage-tools_36ubuntu0~22.04_all.deb ... Unpacking ubuntu-advantage-tools (36ubuntu0~22.04) over (35.1ubuntu0~22.04) ... Preparing to unpack .../11-python3-problem-report_2.20.11-0ubuntu82.9_all.deb ... Unpacking python3-problem-report (2.20.11-0ubuntu82.9) over (2.20.11-0ubuntu82.7) ... Preparing to unpack .../12-python3-apport_2.20.11-0ubuntu82.9_all.deb ... Unpacking python3-apport (2.20.11-0ubuntu82.9) over (2.20.11-0ubuntu82.7) ... Preparing to unpack .../13-apport_2.20.11-0ubuntu82.9_all.deb ... Unpacking apport (2.20.11-0ubuntu82.9) over (2.20.11-0ubuntu82.7) ... Preparing to unpack .../14-ghostscript-x_9.55.0~dfsg1-0ubuntu5.12_arm64.deb ... Unpacking ghostscript-x (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../15-ghostscript_9.55.0~dfsg1-0ubuntu5.12_arm64.deb ... Unpacking ghostscript (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../16-libgs9_9.55.0~dfsg1-0ubuntu5.12_arm64.deb ... Unpacking libgs9:arm64 (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../17-libgs9-common_9.55.0~dfsg1-0ubuntu5.12_all.deb ... Unpacking libgs9-common (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../18-gir1.2-webkit2-4.0_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking gir1.2-webkit2-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../19-gir1.2-javascriptcoregtk-4.0_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking gir1.2-javascriptcoregtk-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../20-libwebkit2gtk-4.0-37_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking libwebkit2gtk-4.0-37:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../21-libjavascriptcoregtk-4.0-18_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking libjavascriptcoregtk-4.0-18:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../22-gir1.2-soup-2.4_2.74.2-3ubuntu0.6_arm64.deb ... Unpacking gir1.2-soup-2.4:arm64 (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../23-libsoup-gnome2.4-1_2.74.2-3ubuntu0.6_arm64.deb ... Unpacking libsoup-gnome2.4-1:arm64 (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../24-libsoup2.4-common_2.74.2-3ubuntu0.6_all.deb ... Unpacking libsoup2.4-common (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../25-libsoup2.4-1_2.74.2-3ubuntu0.6_arm64.deb ... Unpacking libsoup2.4-1:arm64 (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../26-libxslt1.1_1.1.34-4ubuntu0.22.04.4_arm64.deb ... Unpacking libxslt1.1:arm64 (1.1.34-4ubuntu0.22.04.4) over (1.1.34-4ubuntu0.22.04.3) ... Preparing to unpack .../27-git-man_1%3a2.34.1-1ubuntu1.15_all.deb ... Unpacking git-man (1:2.34.1-1ubuntu1.15) over (1:2.34.1-1ubuntu1.12) ... Preparing to unpack .../28-git_1%3a2.34.1-1ubuntu1.15_arm64.deb ... Unpacking git (1:2.34.1-1ubuntu1.15) over (1:2.34.1-1ubuntu1.12) ... Preparing to unpack .../29-libarchive13_3.6.0-1ubuntu1.5_arm64.deb ... Unpacking libarchive13:arm64 (3.6.0-1ubuntu1.5) over (3.6.0-1ubuntu1.4) ... Preparing to unpack .../30-libblockdev-utils2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-utils2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../31-libblockdev-crypto2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-crypto2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../32-libblockdev-part-err2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-part-err2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../33-libblockdev-fs2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-fs2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../34-libblockdev-loop2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-loop2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../35-libblockdev-part2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-part2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../36-libblockdev-swap2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-swap2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../37-libblockdev2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../38-libdjvulibre-text_3.5.28-2ubuntu0.22.04.1_all.deb ... Unpacking libdjvulibre-text (3.5.28-2ubuntu0.22.04.1) over (3.5.28-2build2) ... Preparing to unpack .../39-libdjvulibre21_3.5.28-2ubuntu0.22.04.1_arm64.deb ... Unpacking libdjvulibre21:arm64 (3.5.28-2ubuntu0.22.04.1) over (3.5.28-2build2) ... Preparing to unpack .../40-libdvbv5-doc_1.22.1-2build1_all.deb ... Unpacking libdvbv5-doc (1.22.1-2build1) over (1.18.0-2build1) ... Preparing to unpack .../41-libprotobuf23_3.12.4-1ubuntu7.22.04.4_arm64.deb ... Unpacking libprotobuf23:arm64 (3.12.4-1ubuntu7.22.04.4) over (3.12.4-1ubuntu7.22.04.2) ... Preparing to unpack .../42-libre2-9_20220201+dfsg-1_arm64.deb ... Unpacking libre2-9:arm64 (20220201+dfsg-1) over (20210201+dfsg-1) ... Preparing to unpack .../43-libssh-4_0.9.6-2ubuntu0.22.04.4_arm64.deb ... Unpacking libssh-4:arm64 (0.9.6-2ubuntu0.22.04.4) over (0.9.6-2ubuntu0.22.04.3) ... Preparing to unpack .../44-libssh-gcrypt-4_0.9.6-2ubuntu0.22.04.4_arm64.deb ... Unpacking libssh-gcrypt-4:arm64 (0.9.6-2ubuntu0.22.04.4) over (0.9.6-2ubuntu0.22.04.3) ... Preparing to unpack .../45-libudisks2-0_2.9.4-1ubuntu2.2_arm64.deb ... Unpacking libudisks2-0:arm64 (2.9.4-1ubuntu2.2) over (2.9.4-1ubuntu2) ... Preparing to unpack .../46-libvpx7_1.11.0-2ubuntu2.4_arm64.deb ... Unpacking libvpx7:arm64 (1.11.0-2ubuntu2.4) over (1.11.0-2ubuntu2.3) ... Selecting previously unselected package libxcvt-dev:arm64. Preparing to unpack .../47-libxcvt-dev_0.1.1-3_arm64.deb ... Unpacking libxcvt-dev:arm64 (0.1.1-3) ... Preparing to unpack .../48-linux-libc-dev_5.15.0-144.157_arm64.deb ... Unpacking linux-libc-dev:arm64 (5.15.0-144.157) over (5.15.0-142.152) ... Preparing to unpack .../49-python3-pip_22.0.2+dfsg-1ubuntu0.6_all.deb ... Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.6) over (22.0.2+dfsg-1ubuntu0.5) ... Preparing to unpack .../50-python3-protobuf_3.12.4-1ubuntu7.22.04.4_arm64.deb ... Unpacking python3-protobuf (3.12.4-1ubuntu7.22.04.4) over (3.12.4-1ubuntu7.22.04.2) ... Preparing to unpack .../51-python3-urllib3_1.26.5-1~exp1ubuntu0.3_all.deb ... Unpacking python3-urllib3 (1.26.5-1~exp1ubuntu0.3) over (1.26.5-1~exp1ubuntu0.2) ... Preparing to unpack .../52-python3-requests_2.25.1+dfsg-2ubuntu0.3_all.deb ... Unpacking python3-requests (2.25.1+dfsg-2ubuntu0.3) over (2.25.1+dfsg-2ubuntu0.1) ... Preparing to unpack .../53-udisks2_2.9.4-1ubuntu2.2_arm64.deb ... Unpacking udisks2 (2.9.4-1ubuntu2.2) over (2.9.4-1ubuntu2) ... Preparing to unpack .../54-xserver-xorg-dev_2%3a21.1.4-2ubuntu1.7~22.04.15_arm64.deb ... Unpacking xserver-xorg-dev (2:21.1.4-2ubuntu1.7~22.04.15) over (2:1.20.13-1ubuntu1~20.04.2) ... Preparing to unpack .../55-xwayland_2%3a22.1.1-1ubuntu0.19_arm64.deb ... Unpacking xwayland (2:22.1.1-1ubuntu0.19) over (2:22.1.1-1ubuntu0.18) ... Setting up libssh-gcrypt-4:arm64 (0.9.6-2ubuntu0.22.04.4) ... Setting up libgs9-common (9.55.0~dfsg1-0ubuntu5.12) ... Setting up libre2-9:arm64 (20220201+dfsg-1) ... Setting up libxcvt-dev:arm64 (0.1.1-3) ... Setting up libgs9:arm64 (9.55.0~dfsg1-0ubuntu5.12) ... Setting up xserver-xorg-dev (2:21.1.4-2ubuntu1.7~22.04.15) ... Setting up libarchive13:arm64 (3.6.0-1ubuntu1.5) ... Setting up python3-problem-report (2.20.11-0ubuntu82.9) ... Setting up libjavascriptcoregtk-4.0-18:arm64 (2.48.3-0ubuntu0.22.04.1) ... Setting up linux-libc-dev:arm64 (5.15.0-144.157) ... Setting up libprotobuf23:arm64 (3.12.4-1ubuntu7.22.04.4) ... Setting up systemd (249.11-0ubuntu3.16) ... Setting up libdvbv5-doc (1.22.1-2build1) ... Setting up gir1.2-javascriptcoregtk-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) ... Setting up ghostscript (9.55.0~dfsg1-0ubuntu5.12) ... Setting up python3-apport (2.20.11-0ubuntu82.9) ... Setting up libblockdev-utils2:arm64 (2.26-1ubuntu0.1) ... Setting up udev (249.11-0ubuntu3.16) ... Setting up libpython3.10-minimal:arm64 (3.10.12-1~22.04.10) ... Setting up sudo (1.9.9-1ubuntu2.5) ... Setting up python3-pip (22.0.2+dfsg-1ubuntu0.6) ... Setting up libssh-4:arm64 (0.9.6-2ubuntu0.22.04.4) ... Setting up python3-urllib3 (1.26.5-1~exp1ubuntu0.3) ... Setting up libsoup2.4-common (2.74.2-3ubuntu0.6) ... Setting up libxslt1.1:arm64 (1.1.34-4ubuntu0.22.04.4) ... Setting up libblockdev-part-err2:arm64 (2.26-1ubuntu0.1) ... Setting up git-man (1:2.34.1-1ubuntu1.15) ... Setting up libvpx7:arm64 (1.11.0-2ubuntu2.4) ... Setting up libdjvulibre-text (3.5.28-2ubuntu0.22.04.1) ... Setting up xwayland (2:22.1.1-1ubuntu0.19) ... Setting up python3-protobuf (3.12.4-1ubuntu7.22.04.4) ... Setting up ubuntu-pro-client (36ubuntu0~22.04) ... Installing new version of config file /etc/apparmor.d/ubuntu_pro_esm_cache ... Setting up libudisks2-0:arm64 (2.9.4-1ubuntu2.2) ... Setting up ubuntu-pro-client-l10n (36ubuntu0~22.04) ... Setting up systemd-sysv (249.11-0ubuntu3.16) ... Setting up libblockdev-crypto2:arm64 (2.26-1ubuntu0.1) ... Setting up libsoup2.4-1:arm64 (2.74.2-3ubuntu0.6) ... Setting up libblockdev-swap2:arm64 (2.26-1ubuntu0.1) ... Setting up libdjvulibre21:arm64 (3.5.28-2ubuntu0.22.04.1) ... Setting up libnss-systemd:arm64 (249.11-0ubuntu3.16) ... Setting up libblockdev-loop2:arm64 (2.26-1ubuntu0.1) ... Setting up ghostscript-x (9.55.0~dfsg1-0ubuntu5.12) ... Setting up libblockdev2:arm64 (2.26-1ubuntu0.1) ... Setting up libblockdev-part2:arm64 (2.26-1ubuntu0.1) ... Setting up python3.10-minimal (3.10.12-1~22.04.10) ... Setting up apport (2.20.11-0ubuntu82.9) ... apport-autoreport.service is a disabled or a static unit, not starting it. Setting up libpython3.10-stdlib:arm64 (3.10.12-1~22.04.10) ... Setting up python3-requests (2.25.1+dfsg-2ubuntu0.3) ... Setting up libblockdev-fs2:arm64 (2.26-1ubuntu0.1) ... Setting up git (1:2.34.1-1ubuntu1.15) ... Setting up libwebkit2gtk-4.0-37:arm64 (2.48.3-0ubuntu0.22.04.1) ... Setting up libpam-systemd:arm64 (249.11-0ubuntu3.16) ... Setting up ubuntu-advantage-tools (36ubuntu0~22.04) ... Setting up libsoup-gnome2.4-1:arm64 (2.74.2-3ubuntu0.6) ... Setting up udisks2 (2.9.4-1ubuntu2.2) ... Setting up libpython3.10:arm64 (3.10.12-1~22.04.10) ... Setting up python3.10 (3.10.12-1~22.04.10) ... Setting up gir1.2-soup-2.4:arm64 (2.74.2-3ubuntu0.6) ... Setting up libpython3.10-dev:arm64 (3.10.12-1~22.04.10) ... Setting up python3.10-dev (3.10.12-1~22.04.10) ... Setting up gir1.2-webkit2-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for doc-base (0.11.1) ... Processing 1 added doc-base file... Error in `/usr/share/doc-base/libdvbv5-doc.libdvbv5-reference', line 9: all `Format' sections are invalid. Note: `install-docs --verbose --check file_name' may give more details about the above error. Processing triggers for gnome-menus (3.36.0-1ubuntu3) ... Processing triggers for libc-bin (2.35-0ubuntu3.10) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for dbus (1.12.20-2ubuntu4.1) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.26-1ubuntu3) ... (base) casbot@casbot:~/ros_catkin_ws$ sudo sh -c 'echo "deb https://mirrors.ustc.edu.cn/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-noetic.list' sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.6cqeROMOQT/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 gpg: key F42ED6FBAB17C654: "Open Robotics <info@osrfoundation.org>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 (base) casbot@casbot:~/ros_catkin_ws$ sudo apt update # 安装桌面完整版(约 1.5GB,网络不稳定时分段安装) sudo apt install ros-noetic-desktop-full -y --allow-unauthenticated Ign:1 http://deb.repo.autolabor.com.cn jammy InRelease Ign:2 http://deb.repo.autolabor.com.cn jammy Release Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 https://mirrors.ustc.edu.cn/ros/ubuntu jammy InRelease Hit:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Err:7 https://mirrors.ustc.edu.cn/ros/ubuntu jammy Release 404 Not Found [IP: 202.141.176.110 443] Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Hit:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy InRelease Hit:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates InRelease Hit:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-backports InRelease Hit:11 http://packages.ros.org/ros/ubuntu focal InRelease Hit:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-security InRelease Get:13 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease [4682 B] Reading package lists... Done E: The repository 'https://mirrors.ustc.edu.cn/ros/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: gazebo11 : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-iostreams1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libgazebo11 (= 11.15.1-1~focal) but it is not going to be installed Depends: libignition-msgs5 (>= 5.11.0) but it is not going to be installed Depends: libignition-transport8 (>= 8.5.0) but it is not going to be installed Depends: libprotobuf17 but it is not installable Depends: gazebo11-common (>= 11.2.0) but it is not going to be installed Recommends: gazebo11-plugin-base but it is not going to be installed libgazebo11-dev : Depends: libignition-transport8-dev but it is not going to be installed Depends: libignition-msgs5-dev but it is not going to be installed Depends: libignition-fuel-tools4-dev but it is not going to be installed Depends: libignition-common3-dev but it is not going to be installed Depends: libignition-common3-graphics-dev but it is not going to be installed Depends: libdart6-collision-bullet-dev (< 6.10.0) but it is not installable or libdart-collision-bullet-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-collision-ode-dev (< 6.10.0) but it is not installable or libdart-collision-ode-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-utils-urdf-dev (< 6.10.0) but it is not installable or libdart-utils-urdf-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-external-odelcpsolver-dev (< 6.10.0) but it is not installable or libdart-external-odelcpsolver-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-external-ikfast-dev (< 6.10.0) but it is not installable or libdart-external-ikfast-dev (< 6.10.0) but it is not going to be installed Depends: libgazebo11 (= 11.15.1-1~focal) but it is not going to be installed Depends: gazebo11-common (>= 11.2.0) but it is not going to be installed Depends: gazebo11-plugin-base (= 11.15.1-1~focal) but it is not going to be installed libicu-dev : Depends: libicu70 (= 70.1-2) but 70.1-2ubuntu1 is to be installed libjsoncpp-dev : Depends: libjsoncpp25 (= 1.9.5-3) but 1.9.5-3ubuntu0.1 is to be installed ros-noetic-actionlib : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-actionlib-tutorials : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-bondcpp : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-camera-calibration-parsers : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-python1.71.0 but it is not installable Depends: libboost-python1.71.0-py38 but it is not installable Depends: libpython3.8 (>= 3.8.2) but it is not installable Depends: libyaml-cpp0.6 (>= 0.6.2) but it is not installable ros-noetic-class-loader : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libpocofoundation62 (>= 1.9.2) but it is not installable ros-noetic-compressed-depth-image-transport : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-compressed-image-transport : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-controller-manager : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-cpp-common : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-cv-bridge : Depends: libboost-python1.71.0 but it is not installable Depends: libboost-python1.71.0-py38 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libpython3.8 (>= 3.8.2) but it is not installable ros-noetic-depth-image-proc : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-calib3d4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-diagnostic-aggregator : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-diagnostic-common-diagnostics : Depends: hddtemp but it is not installable ros-noetic-diff-drive-controller : Depends: libconsole-bridge0.4 but it is not installable Depends: liburdfdom-model but it is not installable ros-noetic-eigen-conversions : Depends: liborocos-kdl1.4 but it is not installable ros-noetic-filters : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-gazebo-plugins : Depends: libboost-thread1.71.0 but it is not installable Depends: libgazebo11 (>= 11.15.1) but it is not going to be installed Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libprotobuf17 but it is not installable ros-noetic-gazebo-ros : Depends: libboost-thread1.71.0 but it is not installable Depends: libgazebo11 (>= 11.15.1) but it is not going to be installed Depends: libprotobuf17 but it is not installable ros-noetic-gazebo-ros-control : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libgazebo11 (>= 11.15.1) but it is not going to be installed Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: ros-noetic-transmission-interface but it is not going to be installed ros-noetic-image-geometry : Depends: libopencv-calib3d4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-proc : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-publisher : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-videoio4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-rotate : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-transport : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-image-view : Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-highgui4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-videoio4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-interactive-markers : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-joint-state-controller : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-kdl-conversions : Depends: liborocos-kdl1.4 but it is not installable ros-noetic-kdl-parser : Depends: liborocos-kdl1.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: liburdfdom-model but it is not installable ros-noetic-laser-assembler : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-laser-filters : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-laser-geometry : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-nodelet : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-nodelet-tutorial-math : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-pcl-ros : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libpcl-common1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-features1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-filters1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-io1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-search1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-segmentation1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-surface1.10 (>= 1.10.0+dfsg) but it is not installable ros-noetic-pluginlib : Depends: libboost-filesystem1.71.0 but it is not installable ros-noetic-pluginlib-tutorials : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-position-controllers : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-robot-state-publisher : Depends: liborocos-kdl1.4 but it is not installable Depends: liburdfdom-world but it is not installable ros-noetic-rosbag : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: ros-noetic-rosbag-storage but it is not going to be installed ros-noetic-rosconsole : Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: liblog4cxx10v5 (>= 0.10.0) but it is not installable ros-noetic-rosconsole-bridge : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-roscpp : Depends: libboost-chrono1.71.0 but it is not installable Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable ros-noetic-roscpp-tutorials : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-rospack : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libpython3.8 (>= 3.8.2) but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-rqt-image-view : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable Depends: ros-noetic-rqt-gui-cpp but it is not going to be installed ros-noetic-rqt-rviz : Depends: libboost-program-options1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: ros-noetic-rqt-gui-cpp but it is not going to be installed ros-noetic-rviz : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: liburdfdom-world but it is not installable Depends: libyaml-cpp0.6 (>= 0.6.2) but it is not installable ros-noetic-rviz-plugin-tutorials : Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable ros-noetic-stage-ros : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-stereo-image-proc : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-calib3d4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-tf : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-tf-conversions : Depends: liborocos-kdl1.4 but it is not installable ros-noetic-tf2 : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-tf2-ros : Depends: libboost-thread1.71.0 but it is not installable Depends: ros-noetic-tf2-py but it is not going to be installed ros-noetic-theora-image-transport : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-turtle-actionlib : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-urdf : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: liburdfdom-model but it is not installable E: Unable to correct problems, you have held broken packages.我执行到第三步后出现报错,请在此基础上给我能够成功安装ros1的操作步骤
最新发布
07-23
<think>嗯,用户正在尝试在Ubuntu上安装lldb-3.9和liblldb-3.9-dev,但遇到了依赖问题,特别是libllvm3.9、libffi6、libcpp1等。首先,我需要确定这些软件包的可用性。因为Ubuntu的官方仓库可能已经不维护旧版本的LLVM和LLDB了,尤其是3.9版本,可能已经被更新的版本取代了。 用户提到的是Ubuntu,但具体版本没说。假设用户使用的是较新的Ubuntu版本,比如20.04或更高,那么默认的仓库可能没有这些旧的包。我需要先建议他们检查是否启用了正确的仓库,比如Ubuntu的universe仓库或者LLVM官方提供的旧版本仓库。 另外,用户可能需要添加LLVM的官方APT仓库,那里可能有旧版本的存档。例如,可以通过脚本从llvm.org/apt/获取,然后指定版本3.9。或者,用户可能需要手动下载deb包并安装,但需要注意依赖关系,这可能会导致冲突,尤其是如果系统中已经安装了新版本的LLVM。 还有,libffi6可能在较新的Ubuntu中被libffi7替代,所以需要找到兼容的库或者使用符号链接。同样,libcpp1可能指的是旧版本的libstdc++,可能需要安装相应的版本或者兼容包。 用户可能需要更新软件源列表,然后使用apt-get install -f来修复损坏的依赖。如果不行,可以尝试手动下载并安装每个依赖包,使用dpkg -i,但要注意顺序,先安装底层依赖,比如libffi6,然后是libllvm3.9,最后是lldb-3.9相关的包。 此外,使用aptitude工具可能提供更好的依赖解决方案,因为它可以建议降级或其他解决方案。如果所有方法都失败,考虑从源代码编译LLDB 3.9,但这需要用户有编译环境和时间,而且可能需要处理更多的依赖问题。 最后,提醒用户注意兼容性问题和安全风险,因为旧版本可能不再接收更新。如果可能,建议升级到支持的LLVM版本。</think>### 逐步解决方案 #### 步骤1:添加LLVM官方APT仓库 LLVM官方提供历史版本的预编译包。通过以下命令添加仓库: ```bash wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-3.9 main" sudo apt-get update ``` #### 步骤2:安装基础依赖 手动处理关键依赖项: ```bash # 安装旧版libffi6(需确认Ubuntu版本兼容性) wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb sudo dpkg -i libffi6_3.2.1-8_amd64.deb # 安装libstdc++旧版本(即libcpp1) sudo apt-get install gcc-5-base libstdc++5 ``` #### 步骤3:强制安装LLDB套件 使用`apt-get`指定忽略依赖关系(慎用): ```bash sudo apt-get install lldb-3.9 liblldb-3.9-dev --ignore-missing ``` #### 步骤4:验证安装 检查动态库链接状态: ```bash ldd /usr/lib/llvm-3.9/lib/liblldb.so ``` ### 替代方案:源码编译 若包管理安装失败,可通过源码编译: ```bash git clone -b release_39 https://github.com/llvm/llvm-project.git cd llvm-project mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="lldb" ../llvm make -j$(nproc) sudo make install ``` ### 注意事项 1. 使用旧版本可能引发安全漏洞(如CVE-2020-15824)[^1] 2. 建议优先考虑新版LLVM套件(如v12+) 3. 出现`libtinfo`缺失时需安装`libncurses5`
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值