i use linux
nodejs had no problem untill i upgraded my system (sudo apt upgrade)
now when i try to install nodejs it say python-minimal mot installed
then i knew that it casue of updating python from python2.7.17 to python2.7.18 and python minimal is no longer require ,but now i cant install nodejs cause it ask for python-minimal
can any one help me
the problem is when i want to install nodejs 15 or 14
but when i install nodejs 12 or lower it have no problem
this is what it say after i write (sudo apt install nodejs)
sudo apt upgrade nodejs
[sudo] password for julian:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libnode72 : Conflicts: nodejs-legacy
nodejs : Depends: python-minimal but it is not installable
E: Broken packages
This
sudo apt remove libnode72:amd64
sudo apt autoclean
sudo apt autoremove
should do the job.
I encountered this issue today after going from Ubuntu 18.04 to Ubuntu 20.04 and there are a lot of old Ask Ubuntu questions surrounding this and Github questions where for one reason or another various apps (Node included) rely on core Python functions that are leveraged from the python-minimal library.
For better or worse it also doesn't seem to care if Python is installed or not in it's entirety. It wants the minimal package specifically.
The thing is all the python-minimal repositories are marked OldStable (about OldStable if you want to know)and rely on Python 2 which has been sunset.
It seems if you haven't upgraded your OS in a while there is something hanging out in the package manager that will tell you that node needs python minimal to be run or installed but this is not the case as is evident by the lack of package support.
The solution I found was after upgrade to simply rerun the installation for Node based on the package manager instructions for your operating system. In my case it was specifically Dedbian and Ubuntu based distributions.
Related
Prefix: I am currently working with some legacy machines in the field and need to install specific versions of libpython. These machines do not have access to the internet so apt-get or pip is not an option. These machines are currently running Ubuntu 16.
I am not entirely sure what libpython even is BUT I was able to install it with sudo apt-get install libpython3.6-dev on my personal machine. However, there is a very high probability that I will need a specific version.
Question: How do I install a specific version of libpython so that the Shared Objects (.so) and head (.a) files are created properly?
Here are the files that were created via my 3.6 install:
/usr/lib/python3.6/config-3.6m-i386-linux-gnu/libpython3.6.so
/usr/lib/python3.6/config-3.6m-i386-linux-gnu/libpython3.6m.so
/usr/lib/python3.6/config-3.6m-i386-linux-gnu/libpython3.6m.a
/usr/lib/python3.6/config-3.6m-i386-linux-gnu/libpython3.6m-pic.a
More Info:
There is a proprietary install .deb that is firing off these errors saying the following:
dpkg: dependency problems prevent configuration of [Program Name]:
[Program Name] depends on libpython3.6 (>= 3.6.5); however:
Package libpython3.6 is not installed.
I am installing python and some other python packages. I am getting same error.
suggest me some. how can I fix.
palwesh#wg-palwesh:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-pip : Depends: python-pip-whl (= 9.0.1-2) but 9.0.1-2.3~ubuntu1.18.04.1 is to be installed
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
palwesh#wg-palwesh:~$
First try sudo apt-get update to make sure your package lists are up to date.
"Unable to correct problems, you have held broken packages." implies that you have used Apt's hold functionality to stop packages from being updated. (apt-mark showhold shows you the held packages, apt-mark unhold lets you remove relevant holds.)
Actually I tampered certain libraries of Python 3 and they stopped working, so I want to remove complete Python 3 and reinstall it.
When I ran this command:
sudo dnf remove python3
the result was:
Error:
Problem: The operation would result in removing the following protected packages: dnf
Please suggest me how to remove python3 and reinstall without any dependencies.
Previously I had the same issue with python I ran the same commands and it successfully removed it and then when I installed the same, It installed without any dependent libraries.
I googled and read but didn't find any relevant answers.
It appears that dnf uses python internally. So removing it forcefully will break you package management, and then you are in a much worse situation.
You could remove all installed python packages like this, while still keeping python itself:
for package in $(pip3 freeze); do pip3 uninstall -y $package; done
If that doesn't help because the standard library of Python is broken then try
dnf reinstall python3 -y
For a project I am working on I am using Debian (8) as base OS. The target I am developing for is an ARM based platform. So for easy cross compiling I am using the multiarch functionality that debian provides.
Unfortunately I run into an issue when I try to install python for both my host system and the system I am cross compiling for. It looks like they cannot be installed next to each other.
When I try to install python for both architectures using apt-get install (apt-get install python python:armhf), I get this error:
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python : Depends: python2.7 (>= 2.7.9-1~) but it is not going to be installed
PreDepends: python-minimal (= 2.7.9-1) but it is not going to be installed
Conflicts: python:armhf but 2.7.9-1 is to be installed
python:armhf : Conflicts: python but 2.7.9-1 is to be installed
If I first install python for my host system and then try to install python for armhf, apt wants to remove the first python installation again.
Anybody seen this before? Any idea how to solve this?
Multiarch as of Debian Jessie does not allow the parallel installation of executables:
The package python contains executables that are installed to /usr/bin (e.g. pdb, pydoc, ...)
The package python:armhf also contains those executables and they should also get installed to /usr/bin.
Therefore python and python:armhf can not be installed at the same time since the executables of one package would overwrite the executable of the other package.
The good thing is, that you do not need two python interpreters. In your case I would just install the python interpreter that is needed for the host architecture (e.g. python:amd64). Please note that the installation of build dependencies with a command such as sudo apt-get build-dep -a armhf PACKAGE-NAME might sometimes fail and you have to guess what packages need to be installed manually.
In Ubuntu 13.04, I have installed Scrapy for python-2.7, from the tarball. Executing a crawl command results in the below error:
ImportError: Error loading object 'scrapy.telnet.TelnetConsole': No module named conch
I've also tried installing twisted conch using easy_install and using the tarball. I have also removed the scrappy.egg and .info and the main scrappy folder from the python path.
Reinstalling scrapy does not help as well.
Can some one point me in the right direction?
On Ubuntu, you should avoid using easy_install wherever you can. Instead, you should be using apt-get, aptitude, "Ubuntu Software Center", or another of the distribution-provided tools.
For example, this single command is all you need to install scrapy - along with every one of its dependencies that is not already installed:
$ sudo apt-get install python-scrapy
easy_install is not nearly as good at installing things as apt-get. Chances are the reason you can't get it to work is that it didn't quite install things sensibly, particularly with respect to what was already installed on the system. Sadly, it also leaves no record of what it did, so uninstallation is difficult or impossible. You may now have a big mess on your system that prevents proper installations from working as well (or maybe not, you might be lucky). It's difficult to say whether this is the case, since there are a lot of different pieces that go into a working system, and they all need to fit together just right, and it's difficult to enumerate them so you can check them, let alone enumerate the ways they can each be broken.
Ensure you have the python development headers:
apt-get install build-essential python-dev
Install scrapy with pip:
pip install Scrapy
Ubuntu packages
New in version 0.10.
Scrapinghub publishes apt-gettable packages which are generally fresher than those in Ubuntu, and more stable too since they’re continuously built from Github repo (master & stable branches) and so they contain the latest bug fixes.
To use the packages:
Import the GPG key used to sign Scrapy packages into APT keyring:
Step.1
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7
Create /etc/apt/sources.list.d/scrapy.list file using the following command:
Step.2
echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list
Update package lists and install the scrapy-0.24 package:
Step.3
sudo apt-get update && sudo apt-get install scrapy-0.24
Note
Repeat step 3 if you are trying to upgrade Scrapy.
Warning
python-scrapy is a different package provided by official debian repositories, it’s very outdated and it isn’t supported by Scrapy team.