https://askubuntu.com/questions/938606/dwarf-fortress-starting-during-apt-get-upgrade * Ubuntu * Community * Ask! * Developer * Design * Hardware * Insights * Juju * Shop * More > + Apps + Help + Forum + Launchpad + MAAS + Canonical Skip to main content Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Visit Stack Exchange [ ] Loading... 1. + Tour Start here for a quick overview of the site + Help Center Detailed answers to any questions you might have + Meta Discuss the workings and policies of this site + About Us Learn more about Stack Overflow the company, and our products 2. 3. current community + Ask Ubuntu help chat + Ask Ubuntu Meta your communities Sign up or log in to customize your list. more stack exchange communities company blog 4. 5. Log in 6. Sign up OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more Ask Ubuntu 1. 1. Home 2. Questions 3. Tags 4. 5. Users 6. Jobs New 7. Companies 8. Unanswered 2. Teams [teams-promo] Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Create a free Team 3. Teams 4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. Learn more about Teams Dwarf Fortress starting during apt-get upgrade Ask Question Asked 6 years, 10 months ago Modified 3 years, 11 months ago Viewed 92k times 332 When I run apt-get upgrade on my Ubuntu 17.04 machine, sometimes it starts Dwarf Fortress by itself. It has happened already at least two times, so it was probably not just some sort of one time thing. Also, the execution ofapt-get upgrade seemed to be paused until I manually quit the Dwarf Fortress, so it most probably wasn't caused by something else running in that time. The console at that time said Unpacking xxx. where xxx was something with mysql in name. I don't however know which package exactly, as today, apt-get upgrade upgraded a lot of mysql related packages. I would like to know what happens and how to stop it from happening. * apt * upgrade * package-management * games Share Improve this question Follow edited Jun 8, 2020 at 22:02 Community's user avatar CommunityBot 1 asked Jul 22, 2017 at 5:15 Adrijaned's user avatar AdrijanedAdrijaned 1,71822 gold badges1010 silver badges88 bronze badges 4 * So you're saying that whenever you you ran apt-get upgrade in terminal the games starts? - user692175 Jul 22, 2017 at 5:31 * @MichaelBay not everytime, only when it upgrades somethink. And I can't test if it happens always, because there aren't packages to update now. - Adrijaned Jul 22, 2017 at 8:12 * This DF Hack is a long read and I gave up part way through but maybe it will be useful to you. - WinEunuuchs2Unix Aug 15, 2017 at 1:06 * reddit.com/r/Ubuntu/comments/6tomtk/... - Ciro Santilli OurBigBook.com Aug 15, 2017 at 15:45 Add a comment | 2 Answers 2 Sorted by: Reset to default [Highest score (default) ] 569 +500 With a question as weird as this, it's of course impossible to say for sure -- but I'll eat my hat if my first hunch isn't correct. :) The only way I can think of, how such unrelated things could be linked is this: After installing (well, extracting) Dwarf Fortress, instead of going to the directory every time and running it with ./ df, you wanted to be able to run it from anywhere, like any old command. You added the Dwarf Fortress directory to your $PATH, before the system directories, perhaps by chance, perhaps because you noticed it didn't work otherwise, and you'd instead just get information about your filesystems. Dwarf Fortress's executable is named df, which is also the name of a system tool for displaying disk space usage of your filesystems, creating a collision. By making it so that when you type df, Dwarf Fortress starts, you've shadowed the system tool, so when a script wants to - let's say - check if you have enough free space for unpacking an archive, instead of invoking df - the system tool - it'll start Dwarf Fortress instead. And after you quit Dwarf Fortress, the poor little script will be very confused as to why it wasn't given the disk usage information it asked for. Anyway, thanks for the laugh, this has to be among the funniest problems I've ever seen voiced on StackExchange. :) Share Improve this answer Follow answered Aug 14, 2017 at 17:30 Aleksi Torhamo's user avatar Aleksi TorhamoAleksi Torhamo 2,63611 gold badge99 silver badges66 bronze badges 1 * Comments are not for extended discussion; this conversation has been moved to chat. - Thomas Ward Aug 19, 2017 at 0:02 Add a comment | 66 My hunch is similar to Aleksi's, but I suspect you might have moved the Dwarf Fortress binary to /usr/local/bin or /usr/bin (and hopefully not /bin). Try running sudo which df in your terminal. If it doesn't say /bin/ df, try moving the file specified in the which output to /usr/games/ (you'll be able to run the game in the future by running /usr/games/ df). Apt should work again after that. ====== Otherwise, in the scenario where sudo which df says /bin/df, try running /bin/df. If that has been overwritten with the game, you'll need to move the game binary as mentioned above, and sudo apt-get install --reinstall coreutils. If that fails because df is missing, you may need to resort to more drastic measures (like either creating a fake script to replace df temporarily, or manually downloading the package and extracting the df binary from it). Share Improve this answer Follow edited Sep 11, 2017 at 3:10 edwinksl's user avatar edwinksl 23.8k1616 gold badges7575 silver badges101101 bronze badges answered Aug 15, 2017 at 8:47 maccam94's user avatar maccam94maccam94 66344 silver badges77 bronze badges 5 * 7 It is ironic that a comment by the questioner to the accepted answer confirms that this is what the questioner did, with a symbolic link, rather than modifying PATH as in that answer. - JdeBP Aug 16, 2017 at 11:42 * 2 @JdeBP: Not really, the main point is the naming conflict - I think how that was achieved is secondary, even if I say so myself. I also mentioned this in the comments of the other answer, in response to a comment that suggested the same thing as this answer, but I did originally consider mentioning this as another possibility, until I realized that moving/copying the binary (as opposed to symlinking, which I didn't think about) wouldn't have worked due to the way Dwarf Fortress works. (Ie. it's just extracted, not installed - it wouldn't find its own data files when not in the same directory) - Aleksi Torhamo Aug 16, 2017 at 13:38 * 2 A better command might be sudo which -a df to see all df commands found in the path. - Doug Henderson Aug 16, 2017 at 15:09 * Wait it's 2017 and we use apt-get yet? - EKons Aug 18, 2017 at 9:37 * @AleksiTorhamo Just to clarify, the PATH variable that apt would see is overridden by the sudo command (/etc/sudoers has a secure_path variable to prevent security issues with users modifying their PATH). I agree that realizing that the Dwarf Fortress binary is taking precedence in the PATH resolution is the key insight though. - maccam94 Jan 18, 2018 at 2:50 Add a comment | You must log in to answer this question. Not the answer you're looking for? Browse other questions tagged * apt * upgrade * package-management * games . * The Overflow Blog * Spreading the gospel of Python * OverflowAI and the holy grail of search * Featured on Meta * Our Partnership with OpenAI * What deliverables would you like to see out of a working group? Related 0 Can't run Dwarf Fortress 0 Have to use -o Acquire::ForceIPv4=true to do apt-get update/upgrade 0 Tried to upgrade my 14.04 and it has all gone horribly wrong 3 Apt-get install fails, can't find this error message anywhere 4 Did I answer the grub question during apt-get upgrade correctly? 8 apt-get relocation error after upgrade to 16.04 0 Updating ubuntu 18.04 broke ingame fonts (terraria) Hot Network Questions * Leetcode: Number of Islands - BFS (Queue vs Recursion) * Exclude certain filename suffixes when searching using glob qualifiers * Changing output size from a model * Why do we want to normalize the solar abundance of elements to Si? * Logarithms properties, continuity and circular reasoning * printf in Zsh does not shell escape exclamation mark * How does this ramp generator circuit work? * How to protect a country with no army, no police, no guards, no military authority? * Classifying finite groups where order is multiplicative on elements with coprime orders * Did ROM chips jump from 8K to 32K? * Series Solution of Laplace Equation in Spherical Coordinates * How many Friends are there in the circle? * What would military spies in 17th century Europe be looking for inside a city, before a siege? * How will hitting the gym trigger the effect of the drug? * How much does one American Airline frequent flier mile equal in US$? * Started new role in company, coworker believes they are my boss but they are not * Looking for a book I read in the '70s, post-apocalypse/ underground bunker * Is it considered cheating to use answers I remember from videos I studied? * Is a PhD program the stage at which you define and carve out your own research niche? * How can you generate a "not conditional independence" symbol with lualatex? * Movie in which the couple figurine atop a wedding cake doubles as a voodoo doll * Law of the unconscious statistician for conditional expectation and pushforward measure of conditional distribution * Weirdness From Boiling Gold Colloid Dry * Is this a school badge? more hot questions Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. [https://askubuntu.co] * Ask Ubuntu * Tour * Help * Chat * Contact * Feedback Company * Stack Overflow * Teams * Advertising * Collectives * Talent * About * Press * Legal * Privacy Policy * Terms of Service * Cookie Settings * Cookie Policy Stack Exchange Network * Technology * Culture & recreation * Life & arts * Science * Professional * Business * API * Data * Blog * Facebook * Twitter * LinkedIn * Instagram Site design / logo (c) 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA. rev 2024.5.17.9350 Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.