Follow-up from “Dumbest Thing you have done distro-hopping?”.

Here’s mine - the laptop from which I’m typing right now has a broken touchpad that keeps jumping and clicking randomly, and does not work. Well, I can’t afford to fix it, but at the moment, I was so pissed off I punched the touchpad really hard, and the machine panicked with all the lights blinking. A few more revival abuses, and the machine was back to life, but since I was running a nixos-rebuild switch --upgrade in the background, I blew off my boot partition. I think I just broke the unbreakable distro.

  • visc@lemmy.world
    link
    fedilink
    arrow-up
    105
    ·
    1 year ago

    Uninstallled python to upgrade it. Pretty much the entire os depends on python and was also uninstalled.

    • KISSmyOS@lemmy.world
      link
      fedilink
      arrow-up
      27
      ·
      1 year ago

      “I’m not programming in python so why would I need all this?” is a thought I had in the past while browsing synaptic.

    • mateomaui@reddthat.com
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      Well, score one in the user-friendly column for Linux Mint.

      I uninstalled python3 in Debian 12, it said “sure, no problem”, and instantly broke the desktop and on reboot could not log in.

      Tried the same thing on Linux Mint Debian Edition, and first it refused because one of Cinnamon’s libraries depended on it, but when I included that library in the remove and added purge, it said:

      “E: Removing essential system-critical packages is not permitted. This might break the system.”

      Thank you, LMDE.

  • sebsch@discuss.tchncs.de
    link
    fedilink
    arrow-up
    75
    ·
    1 year ago

    I once deinstalled dpkg on Debian or Ubuntu.

    Back then I did not know what that dependency was. So apt-get uninstall dpkg felt okish for me.

    The funny thing is, apt forces you to type “yes I know what I am doing!”, but even that did not kill my flow here. I misspelled the sentence twice, than copied it and pressed enter…

    After I tried to compile dpkg again but decided relatively soon it’s time for the next distro hop.

  • ISOmorph@feddit.de
    link
    fedilink
    arrow-up
    47
    arrow-down
    1
    ·
    1 year ago

    When I finally switched from windows to linux a year ago, I read about timeshift and how it is basically windows restore points. So I installed it and played around with it but didn’t really get it so I wanted to remove it. At that point I didn’t really understand what symlinks are, and I just thought timeshift is just crappy bloatware that dumped a bunch of unecessary shit on my drive. So I sudo deleted that shit. Turns out that was a bad idea. That’s the story how I nuked my first linux install.

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      25
      ·
      1 year ago

      To this day I use BTRFS on all my machines because of the superior snapshotting capabilities, and to this day I have never used it for rewinding to a snapshot, as basically live in fear of it

      • Gallardo994@sh.itjust.works
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Well, untested snapshots/backups are just as good as no snapshots/backups. Same applies to snapshots without restoration plan. So I would urge you to try testing it just in case.

      • Cwilliams@beehaw.org
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Do you have any resources for doing Btrfs snapshots? I already use Btrfs, but I’ve never really caught on to the whole snappshotting thing

    • TwoBeeSan@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Fucking up is always the best way to learn. Could have seen myself doing the same thing if I hadn’t just read this lol

  • krash@lemmy.ml
    link
    fedilink
    arrow-up
    38
    ·
    edit-2
    1 year ago

    This was dumb on so many levels.

    I downloaded an iso and was supposed to dd it to my USB drive. You can see where this is leading, but it’s worse than you think.

    I overwrote the hdd. While I was on an airplane. Of a macbook air that I had no idea how to restore to a functioning state. And this was my workplace laptop.

    Like I said, dumb on many levels…

    Edit: while the question is about breaking ones Linux installation, one could argue that macOS share the same lineage as Linux and share many similarities.

  • MyNameIsRichard@lemmy.ml
    link
    fedilink
    arrow-up
    33
    ·
    edit-2
    1 year ago

    It wasn’t on Linux on but on a Vax Unix machine in the early 90s. We were an IBM shop but the accounts department got a Vax to run their new software. Obviously we were expected to look after this little box with no training. Things went quite well until it started to to run out of space. I found a huge file called vmuniz iirc and couldn’t see anything using using it. The file was deleted and the job was done. Until we rebooted.

  • atzanteol@sh.itjust.works
    link
    fedilink
    arrow-up
    33
    ·
    1 year ago

    chown -R root /

    I forget why. I think I was getting some permission issues and thought “I’ll just set all files back to being owned by root and then fix home directories”.

    Turns out a lot of things in /etc aren’t owned by root for a reason…

    • andrefsp@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      This… OMG!

      All started with a docker run -v ... on sub folder on my home directory. The command changed the ownership of some files to root…

      In order to get my permissions back I sudo and tried to run chown -R andrefsp:andrefsp ./* on the folder.

      Thing is… My stupid ass didn’t actually typed ./* but /* instead followed by an angry Enter… It was so fast… So quick… The whole thing was fucked beyond recognition…

      • lud@lemm.ee
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Wouldn’t it be nice if Linux always prompted for confirmation (with red text or something) if you were messing around with / since that’s not something someone does very often.

  • stepanzak@iusearchlinux.fyi
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Two things:

    • About a week ago in school, my friend told me to remove System32. I told him that I don’t have it on Linux and that I’ll show him how to break Linux. I typed rm -fr / --no-preserve-root, but I was really tired that day, and for some reason, I pressed enter. After a second, I did Ctrl+C, and luckily, it was without sudo, but it still deleted many random files on my system that I’ve had access to.
    • Once I wanted to ssh into my Raspberry Pi on the local network and accidentally entered my local ip address and SSHed into my own computer, I was SSHing from. I deleted some config files thinking I’m doing it on the Raspberry, but luckily, I haven’t done any big damage. It could have ended much worse, however, because it took almost two hours of confused screaming until I noticed that I’m, in fact, doing all the stuff on my own computer. Don’t have the same username and password on pc and server, guys.
    • elvith@feddit.de
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      My vicious cycle: Oh no I did ssh into localhost again. Fuck, let’s do some damage control and disable SSH access to my desktop.

      Two days later: ugh, I don’t want to change rooms, I want to do this on my laptop and sit in the living room, but need something from my desktop. Why did I think it was a good idea to disable SSH access…

      Then repeat.

    • Longpork_afficianado@lemmy.nz
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      I had two jetsons that i was using for a project, had one on my desk and one in another office. Started back into some gpio stuff that I’d been working on the last few days and found that i was getting nothing, after about an hour of fucking with configuration trying to determine what had happened, i realised that i had sshed into the wrong one.

      Now i make sure to give descriptive hostnames to every device on my network.

  • tekeous@usenet.lol
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 year ago

    I ran ‘rm -rf ~’ because I fat fingered the ~ instead of the 1 and wiped my home folder

  • wviana@lemmy.eco.br
    link
    fedilink
    arrow-up
    24
    ·
    1 year ago

    This one is from a coworker. He noticed there was a file named ~ inside his home. Decided to delete it. So rm -rf ~.

    • ahal@lemmy.ca
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Am I your coworker? In my case the dir was created by a poorly written Python script. I just banged out the rm -rf from muscle memory without pause.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I did this in my development environment at work! Luckily they take backups every 15 minutes.

    • KISSmyOS@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Creating a file named ~ used to be a prank to teach others not to leave their pc unattended and logged in.

      • robzombie91@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        1 year ago

        Your essentially telling your terminal to delete everything starting at your home directory, folder structure be damned

      • wviana@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        ~ is a “aliás” to your user home directory. If you are anywhere and want to copy something into your documents folder you can do cp file.txt ~/Documents instead of cp file.txt /home/username/Documents

        So by typing rm ~ it actually deleted the /home/username directory instead of the ~ file in it.

        I think rm '~' does delete the file.

  • naonintendois@programming.dev
    link
    fedilink
    arrow-up
    22
    ·
    1 year ago

    I was newish to Linux and had just run rm -rf ./.* to remove all the hidden files/dirs in a directory. I then wanted to run rm -rf ./* to clear the rest, but I accidentally ran rm -rf . /*. By the time I noticed it was taking too long and hit Ctrl+C, it was too late.

  • SRo@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    21
    ·
    1 year ago

    Not really broken but I decided to reinstall but during the process I couldn’t find one of the floppy discs. That was during the mid 90s.