E: O repositório 'http://extras.ubuntu.com/ubuntu xenial Release' não possui um arquivo Release.

Após UBUNTU substituir a fonte do espelho,
execute
sudo apt-get update

O erro é o seguinte:

Obter: 86 http://archive.ubuntu.com/ubuntu bionic-backports / universe Translation-en [4588 B]
Lendo listas de pacotes… Feito
E: O repositório 'http://extras.ubuntu.com/ubuntu xenial Release' não tem um arquivo Release.
N: A atualização de tal repositório não pode ser feita com segurança e, portanto, está desabilitada por padrão.
N: Veja a página de manual apt-secure (8) para a criação do repositório e detalhes de configuração do usuário.

Solução:

Edite o arquivo /etc/apt/sources.list e adicione a fonte de espelho Alibaba Cloud na parte superior do arquivo:

#  阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Então corra:

sudo rm -vf /var/lib/apt/lists/*
sudo apt clean
sudo apt update ; reboot

Acho que você gosta

Origin blog.csdn.net/weixin_47542175/article/details/115368001