Пытался установить 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
У вас есть несколько проблем со сторонними репозиториями в Ubuntu 21.04.
Чтобы исправить их:
Отключите PPA:
sudo add-apt-repository -r ppa: boost-latest / ppa
sudo add-apt-repository -r ppa : jonathonf / wine
Чтобы отключить 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 , чтобы Закрыть.
Восстановить обычные репозитории по умолчанию - поместите следующее в /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 .
Запустите sudo apt-get update
.
Установите 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