mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #1941] Fedora 27 - Unable to install missing dependencies. #1528
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#1528
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0mnyx on GitHub (Jul 19, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1941
Originally assigned to: @dgibbs64 on GitHub.
From the original Steam post I made:
I also can't get further games to install because it attempts to install from repositories using apt.
@dgibbs64 commented on GitHub (Jul 20, 2018):
The latest update did a lot of work on dependencies. Please could this be re-tested to identify if there are specific issues remaining
@dgibbs64 commented on GitHub (Jul 21, 2018):
Duplicate of #1540
@0mnyx commented on GitHub (Jul 22, 2018):
Now things are even worse; with the same distro and game:
It's still telling me to use
aptand is trying to run it. SteamCMD itself also runs just fine.@dgibbs64 commented on GitHub (Jul 22, 2018):
Something has gone very wrong here. I will re-address this
@dgibbs64 commented on GitHub (Jul 22, 2018):
found a bug with Minecraft and have resolved it. I will check starbound now
@dgibbs64 commented on GitHub (Jul 22, 2018):
just tested the starbound bug on Fedora and it is working correctly. have you updated lgsm?
@UltimateByte commented on GitHub (Jul 22, 2018):
Tested Fedora 28, cannot reproduce the issue where apt is detected instead of yum/dnf.
https://hastebin.com/hosidaxefa
Though for Minecraft at least, I got these missing packages which are incorrect
SteamCMD is not used for Minecraft, so this is a bug. Also, I am unable to install these packages under Fedora.
@UltimateByte commented on GitHub (Jul 22, 2018):
Possible fix:
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/check_deps.sh#L143-L145
Replace:
With
Edit: Tested working, now would be best to remove these deps when not required.
@UltimateByte commented on GitHub (Jul 22, 2018):
@CEFinkelstein To me it looks like there is more than LinuxGSM failing going on on your machine.
By any means, do you have apt installed?
What's the output of this ?
Also, you can try
dnf clean packages, might help.@dgibbs64 commented on GitHub (Jul 23, 2018):
https://github.com/GameServerManagers/LinuxGSM/tree/hotfix/fd-dependecies-1941
@dgibbs64 commented on GitHub (Jul 23, 2018):
Agree with your fix @UltimateByte please can you add it to the
fd-dependecies-1941branch@UltimateByte commented on GitHub (Jul 23, 2018):
Done.
Did it the other way around (check appid first).
https://github.com/GameServerManagers/LinuxGSM/blob/hotfix/fd-dependecies-1941/lgsm/functions/check_deps.sh#L143-L148
@0mnyx commented on GitHub (Jul 23, 2018):
It works perfectly fine on a VM with the same distro, so the issue is my machine.
For the record, however:
@UltimateByte commented on GitHub (Jul 24, 2018):
So your issue comes from the presence of
dpkgon a RedHat distro which is nonsense.LinuxGSM uses the presence of
dpkgto check for some requirements, assuming nobody would have it on a non Debian based distro.Here: https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/check_deps.sh#L121
This line is executed in
fn_deps_detectorwhich is executed infn_check_loopwhich is executed in bothfn_deps_build_debianandfn_deps_build_redhat, therefore, if a RedHat distro has dpkg, it implies this issue.I think we can rework these loops to make more sense by seeking for the most appropriate package manager installed depending on the distro, then running loops. Though, the bug here is caused by user installing a Debian based package manager on a RedHat distro which basically should never happen on a properly managed machine, so I don't think there is any emergency to address cases where
apt/dpkgare installed on RedHat based distro.We can also probably improve the distro detection process as well, the current one seems like a patched up process that could use some rework.
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_distro.sh#L22-L62
@dgibbs64
In the end, in the long run, I think we should add a package manager detection in
info_distro.sh, then select the best package manager depending on which are detected and which distro is installed, but warn the user if multiple are found (and keep warning if packages cannot be checked), then finally use the package manager to proceed thecheck_deps.shscript.Also, the fix I just made is kind of critical for RedHat based distros and should be released as a hotfix ASAP, so I will PR.
@0mnyx commented on GitHub (Jul 24, 2018):
Ran
dnf remove dpkgon the problematic machine and everything's fixed. Thanks for your insight!@UltimateByte commented on GitHub (Jul 26, 2018):
I can confirm that Fedora is now fixed.
(but hastebin's website, and so postdetails is broken at the moment, so here is a pastebin)
https://pastebin.com/raw/5JdwuYCd
@lock[bot] commented on GitHub (Jul 26, 2019):
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.