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:

  1. Disable PPAs:

    sudo add-apt-repository -r ppa:boost-latest/ppa
    sudo add-apt-repository -r ppa:jonathonf/wine
    
  2. To disable https://packages.sury.org/php you have to locate its file using grep -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 line deb packages.sury.org/php hirsute main, then press Ctrl+O for save, Ctrl+x to close.

  3. 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.

  4. Run sudo apt-get update .

  5. 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