Tinkering is all fun and games, until it’s 4 am, your vision is blurry, and thinking straight becomes a non-option, or perhaps you just get overly confident, type something and press enter before considering the consequences of the command you’re about to execute… And then all you have is a kernel panic and one thought bouncing in your head: “damn, what did I expect to happen?”.

Off the top of my head I remember 2 of those. Both happened a while ago, so I don’t remember all the details, unfortunately.

For the warmup, removing PAM. I was trying to convert my artix install to a regular arch without reinstalling everything. Should be kinda simple: change repos, install systemd, uninstall dinit and it’s units, profit. Yet after doing just that I was left with some PAM errors… So, I Rdd-ed libpam instead of just using --overwrite. Needless to say, I had to search for live usb yet again.

And the one at least I find quite funny. After about a year of using arch I was considering myself a confident enough user, and it so happened that I wanted to install smth that was packaged for debian. A reasonable person would, perhaps, write a pkgbuild that would unpack the .deb and install it’s contents properly along with all the necessary dependencies. But not me, I installed dpkg. The package refused to either work or install complaining that the version of glibc was incorrect… So, I installed glibc from Debian’s repos. After a few seconds my poor PC probably spent staring in disbelief at the sheer stupidity of the meatbag behind the keyboard, I was met with a reboot, a kernel panic, and a need to find another PC to flash an archiso to a flash drive ('cause ofc I didn’t have one at the time).

Anyways, what are your stories?

  • ReallyZen@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    Generated my grub configuration as grub.conf

    This one took a stupid amount of time to debug - but on the other hand, when grub failed it did with “can’t find any bootable thingy” and not “missing configuration file” as, in my later opinion, it should.

    Life Linux is a harsh mistresses, sometimes.

  • papertowels@lemmy.one
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Not strictly Linux related, but in college I was an IT assistant. One day I was given a stack of drives to run through dariks boot and nuke.

    I don’t remember exactly what happened, but I think midway through, my laptop shut off.

    Guess who picked the wrong drive to wipe with DBAN :)

  • StorageAware@lemmings.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    It was only in a container on a Chromebook, but I’ll share it anyway. One time, I had installed Android Studio but found it mildly annoying that I got a line when using apt about Android Studio and some error on a certain line of this one file. I believe the file was something related to dpkg, and after changing some things within the file, I seemed to have broken apt. Luckily, I had a backup, but it was a few days old, so I had to reinstall some apps.

  • Lightfire228@pawb.social
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I recently broke the networking stack by uninstalling ca-certificates

    I was using a slightly risky command to delete unneeded packages, and for some reason ca-certificates was on the list

    At least the fix was simple. Boot the rescue iso and reinstall them

  • stinerman [Ohio]@midwest.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    I’ve literally done the rm -rf / thing. I thought I was in a different subdirectory, but I was in / and did rm -rf .

    When it didn’t return after half a second, I looked at the command again and hit CTRL+C about 20 times in the span of 3 seconds.

    I had to rebuild the install, but luckily didn’t lose anything in /home.

  • exocortex@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Oh, i have a brilliant one:

    A few years ago i spent a lot of time converting .flac-files into .ogg-files in order to put on my oldschool iPod. As I did a lot of repetitive typing - entering $dir / for file in flac ; do convert etc / mkdir -p $somewhere/$artist/$album / mv $somewhere/.ogg->$new_dir/ and so on - I thought: “hm lets just write a loop over loops for all the artists here and then all the albums and at the same time create the nested directories somewhere else… hm actually in the home directory… and later love everything on the iPod at once.”

    so i was in my music folder with the artists-folders i wanted to convert. i did something wrong

    So i did my complicated script directly in the shell. I made something wrong and instead of creating a folder “~/artist/album” I created 3 folders in my current working directory: “~”, “artist” and “album”. hmph dammit gotta try again… but first : i have to clean up these useless folders in the current dir. so i type of course this: "$ rm -r ~ artist album " after about 5 seconds of wondering why it took so long i realized my error. o_O I stopped the running command, but it was (of course) too late and i bricked my current installation. All the half-deleted config files made or impossible to start normally and extremely tedious to repair it by hand, so i reinstalled.

  • kingthrillgore@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    I had rEFInd and GRUB installed entirely by accident, and a botched update for Arch hosed my entire EFI setup making it impossible to boot Linux or Windows w/o a LiveCD. Thankfully it self repaired once I nuked rEFInd. I ended up going back to Ubuntu, but I hate snaps. I still would recommend Arch for most Linux users who want the power windows.

  • dosse91@lemmy.trippy.pizza
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Before I understood how to properly build and test mesa (graphics driver), I compiled it and then procedeed to manually symlink the files in the lib and lib32 directories. When I pressed enter on that ln command, the UI immediately crashed and X would no longer start after rebooting the computer. Reinstalling mesa from a virtual terminal wouldn’t fix it so I just reinstalled the system. Good times :)

  • Tarogar@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I suppose it doesn’t quite qualify as breaking the system in a funny or stupid way but it certainly was one of those stupid things that was easy to fix after a ton of trouble shooting, ignoring the issue for a while and trying to fix it again.

    So i had an old pc where I had a failed hard drive which I replaced. Obviously I also accidentally unplugged my optical disc drive and plugged it back in. Now that failed drive was just a data drive so the system should have booted up no problem since the os was on a SSD but instead it got a kernel panic and got stuck at boot. Since it was late I left it at that and came back to that the next day where it would still not boot. So I unplugged the disc drive and looked up what it could be. Tried a ton of different possible solutions but every time I added that disc drive it would panic.

    I eventually kind of gave up and just didn’t use that disc drive at all and just had it as a paperweight in the system. Unplugged and all that. When my replacement SSDs for my old data drive and backup drive came in I tried again to get that optical drive working but to no avail. So I unplugged it again, got it all set up and ran into another issue where for some reason Linux couldn’t properly use my backup SSD. So I investigated that as well and trough some miracle found a post on the forum from my Mainboard manufacturer… Turns out that particular Mainboard had a data retention chip on it that didn’t like Linux.

    So naturally I just plugged everything into the data ports that were not controlled by that chip and it all worked as intended.

    Stupid dumb chip on a Mainboard, all I had to do was try the simple idea of unplugging and trying a different connector but instead I did all that other stuff first that didn’t work and cost me so much of my time.

    Moral of the story, when in doubt try and put stuff on different connectors and see if that fixes it. Might just be a dead connector for all you know. Or an incompatible chip on the Mainboard.

    FWIW I bought that Mainboard long before I switched to Linux and didn’t plan at all to switch at the time. But that’s a different story.

  • drathvedro@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Actually, I have a story that I’d consider an achievement even though it was extremely stupid and by all accounts should’ve bricked the system but didnt.

    So I was on windows and wanted to install linux as a dual-boot on the main drive. The problem was that my mobo didnt like this particular and the only flash drive I’ve had, dropping it out mid-boot, before I got any usable terminal, so a usual install method wasn’t an option. So I had this crazy idea to start a vmware vm in windows and pass the linux iso and the boot drive directly to it and try to install it live over the running system. Unfortunately, vmware guys thought of this and there’s a check that disallows passing the boot drive to vms. So i created a bunch of .vmdks for another drive and fiddled with them in notepad until I somehow managed to trick vmware and at some point it started booting the same windows copy that I was sitting on. I quickly powered it off, added the linux iso and proceeded to install like I usually would. It did involve some partition shuffling, but, somehow, it went smoothly, linux installed, grub caught on, and even windows somehow survived, even though it was physically moved around on the disk. It serms that vmware later patched this out, because later in an attempt to re-create the trick of running the same copy of windows twice, but after updates to both windows and vmware, I was met with the same old error that boot drive is not allowed when trying to add that same virtual drive I had laying around.

    • fl42v@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Allrighty, now we officially need a program (I’m hesitant to call it malware since technically it’s for the user’s good XD) that covertly replaces a running copy of windows with linux… Besides, I think it was possible before to install stuff like Ubuntu directly from windows?

    • JATtho@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      I had a similar debacle, when I managed to corrupt a btrfs file system to point it wouldn’t mount again…

      I was preparing it to have as my main system on bare hardware. I had accidentally mounted the same block device simultaneously in the host and guest: kablamo silent corruption and all 5 hours of progress lost.* :(

      *shred the guest VM, host was ok.

  • ArmainAP@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Somehow I found ways to remove and break the GUI multiple times in multiple ways in multiple distros.

    Different scenarios, different times, different issues trying to “fix”. My usual fix after this was always to copy what I think I still had important and then move on with a reinstall.

    Recently I have been playing with ZorinOS and broke it in the same way by fidgeting with pipewire. Distro hoped to Fedora Silverblue due to the immutable filesystem. I wonder if I will break this one in a way I cannot revert it easily with rpm-ostree. I almost feel challenged.

  • HotChickenFeet@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    Installed python3 before it was made the native python on the dist. Half broke everything, including apt & python. So I uninstalled it, and then everything was broken. Finally got python3 reinstalled, and lived with it kindof working & awful distribution updates.

    I have finally freed myself of that prison last month, by nuking everything and starting fresh.

    • martinb@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      You can have both python 2 and 3 on the system. It just depends upon which is the default as to how much you break it 👍 The symlink to /usr/bin/python is the important bit for most software. For deb-based at least, update-alternative is your friend.

      • HotChickenFeet@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        I’ll happily say I must have overlooked something, but I did try using update-alternatives. I don’t remember all the nuts and bolts from the start, but it involves python3 and distribution upgrades. I spent a good number of nights over the years trying to unmess it up, and am happy to never think about it ever again.

        • thedevisinthedetails@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          There was definitely a time when python3 was not recommended and plenty of scripts weren’t yet differentiating between the two. Everything was breaking back then.

  • marionberrycore@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    About a year ago I somehow fucked up installing a new window manager on my tablet so badly I had to start from scratch - to this day I have no idea what happened there, but it just wouldn’t boot properly or anything after that 🤷 I needed it for school pretty quickly though so my top priority was getting it working again, so I set up a fresh install instead of continuing to fuck around.

    Not the same level of destruction, but I fucked up my first ever install a couple months in trying to resolve dependencies related to python and wine, which is why I’m more interested in sandboxing whenever feasible these days. After only two months I guess I had been fucking around with linux long enough to have a little too much unearned confidence, lol