I’m pretty sure your successful install log (which you got by manually entering the command) is what I saw scroll by when I used the warehouse on my end. There was definitely a lot of output, and references to each package as it installed them. I’m assuming after doing that it worked via the warehouse too, since it could find the main program to run (just checking)?
Your video is helpful (but strange!) It seems like it was failing at different points each time you tried. I downloaded your video and loaded it up in avidemux on my desktop, so I could step through frame by frame in the hopes of seeing what was on the screen right before it quit/crashed and went back to the DEOT launcher.
First try:
The message at the bottom that is faded is the best I could get. All I can read (kind of guessing to) is the the last few lines:
??? [URL for the repository?]
??? is required
??? Updating for this rep
ository will not be applied.
So it seems like it is maybe some kind of dependency issue or conflict with something already installed, or maybe you need something that isn’t installed automatically? The truly bizarre thing is that it worked when you ran it manually. And it’s the same command!
Ok, try # 2 in the video:
Looks like the same message, and the first line is brighter, but it’s blurry and I can’t read much more than before. But I’ll add to the other one:
??? [URL for the repository?]
??? is required
??invalid since 14h 29min 21s), Updating for this rep
ository will not be applied.
Try #3 (last one):
At least those last lines are brighter this time, and I can make out a bit more:
?? Release file ??? http://mirrors.tuna.tsinghua.edu
.cn/debian/distro/stable-???/??? is required
(invalid since 14h 29min 21s), Updating for this rep
ository will not be applied.
Although I’ve used apt-get in the past, I’m not really sure what’s going on here and why it works when you run the command but it doesn’t work when the script ran the command. Is it possible the repository itself changed or files weren’t available when you used the warehouse, but then it was back online when you ran the command via SSH? If anyone else has ideas, I’m curious what was going on here.
In other news, I did a bit of poking around to see what kind of commands are available to discover if a package is installed. I’m thinking I should use dpkg-query like this.
dpkg-query -W -f=‘${Status} ${Version}\n’ uqm uqm-content uqm-music uqm-voice
which produces (for me):
install ok installed 0.6.2.dfsg-9.5
install ok installed 0.6.0+deb1-6
install ok installed 0.6.0+deb1-6
install ok installed 0.6.0+deb1-6
In the script I’m thinking I could just run it for each package, check for the “install ok” at the start of the line, and if it’s not found then install that package. If I broke out the four Ur-Quan Masters packages like that, then hopefully it would better ensure all four were installed before it tries to run the game. And if this works, I should probably go back and do this for all the other “apt Games” in my warehouse since it would be better doing what I was trying to do in the first place, rather than just checking to see if the game executable was installed.
Also, I’m thinking I should see about finding a way to dump output shown on the screen to a log file too. I need to brush up on redirecting output. That could come in handy for debugging. In this case it would have saved you having to make the video, and me trying to play detective with frame by frame screenshots on it. We could have just looked in the log file that contained everything that was shown quickly on the screen!
I still don’t know what’s going on with your warehouse attempts on UQM though. But it does start properly after you’ve installed it manually, right? And the Gameshell buttons work in game, etc.?
One other thought – could you show the contents of your /etc/apt/sources.list
?
Mine looks like:
# deb http://mirrors.tuna.tsinghua.edu.cn/debian/ stable main
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ stable main contrib non-free
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ stable main
deb Index of /debian-security/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror stable/updates main
deb-src Index of /debian-security/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror stable/updates main
# stable-updates, previously known as ‘volatile’
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ stable-updates main
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ stable-updates main
The only thing the script should be changing is adding “non-free” to the end of that line up top.