Apt-get 无法安装软件包,apt-get update 不起作用

Apt-get 无法安装软件包,apt-get update 不起作用

几天前,apt-get 成功停止安装软件包。

我在 Raspberry Pi 2 上使用 Ubuntu Mate 18.04。

我想安装 Idle 3 以便可以编写 Python 程序。但是当我运行时sudo apt-get install idle3,出现以下错误:

    Err:1 http://ports.ubuntu.com bionic-updates/universe armhf idle-python3.6 all 3.6.9-1~18.04
    404  Not Found [IP: 2001:67c:1360:8001::22 80]
    E: Failed to fetch http://ports.ubuntu.com/pool/universe/p/python3.6/idle-python3.6_3.6.9-1~18.04_all.deb
    404  Not Found [IP: 2001:67c:1360:8001::22 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我在运行此命令之前确实运行过apt-get update。它也没有成功,尽管我没有意识到这一点。它给出了以下错误:

Err:8 http://ppa.launchpad.net/wine/wine-builds/ubuntu bionic Release          
  404  Not Found [IP: 2001:67c:1560:8008::15 80]
Err:9 http://ports.ubuntu.com bionic/main i386 Packages
  404  Not Found [IP: 2001:67c:1360:8001::22 80]
Err:16 http://ports.ubuntu.com bionic-updates/main i386 Packages               
  404  Not Found [IP: 2001:67c:1360:8001::22 80]
Err:35 http://ports.ubuntu.com bionic-security/main i386 Packages          
  404  Not Found [IP: 2001:67c:1360:8001::22 80]
Err:42 http://ports.ubuntu.com bionic-backports/main i386 Packages             
  404  Not Found [IP: 2001:67c:1360:8001::22 80]
E: The repository 'http://ppa.launchpad.net/wine/wine-builds/ubuntu bionic 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.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://dtcooper.github.io/raspotify raspotify InRelease' doesn't support architecture 'i386'

请帮忙!我需要安装软件包!

编辑-系统信息

REPOSITORIES INFO
/etc/apt/sources.list:deb http://ports.ubuntu.com/ bionic main restricted universe multiverse
/etc/apt/sources.list:deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
/etc/apt/sources.list:deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
/etc/apt/sources.list:deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list.d/ubuntu-pi-flavour-makers-ubuntu-ppa-bionic.list:deb http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic main

RELEASE INFO
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

KERNEL INFO
Linux raspberrypi 4.15.0-1060-raspi2 #64-Ubuntu SMP PREEMPT Wed Mar 25 18:03:34 UTC 2020 armv7l armv7l armv7l GNU/Linux

答案1

第一个错误

deb http://ports.ubuntu.com/ bionic main restricted universe multiverse

这没有 i386 组件。另外,我不知道你为什么要在 Raspberry Pi 上使用 i386 软件包。

所以

Err:9 http://ports.ubuntu.com bionic/main i386 Packages

尝试在该行前面添加[arch=armhf,arm64],例如:

deb [arch=armhf,arm64] http://ports.ubuntu.com/ bionic main restricted universe multiverse

并检查 的输出dpkg --print-foreign-architectures

第二个错误

E: The repository 'http://ppa.launchpad.net/wine/wine-builds/ubuntu bionic Release' does not have a Release file.

该存储库没有bionic组件。

相关内容