Addressing Python3 install errors on Linux Desktop (Ubuntu 20.04) for IDE 1.8.19

Running Arduino IDE 1.8.19/ Ubuntu Linux 20.04 LTS

I need python3 on system to avoid esp32 compile errors.
Attempting to use this lengthy borrowed 'c&p' terminal command line to load python3:

sudo usermod -a -G dialout $USER && sudo apt-get install git && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py && sudo pip install pyserial && mkdir -p ~/Arduino/hardware/espressif && cd ~/Arduino/hardware/espressif && git clone https://github.com/espressif/arduino-esp32.git esp32 && cd esp32 && git submodule update –init –recursive && cd tools && python3 get.py
  1. I do have synaptic package manager installed which is evidently creating the '8155' error. Does it need to be killed or removed to accomplish this install?
    Best approach to clear w/o removing the lock file, which can be dangerous according to warning.
  2. How to determine what process is using dpkg frontend lock; making it inaccessible?

I am underwater at this point...lol Need a life jacket!!!

Edit - solved...see bottom post

Hi @edthewino. Please use code blocks when posting terminal commands and outputs, the same as you would when posting code, compiler output, error messages, etc. to the forum. You can do that by following these instructions:

  1. Paste the code into the forum's post editor field, just like usual.
  2. Select all the code in the editor field.
  3. From the toolbar at the top of the editor field, click the </> button
    codetags

The reason for doing this is that, without code tags, the forum software can incorrectly interpret parts of the text as markup, leading to confusion, wasted time.

The code blocks also make it much easier to read.


If your browser doesn't show that forum editor toolbar or you prefer to format your post manually, you can use the Markdown markup language (or BBCode if you prefer):
https://www.markdownguide.org/extended-syntax/#fenced-code-blocks
Just add three backticks (```) on the line before and after the code:

```
void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}
```

Try restarting your computer. Perhaps this is an unusual state for Synaptic to be in, caused by some previous event. If so, restarting the computer will put Synaptic back into its intended state and perhaps will allow you to use apt directly.

When I paste the terminal command-line string most of the command line text is being dropped beyond the 1st line.
I do not understand why this occurs. Possibly the https: is the problem????

"sudo usermod -a -G dialout $USER && sudo apt-get install git && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py && sudo pip install pyserial && mkdir -p ~/Arduino/hardware/espressif && cd ~/Arduino/hardware/espressif && git clone GitHub - espressif/arduino-esp32: Arduino core for the ESP32 esp32 && cd esp32 && git submodule update –init –recursive && cd tools && python3 get.py"

Unfortunately a reboot did not tame synaptic package manager as it generated the same errors.

Ed

It is because you did not follow my instructions. Normal text in forum posts is wrapped. That is fine for prose, but it makes code and tool output very difficult to read.

This is how it should be written when you compose a post:

```
sudo usermod -a -G dialout $USER && sudo apt-get install git && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py && sudo pip install pyserial && mkdir -p ~/Arduino/hardware/espressif && cd ~/Arduino/hardware/espressif && git clone https://github.com/espressif/arduino-esp32.git esp32 && cd esp32 && git submodule update –init –recursive && cd tools && python3 get.py
```

The only thing you need to do is to put the three backticks (``` ) above and below the code or command or output text.

That will cause it to be rendered nicely like this:

sudo usermod -a -G dialout $USER && sudo apt-get install git && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py && sudo pip install pyserial && mkdir -p ~/Arduino/hardware/espressif && cd ~/Arduino/hardware/espressif && git clone https://github.com/espressif/arduino-esp32.git esp32 && cd esp32 && git submodule update –init –recursive && cd tools && python3 get.py

Okay, I was misunderstanding that you use the slide bar to move across the command line text. Still learning even in my old age...lol

Solved: forcing Synaptic Package Manager to "QUIT" allowed install process to proceed.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.