cancel
Showing results for 
Search instead for 
Did you mean: 

apt install not work

Delios82
Associate II

Hi,

I have a STM32MP157F-DK2 when I try to install something with apt-get I get this error:
root@stm32mp1:~# apt install python3
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package python3

The date is correct.

If instead I try to run an apt-get update I receive this message:

 

root@stm32mp1:~# apt-get update

The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.

Reading package lists... Done


how can i fix it? i need to install python-pip with all dependencies

 

Best regards
AB

 

 

5 REPLIES 5
PatrickF
ST Employee

Hi @Delios82 

please use apt-get install like:

apt-get install python3 python3-pip

 

Regards

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @PatrickF

 

I had already tried but the result is the same

 

Regards

Perhaps it is really not in the repositories you have configured. At least not the ARM version you would need for the MP1-DK.

This list is usually located in /etc/apt/sources.list .

Hi,

I assume your board is correctly connected to network with WLAN or RJ45.

 

Have you flashed the latest ecosystem ?

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

 

example of log

root@stm32mp1:~# apt-get update

The software package is provided AS IS, and by downloading it, you agree to be
bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at
https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.

Get:1 http://packages.openstlinux.st.com/5.1 mickledore InRelease [5723 B]
Get:2 http://packages.openstlinux.st.com/5.1 mickledore/main armhf Packages [705 kB]
Get:3 http://packages.openstlinux.st.com/5.1 mickledore/updates armhf Packages [45.3 kB]
Get:4 http://packages.openstlinux.st.com/5.1 mickledore/untested armhf Packages [1347 kB]
Fetched 2103 kB in 3s (701 kB/s)
Reading package lists... Done

 

then apt-get install python3 works on my side (tested just now)

Regards.

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi, 

I tried to install with the command indicated, I get this error:

root@stm32mp1:~# apt-get install python3-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:
 python3-pip : Depends: python3-unixadmin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@stm32mp1:~# apt-get install python3-unixadmin
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:
 python3-unixadmin : Depends: libc6 (>= 2.31+git0+4f0a61f753) but 2.31+git0+2d4f26e5cf-r0.0 is to be installed
                     Depends: libnsl2 (>= 1.2.0+git0+4a062cf418) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

root@stm32mp1:~# apt-cache policy python3-pip
python3-pip:
  Installed: (none)
  Candidate: 20.0.2-r0
  Version table:
     20.0.2-r0 500
        500 http://packages.openstlinux.st.com/3.1 dunfell/main armhf Packages
     20.0.2-5ubuntu1.11 500
        500 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe armhf Packages
        500 http://ports.ubuntu.com/ubuntu-ports focal-security/universe armhf Packages
     20.0.2-5ubuntu1 500
        500 http://ports.ubuntu.com/ubuntu-ports focal/universe armhf Packages