我在 Surface 2017 上使用 Ubuntu 20.04 3 LTS、GNOME 版本 3.36.8。尝试使用软件更新程序获取更新时收到错误,内容为“无法下载包文件错误:请检查您的互联网连接”。
“主服务器”已选定为下载位置。
尝试了这里的所有步骤,但没有解决:https://forum.zorin.com/t/failed-to-download-package-files/14565/9
如果您能帮忙,请告诉我。我想获取更新并升级到最新的 LTS(无需提示)。
谢谢你!
以下是 sudo apt update 的输出:
点击数:1http://dl.google.com/linux/chrome/deb稳定发布中点击数:2https://updates.signal.org/desktop/aptxenial 发布
Ign:3http://linux.dropbox.com/ubuntudisco 发行
热度:4http://linux.dropbox.com/ubuntu迪斯科发布
热度:5http://archive.ubuntu.com/ubuntufocus 发布
热度:6http://ppa.launchpad.net/atareao/atareao/ubuntu焦点发布
获得:7http://archive.ubuntu.com/ubuntufocal-updates InRelease [114 kB]
点击数:8https://repo.steampowered.com/steam稳定发布中
点击数:9http://ppa.launchpad.net/mozillacorp/mozillavpn/ubuntufocal 发布
点击数:11https://pkg.surfacelinux.com/debian发布中发布
点击数:12http://ppa.launchpad.net/tj/bugfixes/ubuntufocal inrelease
获取:13http://archive.ubuntu.com/ubuntufocal-backports InRelease [108 kB] 获取:14http://archive.ubuntu.com/ubuntufocal-security InRelease [114 kB] 获取:15http://archive.ubuntu.com/ubuntufocal-updates/main amd64 DEP-11 元数据 [277 kB] 获取:16http://archive.ubuntu.com/ubuntufocal-updates/universe amd64 DEP-11 元数据 [391 kB] 获取:17http://archive.ubuntu.com/ubuntufocal-updates/multiverse amd64 DEP-11 元数据 [940 B] 获取:18http://archive.ubuntu.com/ubuntufocal-backports/main amd64 DEP-11 元数据 [7,988 B] 获取:19http://archive.ubuntu.com/ubuntufocal-backports/universe amd64 DEP-11 元数据 [30.5 kB] 获取:20http://archive.ubuntu.com/ubuntufocal-security/main amd64 DEP-11 元数据 [40.7 kB] 获取:21http://archive.ubuntu.com/ubuntufocal-security/universe amd64 DEP-11 元数据 [77.6 kB] 获取:22http://archive.ubuntu.com/ubuntufocal-security/multiverse amd64 DEP-11 元数据 [2,464 B] 已读取 1,165 kB,耗时 2 秒 (583 kB/s)
正在读取软件包列表... 已完成 正在构建依赖关系树
正在读取状态信息... 已完成 150 个软件包可以升级。运行“apt list --upgradable”即可查看。
sudo apt upgrade 的输出
正在读取软件包列表...完成构建依赖关系树
正在读取状态信息... 完成 正在计算升级... 完成 以下软件包已自动安装,不再需要:libb2-1 libfwupdplugin1 libmd4c0 libqt6core6 libqt6dbus6 libqt6gui6 libqt6labsqmlmodels6 libqt6network6 libqt6networkauth6 libqt6opengl6 libqt6qml6 libqt6qmllocalstorage6 libqt6qmlmodels6 libqt6qmlworkerscript6 libqt6quick6 libqt6quickcontrols2-6 libqt6quickcontrols2impl6 libqt6quicklayouts6 libqt6quicktemplates2-6 libqt6sql6 libqt6sql6-sqlite libqt6svg6 libqt6test6 libqt6websockets6 libqt6widgets6 libts0 linux-headers-5.14.11-surface linux-headers-5.14.14-surface linux-headers-5.14.8-surface linux-image-5.14.11-surface linux-image-5.14.14-surface linux-image-5.14.8-surface qml6-module-qt-labs-qmlmodels qml6-module-qt5compat-graphicaleffects qml6-module-qtqml qml6-module-qtqml-models qml6-module-qtqml-workerscript qml6-module-qtquick qml6-module-qtquick-controls qml6-module-qtquick-layouts qml6-module-qtquick-localstorage qml6-module-qtquick-templates qml6-module-qtquick-window qt6-gtk-platformtheme qt6-qpa-plugins wireguard wireguard-tools 使用“sudo apt autoremove”来删除它们。将安装以下新软件包:i965-va-driver:i386 intel-media-va-driver:i386 libegl-mesa0:i386 libegl1:i386 libfwupdplugin5 libgbm1:i386 libigdgmm11:i386 libva2:i386 libwacom-bin-surface libwacom-common-surface libwacom2-surface libwacom9-surface libwayland-server0:i386 linux-headers-5.19.7-surface linux-image-5.19.7-surface mesa-va-drivers:i386 va-driver-all:i386 将升级以下软件包:alsa-ucm-conf base-files bolt command-not-found deja-dup fwupd fwupd-signed gdb gdbserver gir1.2-gtk-3.0 gir1.2-mutter-6 gir1.2-nm-1.0 gir1.2-notify-0.7 gnome-control-center gnome-control-center-data gnome-control-center-faces gnome-shell-extension-desktop-icons google-chrome-stable grub-common grub-pc grub-pc-bin grub2-common gtk-update-icon-cache gvfs gvfs-backends gvfs-bin gvfs-common gvfs-daemons gvfs-fuse gvfs-libs iio-sensor-proxy initramfs-tools initramfs-tools-bin initramfs-tools-core iptsd isc-dhcp-client isc-dhcp-common kactivitymanagerd kmod language-pack-en language-pack-en-base language-pack-gnome-en语言包-gnome-en-base libasound2 libasound2:i386 libasound2-data libatopology2 libc-bin libc-dev-bin libc6 libc6:i386 libc6-dbg libc6-dev libfprint-2-2 libfwupd2 libgstreamer-plugins-bad1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libjcat1 libkeyutils1 libkmod2 libkworkspace5-5 libmbim-glib4 libmbim-proxy libmm-glib0 libmutter-6-0 libnautilus-extension1a libnetplan0 libnm0 libnotify-bin libnotify4 libnss-systemd libpam-systemd libpulse-mainloop-glib0 libpulse0 libpulse0:i386 libpulsedsp libqmi-glib5 libqmi-proxy libqt5webkit5 libsensors-config libsensors5 libsensors5:i386 libsnmp-base libsnmp35 libsystemd0 libsystemd0:i386 libtss2-esys0 libudev1 libudev1:i386 libwacom-surface libxnvctrl0 lintian linux-base linux-firmware linux-headers-5.14.14-surface linux-headers-surface linux-image-5.14。14-surface linux-image-surface linux-surface-secureboot-mok 区域设置 登录 modemmanager mutter mutter-common nautilus nautilus-data netplan.io 网络管理器 网络管理器配置连接性-ubuntu openssh-client 密码 pulseaudio pulseaudio-module-bluetooth pulseaudio-utils python-apt-common python3-apt python3-commandnotfound python3-distupgrade python3-dnspython python3-software-properties python3-update-manager sbsigntool snapd 软件属性-common 软件属性-gtk steam-launcher steam-libs-amd64 steam-libs-i386:i386 systemd systemd-sysv systemd-timesyncd tracker-extract tracker-miner-fs tzdata ubuntu-advantage-tools ubuntu-drivers-common ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk udev ufw unattended-upgrades update-manager update-manager-core update-notifier update-notifier-common wget xdg-desktop-portal xdg-desktop-portal-gtk 已升级 150 个,新安装 17 个,要删除 0 个,未升级 0 个。1 个标准安全更新需要获取 158 MB/506 MB 的档案。此操作后,将使用 486 MB 的额外磁盘空间。是否要继续?[Y/n] y Err:1https://pkg.surfacelinux.com/debianrelease/main amd64 libwacom-surface amd64 2.4.0-1 401 未授权 [IP: 185.199.110.133 443] 错误:2https://pkg.surfacelinux.com/debianrelease/main amd64 libwacom-common-surface amd64 2.4.0-1 401 未授权 [IP: 185.199.110.133 443] 错误:3https://pkg.surfacelinux.com/debianrelease/main amd64 libwacom9-surface amd64 2.4.0-1 401 未授权 [IP: 185.199.110.133 443] 错误:4https://pkg.surfacelinux.com/debianrelease/main amd64 libwacom-bin-surface amd64 2.4.0-1 401 未授权 [IP: 185.199.110.133 443] 错误:5https://pkg.surfacelinux.com/debianrelease/main amd64 libwacom2-surface amd64 2.4.0-1 401 未授权 [IP: 185.199.110.133 443] 错误:6https://pkg.surfacelinux.com/debian发布/主 amd64 iptsd amd64 0.5.1-1 401 未授权 [IP: 185.199.110.133 443] 错误:7https://pkg.surfacelinux.com/debian发布/主 amd64 linux-headers-5.19.7-surface amd64 5.19.7-surface-1 401 未授权 [IP: 185.199.110.133 443] 错误:8https://pkg.surfacelinux.com/debianrelease/main amd64 linux-headers-surface amd64 5.19.7-surface-1 401 未授权 [IP: 185.199.110.133 443] 错误:9https://pkg.surfacelinux.com/debian发布/主 amd64 linux-headers-5.14.14-surface amd64 5.14.14-surface-3 401 未授权 [IP: 185.199.110.133 443] 错误:10https://pkg.surfacelinux.com/debian发布/主 amd64 linux-image-5.19.7-surface amd64 5.19.7-surface-1 401 未授权 [IP: 185.199.110.133 443] 错误:11https://pkg.surfacelinux.com/debianrelease/main amd64 linux-image-surface amd64 5.19.7-surface-1 401 未授权 [IP: 185.199.110.133 443] 错误:12https://pkg.surfacelinux.com/debian发布/主 amd64 linux-image-5.14.14-surface amd64 5.14.14-surface-3 401 未授权 [IP: 185.199.110.133 443] 错误:13https://pkg.surfacelinux.com/debianrelease/main amd64 linux-surface-secureboot-mok amd64 20220427-1 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/139604852/ec990d40-39ef-4a73-8b2d-e0d2860b0d2c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=fcfbb15c7633013352fbc76d9363f0e3ca092d8068cf947d4b18728ce73c41a9&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=139604852&响应内容处置=附件;filename=libwacom-surface_2.4.0-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/139604852/9a024a27-c3c8-46e7-8c4a-18a6114138e0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=c82229b76060deae186c624403c4a2c6efd2f33ca2017888309bbf142a471e59&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=139604852&响应内容处置=附件;filename=libwacom-common-surface_2.4.0-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/139604852/9ac33f87-8963-45cf-b5b2-4cb313cc28ff?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=0353055045d007a30f2b49a4af1e7187b9068a718f05839d1b80dc127f657385&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=139604852&响应内容处置=附件;filename=libwacom9-surface_2.4.0-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/139604852/34697f30-d54c-4905-ad72-c27a10baa98d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=b0e3d30f723dfd51999be9957856e5365a2ebd954e627ff3908b8ecccd506fbb&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=139604852&response-content-disposition=附件;filename=libwacom-bin-surface_2.4.0-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/139604852/9075c63a-d08c-4da3-98c0-b920513043f8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=b06a1e7130dd3e55bc21717d895f8c7b0d69869856418ca9828d7e193770b802&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=139604852&响应内容处置=附件;filename=libwacom2-surface_2.4.0-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/261858706/9e436241-8b65-4228-aad9-85d540af422d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=1ce7ebcd7c8f40e3d4665d20abadf4da9124d9f08c414186c0e6e2d193f9335c&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=261858706&response-content-disposition=附件;filename=iptsd_0.5.1-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/155009767/10c04fe3-d3fb-4e45-ae9f-20261f44fed1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171411Z&X-Amz-Expires=300&X-Amz-签名=757fbdf5c4159a51b945e8d98c4fa62c9700940467b81a08558f90994ebac03c&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=155009767&响应内容处置=附件;filename=linux-headers-5.19.7-surface_5.19.7-surface-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/155009767/4fc3cbfb-d133-4935-bc2a-d6740cf46681?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171412Z&X-Amz-Expires=300&X-Amz-签名=c8f2b8b8c63ef0e22b542ad27ee95c361e92d473e95d8daa733ce96e00e21795&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=155009767&response-content-disposition=附件;filename=linux-headers-surface_5.19.7-surface-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/155009767/2cb6ab71-6620-43b8-b3f2-cb4f2fa933fa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171412Z&X-Amz-Expires=300&X-Amz-签名=2f863d1ac392f05b1e951f045432686d504ef6cf4567b438fb0cf6e23d54ebd1&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=155009767&响应内容处置=附件;filename=linux-headers-5.14.14-surface_5.14.14-surface-3_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/155009767/a51607a5-fad3-4419-b2a0-17478ae1e9ed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171412Z&X-Amz-Expires=300&X-Amz-签名=e3e07cdd1bbd63abda348c30ae21f99286c6d3665fd5e8df895578e37219b44e&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=155009767&response-content-disposition=附件;filename=linux-image-5.19.7-surface_5.19.7-surface-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/155009767/8493827e-fb98-4f9a-a987-f744b562668a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171413Z&X-Amz-Expires=300&X-Amz-签名=e2b95e635865e28233a6f964bd59515ef82da7b708445afdc3655e40cade0158&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=155009767&响应内容处置=附件;filename=linux-image-surface_5.19.7-surface-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/155009767/6c9e68be-25dc-40d3-b81b-963fe399b331?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171412Z&X-Amz-Expires=300&X-Amz-签名=bc1314603684442364ba9c24dc8ab3c723a184dac3d1b6838b44ed7c2c0a6031&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=155009767&响应内容处置=附件;filename=linux-image-5.14.14-surface_5.14.14-surface-3_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取https://objects.githubusercontent.com/github-production-release-asset-2e65be/211351605/e21fbc76-7a83-4c26-9e01-7e194b7af7ae?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20220910/us-east-1/s3/aws4_request& X-Amz-日期=20220910T171413Z&X-Amz-Expires=300&X-Amz-签名=7c5094bec9159271421ea36ae029d27f3de68b3f24e1951a204c6229854381cd&X-Amz-SignedHeaders=主机&actor_id=0&key_id=0&repo_id=211351605&响应内容处置=附件;filename=linux-surface-secureboot-mok_20220427-1_amd64.deb&response-content-type=application/octet-stream 401 未授权 [IP: 185.199.110.133 443] E: 无法获取某些档案,也许运行 apt-get update 或尝试使用 --fix-missing?
答案1
更新 Ubuntu,我遇到了同样的问题,一段时间后,我从官方 ubuntu 网站下载了一个 jamjelly fish 版本,并用它启动了我的系统