Tag Archives: status 1

[problem solving] the problem of err returned non zero status 1 or status 2 is solved after upgrading python3 in Ubuntu

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)