I have tried, unsuccessfully, to get various AI models to create a script that will curl or wget the latest Ubuntu LTS desktop torrent, even should that LTS version update in the future (beyond 24.01.1 LTS). The purpose is that I would like to seed whatever the latest LTS torrent is and I don’t want to have to keep checking the Ubuntu page for updates, I want it automatic. I know that LTS is slow to change versions but I am annoyed that AI can’t just write a decent script for this.

I also have downloaded rtorrent as a command line and will deal with how to make sure the latest LTS is used, as opposed to the prior one, with a different script later, but that’s not what I’m trying to now.

I am not asking for a human to create this script for me. I am asking why AI models keep getting this so wrong. I’ve tried ChatGPT 4o, I’ve tried DeepSeek, I’ve tried other localized models, Reasoning Models. They all fail. And when I execute their code, and I get errors and show it to the models, they still fail, many times in a row. I want to ask Lemmy if getting an answer is theoretically possible with the right prompt or if AI just sucks at coding.

This shouldn’t be too hard to do. At https://www.releases.ubuntu.com/, they list the releases. When curling the webpage, there’s a list of the releases with version numbers some with LTS. New versions are always larger numbers. At https://ubuntu.com/download/alternative-downloads, they list the torrents. Also, all release torrents for desktop are in the format https://www.releases.ubuntu.com/XX.XX/*desktop*.torrent. I’ve tried to teach these models this shit and to just create a script for me, holy shit it’s been annoying. The models are incredibly stupid with scripting.

I’m not a computer programmer or developer and am picking up more coding here and there just because I want to do certain things in linux. But I just don’t understand why this is so difficult.

So my question is, is there ANY prompt for ANY model that will output successful code for this seemingly easy task, or is AI still too stupid to do this?

  • secretlyaddictedtolinux@lemmy.worldOP
    link
    fedilink
    arrow-up
    5
    arrow-down
    17
    ·
    edit-2
    1 day ago

    man bash is over 64,000 lines. we may also have different IQs, mine more suitable to asking profound philosophical questions to DeepSeek R1 (see https://lemmy.world/post/24838347 for example) and yours more suitable to learning bash scripting through electro-osmosis

    for everyone downvoting me, i have tried to get better at linux! don’t think of me as a lazy linux user, think of me as among the best windows users who switched to linux

    • over_clox@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 day ago

      You don’t have to learn every command all at once, just hone in on the basic things you need to start with.

      Besides, Bash scripting is basically just taking the commands you’d manually type into the terminal and putting them together into a script file.

      So, learn just enough terminal commands to manually accomplish your goal first, then copy/paste those commands into a text file, and you’re already ¾ of the way there.

      https://www.freecodecamp.org/news/shell-scripting-crash-course-how-to-write-bash-scripts-in-linux/

    • hddsx@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      You’re basically asking Clippy how to use Microsoft Excel to create a Microsoft Word document.

      Someone is telling you that Microsoft Word is the tool you are looking for and you are saying “but I don’t want to decompile word to learn how it works”.

      As a user of Microsoft Windows 11 by no choice of my own, can I ask how you qualified to be the best of the windows users?