Jump to content

python-dev:armf on neo2 fails to install


uracolix

Recommended Posts

Hello guys,

 

at first I want to says thanks for the great OS that you deliver. I use it since 8 months on a bunch of nano-pi neo2's and it runs rock solid.

 

However i rebuild from time to time the image I use from scratch in order to see that the installation is reproducable and repeatable.

 

Today it has encountered that the installation of

 

'apt-get install python:armhf  python-dev:armhf' failed with:

# dpkg --add-architecture armhf

# sudo apt-get update
....
Reading package lists... Done

# sudo apt-get install -y python-pip python:armhf python-dev:armhf
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-dev:armhf : Depends: libpython-dev:armhf (= 2.7.12-1~16.04) but it is not going to be installed
                    Depends: python2.7-dev:armhf (>= 2.7.12-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I use armbian_5.38_Nanopineo2_Ubuntu_xenial_next_4.14.14.img.

 

The reason I do this, is that I want to use Segger Debugger on the platform, but Segger only provides armhf-libs (used by Pylink-square). Asking Segger to release arm64 libraries already failed.

 

Thanks in advance, Axel.

 

 

Link to comment
Share on other sites

<SOLVED>

 

Hi, I could fix the above described issue, but it requires an extra mile to go.

Furhter I recommend to save the python:armhf in a virtualenv, because any later "apt-get install ..." may wipe the python:armhf.

Here are the fabric commands that I use.

 

    
sudo("apt-get purge -y python2.7 python2.7-dev python2.7-minimal")
sudo("apt-get install -y linux-libc-dev:armhf")
sudo("apt-get install -y python2.7:armhf python2.7-dev:armhf python2.7-minimal:armhf")

# other python modules that will not install w/ pip because something won't compile, e.g. pillow
sudo("apt-get install -y python-pillow:armhf")

# get-pip is the only way to go here, apt install python-pip will wipe python:armhf
with cd("/tmp"):
    run("curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py")
    sudo("/usr/bin/python2.7 get-pip.py")

# install virtualenv for saving python:armhf
with cd("/usr/bin/"):
    sudo("ln -sfv python2.7 python")
    sudo("pip install virtualenv")
    run("virtualenv -p /usr/bin/python2.7 --system-site-packages /home/uracolix/ve_py27_armhf")

 

Edited by uracolix
added resolved tag + added install of linux-libc-dev:armhf
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines