Больше нельзя использовать sudo apt update. Выполняется 20.04

Пытался установить Wine, но обнаружил ошибку:

Запуск lsb_release дает:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:        21.04
Codename:       hirsute
vnc@CustomSite:/etc/apt$ sudo apt-get update
Hit:1 http://mirrors.digitalocean.com/ubuntu hirsute InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:3 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Ign:4 https://packages.sury.org/php hirsute InRelease
Hit:5 https://dl.winehq.org/wine-builds/ubuntu hirsute InRelease
Err:6 https://packages.sury.org/php hirsute Release
  404  Not Found [IP: 2606:4700:3030::ac43:b696 443]
Ign:7 http://ppa.launchpad.net/boost-latest/ppa/ubuntu hirsute InRelease
Ign:8 http://ppa.launchpad.net/jonathonf/wine/ubuntu hirsute InRelease
Err:9 http://ppa.launchpad.net/boost-latest/ppa/ubuntu hirsute Release
  404  Not Found [IP: 2001:67c:1560:8008::19 80]
Err:10 http://ppa.launchpad.net/jonathonf/wine/ubuntu hirsute Release
  404  Not Found [IP: 2001:67c:1560:8008::19 80]
Reading package lists... Done
E: The repository 'https://packages.sury.org/php hirsute 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.
E: The repository 'http://ppa.launchpad.net/boost-latest/ppa/ubuntu hirsute 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.
E: The repository 'http://ppa.launchpad.net/jonathonf/wine/ubuntu hirsute 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.

nano sources.list дает:

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb [trusted=yes] http://mirrors.digitalocean.com/ubuntu/ hirsute main restricted
# deb-src http://mirrors.digitalocean.com/ubuntu/ hirsute main restricted

Пожалуйста, помогите мне избавиться от этой ошибки.

Спасибо.

Neo

1
задан 13 June 2021 в 21:55

1 ответ

У вас есть несколько проблем со сторонними репозиториями в Ubuntu 21.04.
Чтобы исправить их:

  1. Отключите PPA:

     sudo add-apt-repository -r ppa: boost-latest / ppa 
    sudo add-apt-repository -r ppa : jonathonf / wine 
     
  2. Чтобы отключить https://packages.sury.org/php , вы должны найти его файл с помощью grep -r packages.sury.org / и т.д. / apt --include = *. list .

    В вашем случае запустите:

     sudo nano /etc/apt/sources.list.d/php.list
    

    и поместите # в строку deb packages.sury.org/php hirsute main , затем нажмите Ctrl + O для сохранения, Ctrl + x , чтобы Закрыть.

  3. Восстановить обычные репозитории по умолчанию - поместите следующее в /etc/apt/sources.list :

     deb http://archive.ubuntu.com/ubuntu/ hirsute main universe multiverse limited {{ 1}} deb http://archive.ubuntu.com/ubuntu/ hirsute-updates основная вселенная мультивселенной ограничена 
    deb http://archive.ubuntu.com/ubuntu/ hirsute-security мультивселенная основной вселенной ограничена {{ 1}} 

    замена строк на digitalocean .

  4. Запустите sudo apt-get update .

  5. Установите Wine из официальных репозиториев, как это было запланировано

     sudo add-apt-repository universe 
    sudo rm /etc/apt/sources.list.d / archive_uri * # мы удаляем winehq здесь 
    sudo dpkg --add-architecture i386 
    sudo apt-get update 
    sudo apt install wine64 wine32: i386 
     
1
ответ дан 28 July 2021 в 11:29

Другие вопросы по тегам:

Похожие вопросы: