Can no longer use sudo apt update. Running 20.04
Solution 1:
You have several issues here with third-party repositories with your Ubuntu 21.04.
To fix them:
-
Disable PPAs:
sudo add-apt-repository -r ppa:boost-latest/ppa sudo add-apt-repository -r ppa:jonathonf/wine
-
To disable
https://packages.sury.org/php
you have to locate its file usinggrep -r packages.sury.org /etc/apt --include=*.list
.In your case run:
sudo nano /etc/apt/sources.list.d/php.list
and place
#
at the linedeb packages.sury.org/php hirsute main
, then press Ctrl+O for save, Ctrl+x to close. -
Restore normal default repositories - place the following into
/etc/apt/sources.list
:deb http://archive.ubuntu.com/ubuntu/ hirsute main universe multiverse restricted deb http://archive.ubuntu.com/ubuntu/ hirsute-updates main multiverse universe restricted deb http://archive.ubuntu.com/ubuntu/ hirsute-security main universe multiverse restricted
replacing lines with digitalocean.
-
Run
sudo apt-get update
. -
Install Wine from official repositories as it was planned by
sudo add-apt-repository universe sudo rm /etc/apt/sources.list.d/archive_uri* # we remove winehq here sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install wine64 wine32:i386