On 2019-04-23 15:55, Jean-Marc LACROIX wrote:
> When i launch following command ...
> 
> ansible@srv-owncloud-100:~$ sudo apt install lm-sensors
> 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:
>  lm-sensors : Depends: libsensors4 (>= 1:3.1.1) but it is not going to be
> installed
> E: Unable to correct problems, you have held broken packages.

I believe libsensors4 can't be installed as libsensors5 from Buster is
already installed on your system, probably as a dependency of another
package. You can't install both at the same time.

It is installable without issue on a pure Stretch system.

> But it is possible to install Buster release without any others errors
> 
> 
> ansible@srv-owncloud-100:~$ sudo apt -t buster install lm-sensors
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Suggested packages:
>   fancontrol read-edid i2c-tools
> The following NEW packages will be installed:
>   lm-sensors
> 0 upgraded, 1 newly installed, 0 to remove and 225 not upgraded.
> Need to get 114 kB of archives.
> After this operation, 412 kB of additional disk space will be used.
> Get:1 http://ftp.debian.org/debian buster/main amd64 lm-sensors amd64
> 1:3.5.0-3 [114 kB]
> Fetched 114 kB in 0s (451 kB/s)
> debconf: delaying package configuration, since apt-utils is not installed
> Selecting previously unselected package lm-sensors.
> (Reading database ... 36231 files and directories currently installed.)
> Preparing to unpack .../lm-sensors_1%3a3.5.0-3_amd64.deb ...
> Unpacking lm-sensors (1:3.5.0-3) ...
> Setting up lm-sensors (1:3.5.0-3) ...
> 
> ansible@srv-owncloud-100:~$

This actually confirms the issue. lm-sensors 1:3.5.0-3 requires
libsensors5. As it doesn't get installed, it means that you already have
it installed on your system.

Therefore you should try to remove libsensors5 and all the depending
packages. Then you should be able to install lm-sensors and libsensors4
from Stretch.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                 http://www.aurel32.net

Reply via email to