pop-os / default-settings

Distribution Default Settings
Other
44 stars 16 forks source link

pop-default-settings.postinst: line 72: lsb_release: command not found #117

Closed johhnry closed 3 years ago

johhnry commented 3 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="21.04"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.04"
VERSION_ID="21.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

apt policy pop-default-settings                                                              josephhenry@pop-os
pop-default-settings:
  Installed: 5.0.0~1624981545~21.04~38927e0
  Candidate: 5.0.0~1624981545~21.04~38927e0
  Version table:
 *** 5.0.0~1624981545~21.04~38927e0 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
       1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main i386 Packages
        100 /var/lib/dpkg/status

Issue/Bug Description:

I have issues when doing a full upgrade with apt, I have unmet dependencies. Apt suggest me to do apt --fix-broken install but it leads to the following lsb_release error :

Steps to reproduce (if you know):

sudo apt --fix-broken install                                                          100 ↵ josephhenry@pop-os
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gcc-10-base:i386 gnome-shell-extension-alt-tab-raise-first-window gnome-shell-extension-always-show-workspaces
  gnome-shell-extension-pop-shop-details libboost-atomic-dev libboost-atomic1.71.0 libboost-chrono-dev
  libboost-chrono1.71.0 libboost-container-dev libboost-container1.71.0 libboost-context-dev
  libboost-context1.71.0 libboost-coroutine-dev libboost-coroutine1.71.0 libboost-date-time-dev
  libboost-date-time1.71.0 libboost-exception-dev libboost-fiber-dev libboost-fiber1.71.0 libboost-filesystem-dev
  libboost-graph-dev libboost-graph-parallel-dev libboost-graph-parallel1.71.0 libboost-graph1.71.0
  libboost-iostreams-dev libboost-locale-dev libboost-locale1.71.0 libboost-log-dev libboost-log1.71.0
  libboost-math-dev libboost-math1.71.0 libboost-mpi-dev libboost-mpi-python1.71.0 libboost-mpi1.71.0
  libboost-numpy-dev libboost-numpy1.71.0 libboost-program-options-dev libboost-program-options1.71.0
  libboost-random-dev libboost-random1.71.0 libboost-regex-dev libboost-regex1.71.0 libboost-serialization-dev
  libboost-serialization1.71.0 libboost-stacktrace-dev libboost-stacktrace1.71.0 libboost-system-dev
  libboost-system1.71.0 libboost-test-dev libboost-test1.71.0 libboost-thread-dev libboost-thread1.71.0
  libboost-timer-dev libboost-timer1.71.0 libboost-tools-dev libboost-type-erasure-dev libboost-type-erasure1.71.0
  libboost-wave-dev libboost-wave1.71.0 libgles2-mesa-dev libgphoto2-l10n libisl22 libjuh-java libjurt-java
  liblibreoffice-java liborcus-0.15-0 liborcus-parser-0.15-0 libpgm-5.2-0 libphonenumber7 libpython3.8-dev
  libre2-8 libridl-java libsensors4-dev libunoloader-java libwacom-bin mpi-default-bin node-jquery python3.8-dev
  ure-java
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libboost-atomic-dev libboost-chrono-dev libboost-container-dev libboost-container1.74-dev
  libboost-container1.74.0 libboost-context-dev libboost-date-time-dev libboost-dev libboost-exception-dev
  libboost-exception1.74-dev libboost-filesystem-dev libboost-iostreams-dev libboost-iostreams1.74-dev
  libboost-locale-dev libboost-locale1.74-dev libboost-math-dev libboost-math1.74-dev libboost-math1.74.0
  libboost-program-options-dev libboost-program-options1.74-dev libboost-program-options1.74.0 libboost-random-dev
  libboost-random1.74-dev libboost-random1.74.0 libboost-regex-dev libboost-serialization-dev
  libboost-stacktrace-dev libboost-stacktrace1.74-dev libboost-stacktrace1.74.0 libboost-system-dev
  libboost-test-dev libboost-thread-dev libboost-type-erasure-dev libboost-type-erasure1.74-dev
  libboost-type-erasure1.74.0 libboost-wave-dev libboost-wave1.74-dev libboost-wave1.74.0
Suggested packages:
  libboost-doc
The following packages will be REMOVED:
  libboost-container1.71-dev libboost-exception1.71-dev libboost-iostreams1.71-dev libboost-locale1.71-dev
  libboost-math1.71-dev libboost-program-options1.71-dev libboost-random1.71-dev libboost-stacktrace1.71-dev
  libboost-type-erasure1.71-dev libboost-wave1.71-dev
The following NEW packages will be installed:
  libboost-container1.74-dev libboost-container1.74.0 libboost-exception1.74-dev libboost-iostreams1.74-dev
  libboost-locale1.74-dev libboost-math1.74-dev libboost-math1.74.0 libboost-program-options1.74-dev
  libboost-program-options1.74.0 libboost-random1.74-dev libboost-random1.74.0 libboost-stacktrace1.74-dev
  libboost-stacktrace1.74.0 libboost-type-erasure1.74-dev libboost-type-erasure1.74.0 libboost-wave1.74-dev
  libboost-wave1.74.0
The following packages will be upgraded:
  libboost-atomic-dev libboost-chrono-dev libboost-container-dev libboost-context-dev libboost-date-time-dev
  libboost-dev libboost-exception-dev libboost-filesystem-dev libboost-iostreams-dev libboost-locale-dev
  libboost-math-dev libboost-program-options-dev libboost-random-dev libboost-regex-dev libboost-serialization-dev
  libboost-stacktrace-dev libboost-system-dev libboost-test-dev libboost-thread-dev libboost-type-erasure-dev
  libboost-wave-dev
21 upgraded, 17 newly installed, 10 to remove and 971 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5 538 kB of archives.
After this operation, 12,0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
Setting up pop-default-settings (5.0.0~1624981545~21.04~38927e0) ...
/var/lib/dpkg/info/pop-default-settings.postinst: line 72: lsb_release: command not found
dpkg: error processing package pop-default-settings (--configure):
 installed pop-default-settings package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 pop-default-settings
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is also clear when I configure the packages with dpkg :

sudo dpkg --configure -a                                                                                                       100 ↵ josephhenry@pop-os
Setting up pop-default-settings (5.0.0~1624981545~21.04~38927e0) ...
/var/lib/dpkg/info/pop-default-settings.postinst: line 72: lsb_release: command not found
dpkg: error processing package pop-default-settings (--configure):
 installed pop-default-settings package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 pop-default-settings

Expected behavior:

I recently updated to 21.04 but maybe something wrong happened and packages are broken.

Other Notes:

Any help would be greatly appreciated!

johhnry commented 3 years ago

Never mind, it fixed it by changing the first line of the usr/bin/lsb_release file to be #!/usr/bin/python3 -Es...