Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop!_OS Post-Installation script failure // Method 1 Install [FIX INCLUDED] #36

Open
FroggMaster opened this issue May 2, 2020 · 2 comments

Comments

@FroggMaster
Copy link

FroggMaster commented May 2, 2020

Encountered the following error when installing on Pop!_OS

Error:
Error while installing package: installed logigsk package post-installation script subprocess returned error exit status 1

Steps I took to fix this:

  • Manually created folder /etc/pm/sleep.d as it did not exist.
  • Edited /var/lib/dpkg/info/logigsk.postinst and changed :0 to :1 as on Pop!_OS the default display is :1 instead of :0
  • Ran dpkg --configure logigsk
  • Install was successful

I'd suggest performing an OS check in the Post Install Script

Check4Pop=`cat /etc/os-release|grep -m 1 -o "Pop\!_OS"`
if [ "$Check4Pop" == "Pop!_OS" ]; 
then
    USER=`who | grep ':1' | grep -o '^\w*' | head -n1`
else
    USER=`who | grep ':0' | grep -o '^\w*' | head -n1`
fi

@FroggMaster
Copy link
Author

This is the same for any Ubuntu Install after 18.04.
This check could be easily adjusted for Ubuntu or any other required distro.

@MartinMontanari
Copy link

I'm using PopOs 20.04 and it's working fine, I just ran sudo. / INSTALL like the documentation said and the magic was done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants