• jaybone@lemmy.zip
    link
    fedilink
    English
    arrow-up
    23
    ·
    9 hours ago

    Until your shit got all fucked up because you added a third party repository. And then you have to manually remove lock files and fix the pkg database and mess with .conf files and manually uninstall specific versions of dependent packages, and then manually re-enable some remote repo.

    Then you actually kind of do feel like a hacker.

    Until you’ve done it like 10 different times, then you are just annoyed. Still a better love story than Twilight.

    • conartistpanda@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      8 hours ago

      This fucking idiot here changed their debian branch to sid then wondered why the software store didnt work. Luckly I always backup config files. I mean, it’s not that complicated to change some lines back, but still.

      Also it’s a vbox vm so I could always restore a snapshot. And it exists to tweak so it was meant to be.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 hours ago

      shit got all fucked up because you added a third party repository

      Dependency hell is always, always, self-inflicted.

      apt is only SLSA1 or 2 anyway, so there’s a lot more wiggle room.

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      9 hours ago

      You copy paste the command.

      $ sudo apt update
      -bash: sudo: command not found
      $
      

      Your distro doesn’t set up/install sudo by default, so your first task is installing sudo, then understanding /etc/sudoers syntax and understanding why the command to atomically replace /etc/sudoers is visudo and why on a multiuser system there’s value to atomic replacement. In the meantime, you probably learn about su and maybe, if your distro has disabled them, how to enable switching to the kernel virtual consoles on tty1 through tty7 so that in the meantime, you can do things as root while staying logged in. Also, you’re going to learn about environment variables, so as to set EDITOR, and where your shell config files live, what a login shell is, and in what shells ~/.bash_profile, ~/.profile, and ~/.bashrc run. Also, you first try running visudo as a regular user, but your distro places visudo in /usr/sbin instead of /usr/bin, so you can’t figure out why it’s not installed and are going to learn about the FHS and mlocate and updatedb so that you can find /usr/sbin/visudo and dpkg -S so that you can figure out which package it’s in and confirm that it’s actually installed and learn about PATH.