cdp1337 / ARKSurvivalAscended-Linux

GNU Affero General Public License v3.0
39 stars 7 forks source link

steamcmd install repo #9

Open NeuralSpaz opened 10 months ago

NeuralSpaz commented 10 months ago

Describe the bug install script fails due to not finding a valid steamcmd candidate.

To Reproduce Steps to reproduce the behavior:

  1. Run script. sudo ./server-install-debian12.sh
  2. 
    Reading package lists... Done
    Hit:1 http://mirror.aarnet.edu.au/debian bookworm InRelease
    Hit:2 http://mirror.aarnet.edu.au/debian bookworm-updates InRelease               
    Hit:3 http://security.debian.org/debian-security bookworm-security InRelease      
    Get:4 http://repo.steampowered.com/steam stable InRelease [2,861 B]
    Get:5 http://repo.steampowered.com/steam stable/steam amd64 Packages [1,153 B]
    Get:6 http://repo.steampowered.com/steam stable/steam i386 Packages [1,344 B]
    Fetched 5,358 B in 2s (2,712 B/s)     
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    2 packages can be upgraded. Run 'apt list --upgradable' to see them.
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Package steamcmd is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

E: Package 'steamcmd' has no installation candidate ... sudo: /usr/games/steamcmd: command not found Unable to guess where Steam is installed.


**Expected behavior**
expected to install steamcmd but fails

**Additional context**
workaround by adding in the debain non-free repos: eg 

deb YOURMIRROR bookworm non-free-firmware contrib main non-free deb-src YOURMIRROR bookworm non-free-firmware contrib main non-free

cdp1337 commented 10 months ago

I'm looking for 'debian.org' in the repo list, but that should have been caught in the else and added the fallback mirror. I'll look into this and will get a fix published in the next day or so.

Thanks for letting me know!

NeuralSpaz commented 9 months ago

I see that now, I'm using a local mirror which is why it was missed. maybe best to fail there if it doesn't get a hit on debian.org? and echo a helpful message.

side note. love the work.