helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

Locked installer #494

Open karthik-holla opened 1 year ago

karthik-holla commented 1 year ago

I was trying to install Libreoffice and cancelled it in the midle but now the installer is locked forever and it says ' Another installation is still running. ' how can i get out from this ? And now I am not able to install any other apps too.

probonopd commented 1 year ago

cancelled it in the midle

We need to find a way to prevent users from interrupting running installs, as it can lead to situations like this.

Do you still get this after a reboot?

karthik-holla commented 1 year ago

Yes

probonopd commented 1 year ago

https://forums.freebsd.org/threads/pkg-problem.56297/ suggests pkg clean.

karthik-holla commented 1 year ago

pkg clean has no effect on the installer. It is better to kill the app if cancel button is clicked. I feel it is the only way an user can avoid this lock.

On Sun, 2 Jul 2023, 19:45 probonopd, @.***> wrote:

https://forums.freebsd.org/threads/pkg-problem.56297/ suggests pkg clean.

— Reply to this email directly, view it on GitHub https://github.com/helloSystem/ISO/issues/494#issuecomment-1616678540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAHHHXIZONKQFXYZT4RCWLXOF7ANANCNFSM6AAAAAAZYI47Z4 . You are receiving this because you authored the thread.Message ID: @.***>

louies0623 commented 11 months ago

I agree with him, we need to put a cancel button on that thing.

probonopd commented 11 months ago

A running installation should not be interrupted because it can apparently destroy the package database.

Maybe this will help: https://github.com/helloSystem/ISO/commit/e49f2ab121843447b1f71be9c98b07cf2af1e60d

karthik-holla commented 11 months ago

I tried to install from command line using pkg install command, interrupted the process by ctrl+c. Then tried to install the same package, the package installed without any issue.

On Sun, 30 Jul 2023, 11:00 probonopd, @.***> wrote:

A running installation should not be interrupted because it can apparently destroy the package database.

— Reply to this email directly, view it on GitHub https://github.com/helloSystem/ISO/issues/494#issuecomment-1657047368, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAHHHS32FLAFXCAN2WVZPTXSXWPTANCNFSM6AAAAAAZYI47Z4 . You are receiving this because you authored the thread.Message ID: @.***>

louies0623 commented 11 months ago

Users have the right to cancel the installation of the software and uninstall the software, we still have to have something to stop the installation.

If there is a termination during the download process (or if the network is suddenly disconnected for one minute, the user is notified whether to try again, and then the user ends the program), then reverse the installation and remove the downloaded package. Restore the system instead of just shutting down and ending the program,