Skip to content

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

Description

@FroggMaster

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions