All Questions
610
questions
-1
votes
0
answers
25
views
Make WSL detect conda-python that I installed on Windows 11 [duplicate]
I have a Windows 11 machine and I install Ubuntu from microsoft store to run linux command.
Previously I also insalled Conda on Windows 11.
But when I open WSL and hit 'python' it gives the following ...
1
vote
1
answer
86
views
Cannot install gnome-control-center upon upgrading Ubuntu (unmet dependencies with libpython3.10)
I upgraded last night from Ubuntu 20.04 to 22.04. When I booted up my PC, I found my settings app (gnome-control-center) was gone. I tried to install, but I get:
$ sudo apt install gnome-control-...
0
votes
0
answers
48
views
how to install library dlib==19.16.0 on ubuntu 24.04 for the python version 2.7.18
I receive the below error while installing dlib, Kindly help me to install dlib==19.16.0 on ubuntu 24.04 for the python version 2.7.18.
pip install dlib
DEPRECATION: Python 2.7 reached the end of its ...
2
votes
1
answer
135
views
flake8 installation causes removal python-minimal - Ok or not?
(still) on Ubuntu 20.04.6 LTS
when I try to install flake8, it makes me question, which implies I do something very risky, however I can not find, is it actually risk or it's just outdated warning for ...
0
votes
1
answer
87
views
After Installing Python from Source, can I Uninstall the Building Dependencies?
I am working with very constrained embedded hardware where I cannot afford to have many packages installed; however, I need Python3.10, which I built from source (my apt only offers Python3.7).
In ...
1
vote
0
answers
172
views
Can't install Tensorflow in Ubuntu 20.04 LTS
I'm trying to install TensorFlow on my Ubuntu system, but I'm encountering some issues. Here's what I've done and the issues I'm facing:
1. sudo apt install python3-tensorflow:
This command returns ...
0
votes
0
answers
24
views
Messed up with python symbolic link in bin folder
problem is that I am not able to open the gnome-terminal by clicking on it icon, but I am able to use "open in terminal" from any path
Actually, I was trying to update the Python version and ...
0
votes
0
answers
64
views
Error in sqllite3 when running apt update
I'm on Ubuntu 24.04.
When I run sudo apt update I get the following error ouput:
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 9, in <module>
from ...
1
vote
0
answers
65
views
CUDA in Docker image breaks and require sudo apt upgrade
Question
Why sudo apt upgrade on the host OS is required to make CUDA work in Docker container? The problem does not occur without Docker, but occurs only when a Docker image is recreated.
Environment
...
0
votes
0
answers
90
views
Installed nvidia through file runner, nvcc is on my system but not properly configured
I installed version 11.8 of CUDA on my system through the runfile:
https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&...
0
votes
1
answer
66
views
What languages installed with APT on Ubuntu come with graphical features straight out of the box?
Just wondering what programming languages I can install straight from the APT that come with built in graphics functions on Ubuntu. I know Java can but I don't know of anything else and information on ...
0
votes
0
answers
165
views
Kubuntu python environment pip installation too slow
I recently switched to Kubuntu from windows. When I create a python virtual environment and try installing packages using pip, the download and installation process take too long. But the ...
3
votes
1
answer
7k
views
How to install Python 3.12 on Ubuntu 23.10?
I did several wrong things for my first day on Ubuntu when trying to code with Python, so I just reinstalled it. Can anyone tell me the best way to install Python here? I am using Ubuntu 20.04, and I ...
0
votes
0
answers
64
views
How to package and deploy a DEB without any assumptions about dependencies installed on the target machine
I am creating a DEB package for installation by external systems. At this early stage of development the DEB package consists of custom-developed Python wheels. These wheels depend on:
System binary ...
0
votes
0
answers
209
views
I am using the colcon buil command in my ros workspace, the following error appears : R_X86_64_TPOFF32
When I cd into my ros workspace, and use the following command - colcon build ,
I get to see the following error messages,
ERROR:colcon.colcon_core.extension_point:Exception loading extension '...
1
vote
1
answer
244
views
Software Updater (update-manager) stuck, but `apt update` and `apt upgrade` work fine. How to fix the update-manager?
Software Updater (update-manager) stuck, but apt update and apt upgrade work fine. I have try to use sudo dpkg --configure -a.
The error stacktrace is follow:
update-manager
Traceback (most recent ...
0
votes
1
answer
205
views
How to install gtk-recordmydesktop?
I've upgraded Linux to the newest version recently, and re-installed recordmydesktop, but I want to install gtk-recordmydesktop, the one that allows you to pause it and select what part of the screen ...
0
votes
0
answers
25
views
Problem trying to install Steam: ModuleNotFoundError: No module named 'apt_inst' [duplicate]
When I try to install Steam, I get the following error:
$ sudo gdebi ~/steam.deb
Traceback (most recent call last):
File "/usr/bin/gdebi", line 38, in <module>
from GDebi....
0
votes
0
answers
29
views
How do I find out how the python3 package for Ubuntu is built?
I have noticed that on some tests, the python3 interpreter that I installed with apt-get is faster than if I take the interpreter from python docker containers or build myself.
How do I find out which ...
2
votes
1
answer
3k
views
Is there a way to install python 3.12 on ubuntu 23.04 through apt?
There's no python 3.12 in Main or Universe and deadsnakes doesn't support it for 23.04. I'm hoping to avoid having to compile it from source (since I want to use it in Docker images based off of 23.04)...
0
votes
1
answer
512
views
Python disfunctional after upgrading to Ubuntu 22.04
I just upgraded to Ubuntu 22.04 (WSL) and somehow my Python is all messed up.
When I load Ubuntu, I get:
/usr/bin/env: ‘python3’: No such file or directory
/usr/bin/env: ‘python3’: No such file or ...
4
votes
2
answers
808
views
How to fix the error of complete removing python from Ubuntu 20.04 [duplicate]
I made a stupid mistake of complete deleting python 3.10 from my laptop with Ubuntu 20.04, when I tried to update it to 22.04 version. After doing this, I can only access tty1 mode (i.e. a black ...
0
votes
0
answers
3k
views
(Ubuntu 22.04.3 LTS) Cannot install python3-pip, error message (code 1) appear
I have a problem when trying to install python3-pip on Ubuntu 22.04.
I got the Ubuntu from here and run on USB drive. Then as python3/pip is in the universe repository, I enabled the universe ...
0
votes
0
answers
22
views
No apt_pkg and black screen after installing Python version [duplicate]
I was having some trouble installing things due to a python library not being found. I don't remember exactly, but I may have installed a different python version.
Now on start up my screen is black ...
0
votes
0
answers
55
views
How to restore ubuntu graphics after deleting python?
I'm using Ubuntu 23.04 right now and I've made a similar mistake before
Q
I was doing something that told me to remove and reinstall python3.11 and I ran this command
sudo apt remove python3.11
It was ...
0
votes
0
answers
152
views
pip3 broken on ubuntu for me
i use Ubuntu 20.04 and python3.8.
I decided to try to create a virtual environment through python 3 -m venv venv, this happens:
python3 -m venv venv
Error: Command '['/root/venv/bin/python3', '-Im', '...
-1
votes
1
answer
233
views
trouble creating python3 -m venv py_envv using windows subsystem linux (using ubantu distribution)
Its my first post in askUbuntu, please bare with my discription.
command at PWD : python3 -m venv py_envv
after excuting I got an error below
The virtual environment was not created successfully ...
7
votes
3
answers
7k
views
Importing python packages installed with pipx
I want to use the panflute package in some Python code, like this: import panflute. I don't want to start a virtual environment every time I run that code, if I can avoid it. (It's a Pandoc filter, ...
0
votes
1
answer
4k
views
Install PyQt4 on ubuntu 22.04
I am trying to install PyQt4 on ubuntu 22.04, because a specific software need python2 and PyQt4:
install python2
sudo apt install python
link python2 to python
Now, python -v is
Python 2.7.18 (...
1
vote
0
answers
501
views
Why install ‘black’ rather than ‘python3-black’?
I am using Kubuntu with sway as a window manager, but I don’t
think that makes a difference to my problem.
I just spent a long time trying to enter sudo apt install python3-black. The answer, it turns ...
0
votes
0
answers
206
views
Unable to install python-gtk2 because of dependensies
(Reading database ... 215530 files and directories currently installed.)
Preparing to unpack python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ...
Unpacking python-gtk2 (2.24.0-5.1ubuntu2) over (2.24.0-5....
0
votes
0
answers
11
views
E: Archives directory /var/cache/apt/archives/partial is missing. - Acquire (2: No such file or directory) [duplicate]
I am trying to install a python version on linux. But I am getting the following error:
E: Archives directory /var/cache/apt/archives/partial is missing.
Acquire (2: No such file or directory)
Edit:
$...
1
vote
0
answers
128
views
Error processing package python3-pip
After an sudo apt full-upgrade or apt install -f I got the following error:
loo# sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state ...
0
votes
0
answers
402
views
Unable to install pyaudio in a python 3.9.1 virtual environnement in ubuntu 20.04
I'm kindly asking for your help. I'm trying to install pyaudio in a python virtual environment version 3.9.1 on Ubuntu 20.04 but I get this error when I run pip install pyaudio in my venv:
error: ...
0
votes
1
answer
161
views
install packages (for python/django) from a txt file in ubuntu that was meant for windows
i am new but also have a weird problem. i m not deep into programming and i m just a power user, but i have to fix a typo in a python app which would be no problem but to run it again i have to get ...
4
votes
2
answers
20k
views
Install Python3.10 on Ubuntu 23.04
I've tried to install python3.10 alongside with native python3.11, on Ubuntu 23.04, but looks like it's not available.
mika@system:~$ sudo apt update && sudo apt install python3.10
Hit:1 http:/...
1
vote
1
answer
856
views
apt-get not working correctly because of python3 on lunar
To summarise: apt-get crashes if it detects an error (eg. can't find a repo that is in the sources list).
The problem is caused because the python sqlite3 shared object has an undefined symbol (...
9
votes
1
answer
550
views
Why is apt so dependent on individual Python versions?
We get a lot of questions here about people messing with Python versions and ruining their systems, most noticeably that apt fails to function properly. I am aware that many Ubuntu packages require ...
1
vote
1
answer
3k
views
Installing python3.10 on Ubuntu23.04, alongside with python3.11 causes apt crash [duplicate]
I need to use python3.10 on Ubuntu23.04.
I've tried to install python3.10 on Ubuntu23.04, alongside with python3.11. And, it looks like it has been installed.
But, python3.10-venv didn't.
Than I've ...
0
votes
1
answer
527
views
netplan with multiple versions of python
Currently, I have two versions of python installed in Ubuntu 20.04. I noticed that if I select python3.10 as python3, then netplan got errors. If I switch back to python3.8, then netplan works fine. ...
0
votes
1
answer
718
views
Stuck upgrading to ubuntu 20.04
I've been trying to upgrade from Ubuntu 20.04 to 22.04. I'm trying to do this by running:
sudo do-release-upgrade
I'm met with the following:
Traceback (most recent call last):
File "/usr/bin/...
0
votes
0
answers
722
views
My ubuntu server broke after following a tutorial to upgrade python frm 3.6 to 3.8 [duplicate]
I followed this tutorial to upgrade python:
https://tech.serhatteker.com/post/2019-12/upgrade-python38-on-ubuntu/
Then I ran
sudo apt update && sudo apt upgrade
but the system refused with the ...
0
votes
0
answers
383
views
Ubuntu 22 package management broken
Package management seems to have gotten into a mess. apt upgrade gives me:
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to ...
0
votes
1
answer
311
views
Having trouble opening a virtual environment in python3.9
I have installed python3.9 through apt in my Ubuntu 18.04.6 LTS. Then I was trying to create a new virtual environment that runs on 3.9. This is the process I did:
$ python3.9 -m venv /home/user1/py3....
2
votes
0
answers
2k
views
Error Installing python 3.7 on Ubuntu 23.04
trying to install Python 3.7 in a container with base Ubuntu 23.04. I keep getting the following errors. Here's what I have tried:
RUN apt-get install -y python3.7 python3-pip:
#8 0.788 Package ...
0
votes
2
answers
4k
views
How to fix Python3.10 error on Ubuntu 22.04 [duplicate]
Im having some issue after updating ubuntu from v20 to v22, and i really need your help.
I surely messed up some python files, and now the vast majority of 'apt' command wont work at all.
Since i ...
5
votes
2
answers
7k
views
How to fix error `No module named 'apt_pkg' in Ubuntu 20.04?
I have a VM running Ubuntu 20.04 inside windows and I tried to fix a problem, and now I get the error
ModuleNotFoundError: No module named 'apt-pkg'
I did run the code
sudo apt install python3-apt
...
1
vote
1
answer
291
views
About the usage of Python-apt
my goal is to collect different executable files with the same source code in all Linux distros and all architectures, e.g. Ubuntu 18.04 and Debian 12 in amd64 and i386, as much as possible, and for ...
0
votes
0
answers
10
views
python3-ldb problem on ubuntu 22.04.2 [duplicate]
I have done an 'apt update' followed by an 'apt upgrade'.
during the long process a " python3-ldb report" was generated by the system. I made a copy which is attached (i couldnt find a way ...
2
votes
1
answer
5k
views
Archives directory /var/cache/apt/archives/partial is missing
I am trying to install a python version on linux. But I am getting the following error:
Archives directory /var/cache/apt/archives/partial is missing
I have tried to create the file by :
mkdir -p /...