pi@OctoPrint:~$ sed -i 's/python-dev/python2-dev/g' ~/klipper/scripts/install-ubuntu-18.04.sh pi@OctoPrint:~$ ./klipper/scripts/install-ubuntu-18.04.sh ###### Running apt-get update... [sudo] password for pi: Hit:1 http://ca.archive.ubuntu.com/ubuntu jammy InRelease Get:2 https://dl.google.com/linux/chrome/deb stable InRelease [1,811 B] Get:3 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB] Get:4 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,076 B] Get:5 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB] Get:6 http://ca.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [92.9 kB] Get:7 http://ca.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [246 kB] Get:8 http://ca.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B] Get:9 http://ca.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [6,752 B] Get:10 http://ca.archive.ubuntu.com/ubuntu jammy-backports/universe i386 Packages [5,200 B] Get:11 http://ca.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12.6 kB] Get:12 http://ca.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [352 B] Get:13 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [13.0 kB] Get:15 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [12.1 kB] Fetched 717 kB in 6s (127 kB/s) Reading package lists... Done ###### Installing packages... Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0' Note, selecting 'libusb-1.0-doc' for regex 'libusb-1.0' Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0' build-essential is already the newest version (12.9ubuntu3). libffi-dev is already the newest version (3.4.2-4). libncurses-dev is already the newest version (6.3-2). libusb-dev is already the newest version (2:0.1.12-32build3). avr-libc is already the newest version (1:2.0.0+Atmel3.6.2-3). avrdude is already the newest version (6.3-20171130+svn1429-2). binutils-arm-none-eabi is already the newest version (2.38-3ubuntu1+15build1). binutils-avr is already the newest version (2.26.20160125+Atmel3.6.2-4). gcc-arm-none-eabi is already the newest version (15:10.3-2021.07-4). gcc-avr is already the newest version (1:5.4.0+Atmel3.6.2-3). libnewlib-arm-none-eabi is already the newest version (3.3.0-1.3). stm32flash is already the newest version (0.5+git20200914+2b0f078-1). virtualenv is already the newest version (20.13.0+ds-2). libusb-1.0-0 is already the newest version (2:1.0.25-1ubuntu2). libusb-1.0-0-dev is already the newest version (2:1.0.25-1ubuntu2). libusb-1.0-doc is already the newest version (2:1.0.25-1ubuntu2). The following packages were automatically installed and are no longer required: libc6-dev:i386 libcrypt-dev:i386 libexpat1:i386 libexpat1-dev:i386 libffi8:i386 libnsl-dev:i386 libpython2-dev:i386 libpython2-stdlib:i386 libpython2.7:i386 libpython2.7-dev:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386 libreadline8:i386 libsqlite3-0:i386 libtirpc-dev:i386 linux-libc-dev:i386 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: python2.7-dev The following NEW packages will be installed: python2-dev python2.7-dev 0 upgraded, 2 newly installed, 0 to remove and 35 not upgraded. Need to get 287 kB of archives. After this operation, 316 kB of additional disk space will be used. Get:1 http://ca.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python2.7-dev amd64 2.7.18-13ubuntu1.1 [286 kB] Get:2 http://ca.archive.ubuntu.com/ubuntu jammy/universe amd64 python2-dev amd64 2.7.18-3 [1,064 B] Fetched 287 kB in 2s (142 kB/s) Selecting previously unselected package python2.7-dev. (Reading database ... 220764 files and directories currently installed.) Preparing to unpack .../python2.7-dev_2.7.18-13ubuntu1.1_amd64.deb ... Unpacking python2.7-dev (2.7.18-13ubuntu1.1) ... Selecting previously unselected package python2-dev. Preparing to unpack .../python2-dev_2.7.18-3_amd64.deb ... Unpacking python2-dev (2.7.18-3) ... Setting up python2.7-dev (2.7.18-13ubuntu1.1) ... Setting up python2-dev (2.7.18-3) ... Processing triggers for man-db (2.10.2-1) ... ###### Updating python virtual environment... fail Traceback (most recent call last): File "/usr/lib/python3/dist-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 84, in _get result = get_wheel( File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/acquire.py", line 26, in get_wheel wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env) File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 13, in from_bundle wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version) File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/bundle.py", line 33, in load_embed_wheel wheel = get_embed_wheel(distribution, for_py_version) File "/usr/lib/python3/dist-packages/virtualenv/seed/wheels/embed/__init__.py", line 77, in get_embed_wheel raise Exception(( Exception: Wheel for setuptools for Python 2.7 is unavailable. apt install python2-setuptools-whl setuptools-44.1.1-py2.py3-none-any.whl already present in /home/pi/.local/share/virtualenv/wheel/2.7/embed/3/setuptools.json created virtual environment CPython2.7.18.final.0-32 in 2606ms creator CPython2Posix(dest=/home/pi/klippy-env, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/pi/.local/share/virtualenv) added seed packages: pip==20.3.4, setuptools==44.1.1, wheel==0.37.1 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting cffi==1.14.6 Downloading cffi-1.14.6-cp27-cp27mu-manylinux1_x86_64.whl (389 kB) |████████████████████████████████| 389 kB 80 kB/s Collecting pyserial==3.4 Using cached pyserial-3.4-py2.py3-none-any.whl (193 kB) Collecting greenlet==1.1.2 Downloading greenlet-1.1.2-cp27-cp27mu-manylinux2010_x86_64.whl (154 kB) |████████████████████████████████| 154 kB 82 kB/s Collecting Jinja2==2.11.3 Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB) Processing ./.cache/pip/wheels/28/7c/55/54e1d4894283f70b82c86131651099ff26e8a1b2990a125441/python_can-3.3.4-py2.py3-none-any.whl Collecting markupsafe==1.1.1 Downloading MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl (24 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Collecting typing; python_version < "3.5" Using cached typing-3.10.0.0-py2-none-any.whl (26 kB) Collecting aenum Using cached aenum-3.1.11-py2-none-any.whl (118 kB) Collecting wrapt~=1.10 Downloading wrapt-1.14.1-cp27-cp27mu-manylinux2010_x86_64.whl (75 kB) |████████████████████████████████| 75 kB 213 kB/s Installing collected packages: pycparser, cffi, pyserial, greenlet, markupsafe, Jinja2, typing, aenum, wrapt, python-can Successfully installed Jinja2-2.11.3 aenum-3.1.11 cffi-1.14.6 greenlet-1.1.2 markupsafe-1.1.1 pycparser-2.21 pyserial-3.4 python-can-3.3.4 typing-3.10.0.0 wrapt-1.14.1 ###### Installing system start script... Created symlink /etc/systemd/system/multi-user.target.wants/klipper.service → /etc/systemd/system/klipper.service. ###### Launching Klipper host software... pi@OctoPrint:~$