Ubuntu 21.10 上的 sudo apt-get update 失败

Ubuntu 21.10 上的 sudo apt-get update 失败

我在运行命令时遇到问题:sudo apt-get update 出现以下错误。您有什么想法和建议吗?谢谢!

Err:2 http://es-mirrors.evowise.com/ubuntu impish InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:3 http://es-mirrors.evowise.com/ubuntu impish-updates InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:4 http://es-mirrors.evowise.com/ubuntu impish-backports InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:6 http://es-mirrors.evowise.com/ubuntu impish-security InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done 
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://es-mirrors.evowise.com/ubuntu impish InRelease' is not signed.
E: Failed to fetch http://es-mirrors.evowise.com/ubuntu/dists/impish/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://es-mirrors.evowise.com/ubuntu impish-updates InRelease' is not signed.
E: Failed to fetch http://es-mirrors.evowise.com/ubuntu/dists/impish-updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://es-mirrors.evowise.com/ubuntu/dists/impish-backports/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://es-mirrors.evowise.com/ubuntu impish-backports InRelease' is not signed.
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.
E: Failed to fetch http://es-mirrors.evowise.com/ubuntu/dists/impish-security/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://es-mirrors.evowise.com/ubuntu impish-security InRelease' is not signed.
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.

答案1

1.编辑netplan文件

sudo vi /etc/netplan50-cloud-init.yaml

2. 在名称服务器上添加名称服务器 Google / Cloudflare 或任何

network:
    ethernets:
        [network-device]:
            ...
            nameservers:
                addresses:
                - 2001:4860:4860::8888
                - 2001:4860:4860::8844
                - 8.8.8.8
                - 8.8.4.4
                - 1.1.1.1

注意:此文件上不要使用制表符,只允许使用空格。

3. 应用并测试网络

sudo netplan apply
systemd-resolve --status

参考:https://josuamarcelc.com/cannot-sudo-apt-update-failed-to-update-ubuntu/

4. 之后再试一次

sudo apt-get update

相关内容