BeagleBoneBlack 和 Debian 8 的 apt-get 问题

BeagleBoneBlack 和 Debian 8 的 apt-get 问题

当我更新运行 Debian 8 的 BeagleBone Black 时,出现以下信息:

root@bbb-one:~# apt-get update
Hit http://security.debian.org jessie/updates InRelease
Hit http://repos.rcn-ee.com jessie InRelease
Ign http://ftp.us.debian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates/main armhf Packages [802 kB]
Hit http://ftp.us.debian.org jessie-updates InRelease
Get:2 http://repos.rcn-ee.com jessie/main armhf Packages [1013 kB]
Hit http://ftp.us.debian.org jessie Release.gpg
Hit http://ftp.us.debian.org jessie Release
Get:3 http://security.debian.org jessie/updates/contrib armhf Packages [994 B]
Get:4 http://security.debian.org jessie/updates/non-free armhf Packages [4416 B]
Get:5 http://ftp.us.debian.org jessie/main armhf Packages [8898 kB]
Get:6 http://ftp.us.debian.org jessie/contrib armhf Packages [44.3 kB]
Get:7 http://ftp.us.debian.org jessie/non-free armhf Packages [74.9 kB]
Fetched 10.8 MB in 18s (581 kB/s)
W: Failed to fetch http://ftp.us.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

sources.list 显示:

root@bbb-one:~# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free

#deb http://ftp.debian.org/debian jessie-backports main contrib non-free
##deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free

#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
#
deb [arch=armhf] http://repos.rcn-ee.com/debian/ jessie main
#deb-src [arch=armhf] http://repos.rcn-ee.com/debian/ jessie main

它处于操作环境中,因此我无法进行大量测试。

W: 和 E: 消息是什么意思以及如何消除它们?

我不知道如何处理这个问题。

答案1

jessie-updates 已存档,不再在默认镜像中可用。

看:https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html

您应该从 sources.list 中删除以下几行:

deb http://ftp.us.debian.org/debian/ jessie-updates 主要贡献 非自由
#deb-src http://ftp.us.debian.org/debian/ jessie-updates 主要贡献 非自由

然后再次运行apt-get update

如果您希望从此特定 repo 中查找未完成的更新,则需要切换到 archive.debian.org

首先安装 debian-archive-keyring

apt-get install debian-archive-keyring

然后将以上几行替换为:

deb http://archive.debian.org/debian/ jessie-updates 主要贡献 非自由
#deb-src http://archive.debian.org/debian/ jessie-updates 主要贡献 非自由

但是存档的存储库不再受支持并且不会收到任何进一步的更新。

Jessie 将于明年 EOL,因此您应该开始考虑对其进行升级以进行延伸。

相关内容