Problem scenario
ubuntn originally has Python 3.5. Now, after upgrading and installing Python 3.7, the following problems appear in multiple scenarios:
problem 1 status 1
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Question 2 status 2
returned non-zero exit status 2.
resolvent
# Find the lsb_release file first, you may need to add sudo
find/-name lsb_release
# Delete when found
rm -rf /usr/bin/lsb_release
Attachment:
I refer to the process notes of upgrading python3.7.1 under Ubuntu (recommended)
Read More:
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- subprocess installed post-installation script returned error exit status 1
- C++ Compile Error: ld returned 1 exit status [How to Solve]
- Firewall Status View Error: service iptables status [How to Solve]
- [Solved] Nvml compilation official use case error: collect2: error: ld returned 1 exit status
- Ubuntu sub process/usr/bin/dpkg returned an error code (1) solution
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- [Solved] libgit2 returned: the index is locked; this might be due to a concurrent or crashed process
- [Solved] ERROR: Command errored out with exit status 128: git clone -q
- See system logs and ‘systemctl status docker.service‘ for details
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] Apex Install Error: ERROR: Command errored out with exit status 1
- [Solved] ERROR: Linux route delete command failed: external program exited with error status: 2
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- Ubuntu update source error: E: Problem executing scripts APT::Update::Post-Invoke-Success…
- When installing software in Ubuntu, it prompts: E: You don’t have enough free space in /var/cache/apt/archives/.
- The upgrade of Ubuntu results in an error in the compilation of Android Jack [Two Method to Solve]
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)