deragon / autopoweroff

Manage automatic poweroff and other actions (suspend / custom) when specific conditions are reunited.
GNU General Public License v2.0
52 stars 7 forks source link

Installing .deb fails #20

Closed joesgarage closed 3 years ago

joesgarage commented 3 years ago

When installing from the download folder, the popup box displays: "Unable to install autopweroff-gui: The following packages have unmet dependencies: " but it doesn't list what the are.

Ubuntu 20.04.2 LTS

deragon commented 3 years ago

You need to install autopoweroff first, the server. The GUI depends on the server. Let me know if that worked for you.

Sorry for the late response.

joesgarage commented 3 years ago

I cannot get this to install. I dont have a lot of experience with Linux, see my try below: I still get an error. I'm following the install instructions on the github page.

joe:~/Downloads$ sudo dpkg -i autopoweroff*.deb Selecting previously unselected package autopoweroff-gui. (Reading database ... 189737 files and directories currently installed.) Preparing to unpack autopoweroff-gui_4.0.0_all.deb ... Unpacking autopoweroff-gui (4.0.0) ... dpkg: dependency problems prevent configuration of autopoweroff-gui: autopoweroff-gui depends on autopoweroff; however: Package autopoweroff is not installed.

dpkg: error processing package autopoweroff-gui (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... Processing triggers for mime-support (3.64ubuntu1) ... Errors were encountered while processing: autopoweroff-gui

deragon commented 3 years ago

Do it in two steps:

dpkg -i autopoweroff_4.0.0_all.deb

Then:

autopoweroff-gui_4.0.0_all.deb

I think what is happening is that dpkg attempts to install the gui before the server, thus it fails. It is not smart enough to realize that the next package is the server and it should start with it first. :(

joesgarage commented 3 years ago

SO,, should the second command line look like: sudo dpkg -i autopoweroff_4.0.0_all.deb ?? or sudo autopoweroff_4.0.0_all.deb

again, I'm sorry, I'm not experienced in linux, just trying to use this program. Thank you for being patient with me,.

deragon commented 3 years ago

Sorry for the long delays; very busy these days.

Try: sudo apt install autopoweroff*.deb

I noticed that in the documentation, it suggest dpkg. If you confirm that the command above works, I will fix the documentation.

deragon commented 3 years ago

Documentation fixed with commit https://github.com/deragon/autopoweroff/commit/0c55afe5707bf94d65d8f6e54e88bda18bbf805a. Since I have not received any feedback from @joesgarage, I am making the assumption that this issue has been resolved.