• YaBoyMax@programming.dev
    link
    fedilink
    English
    arrow-up
    66
    ·
    3 days ago

    Mint also removes Ubuntu’s aggressive snap integration, plus part of the draw for some people is just getting a little further from Canonical in general.

    • Fmstrat@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      3 days ago

      Easy peasy.

          # Remove snap
          HAD_SNAPS=false
          if [ -n "$(which snap 2>/dev/null)" ]; then
              HAD_SNAPS=true
              SNAPS=$(snap list |awk '{print $1}' |grep -v Name |grep -vE 'bare|core22|snapd')
              for SNAP in ${SNAPS}; do sudo snap remove ${SNAP}; done
              SNAPS=$(snap list |awk '{print $1}' |grep -v Name)
              for SNAP in ${SNAPS}; do sudo snap remove ${SNAP}; done
              sudo systemctl stop snapd
              sudo systemctl stop snapd.socket
              sudo systemctl disable snapd
              sudo systemctl mask snapd
              sudo apt purge snapd -y
              sudo apt-mark hold snapd
              sudo cat <<EOF | sudo tee /etc/apt/preferences.d/nosnap.pref
      Package: snapd
      Pin: release a=*
      Pin-Priority: -10
      EOF
              rm -rf ~/snap
              sudo rm -rf /snap
              sudo rm -rf /var/snap
              sudo rm -rf /var/lib/snapd
              # Add needed repositories
              sudo add-apt-repository ppa:mozillateam/ppa -y
              echo '
      Package: *
      Pin: release o=LP-PPA-mozillateam
      Pin-Priority: 1001
      
      Package: thunderbird
      Pin: version 2:1snap*
      Pin-Priority: -1
      ' | sudo tee /etc/apt/preferences.d/thunderbird
              sudo add-apt-repository ppa:xtradeb/apps -y
          fi
      

      Note: This is part of my new install script that runs for Debian and/Ubuntu.

    • Fizz@lemmy.nz
      link
      fedilink
      arrow-up
      3
      arrow-down
      14
      ·
      3 days ago

      Snap is the exact thing you want for these kind of users.

      • Bluefruit@lemmy.world
        link
        fedilink
        arrow-up
        15
        ·
        3 days ago

        In theory sure, but the problem is snaps aren’t a good replacement for normal packages for a lot of users, at least not according to the Linux community at large.

        Snaps sound like a good idea until you realize that Canonical owns the repos, decides what is and isnt worthy, forces it to be used without the users consent, etc.

        Another system where packages update automatically could be good, but I think Canonical’s implementation leaves a lot to be desired in my opinion.

        • Fizz@lemmy.nz
          link
          fedilink
          arrow-up
          3
          arrow-down
          9
          ·
          3 days ago

          Canonical is their distro maintainer I dont know why you’re treating it like they shouldnt be managing their packages.

          The linux community at large is often cargo culty and doesnt have the average computer user in mind.

          • Bluefruit@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            edit-2
            3 days ago

            I’m not saying they shouldn’t maintain their distro or repos, but my main issue is their implementation. They make snaps the default, without user consent, and snaps in my experience have not been as good as normal packages such as .deb for example.

            If snaps were as fast and stable as normal packages and were not forced upon the user, I’d be more okay with them.

            And you’re not wrong about people being very picky or culty when it comes to package formats. Me personally, I’m fine with most packages types I’ve used. Its only snaps that have been an issue for me.