openwisp / ansible-openwisp2

Ansible role that installs and upgrades OpenWISP.
https://openwisp.io/docs/dev/ansible/
BSD 3-Clause "New" or "Revised" License
475 stars 137 forks source link

Error install redis-server on debian 11 #358

Closed mikysal78 closed 2 years ago

mikysal78 commented 2 years ago

The output of my playbook is:

TASK [openwisp.openwisp2-dev : Install redis 6 if available] **************************************************************************************************************************************************************************
Saturday 19 March 2022  19:26:36 +0100 (0:00:04.167)       0:02:08.538 ******** 
fatal: [controller.nnxx.ninux.org]: FAILED! => changed=false 
  cache_update_time: 1647713747
  cache_updated: false
  msg: |-
    '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"      install 'redis-server=5:6*'' failed: E: Unable to correct problems, you have held broken packages.
  rc: 100
  stderr: |-
    E: Unable to correct problems, you have held broken packages.
  stderr_lines: <omitted>
  stdout: |-
    Reading package lists...
    Building dependency tree...
    Reading state information...
    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:
     redis-server : Depends: redis-tools (= 5:6.0.16-2~bpo11+1) but 5:6.0.16-1+deb11u2 is to be installed
  stdout_lines: <omitted>
...ignoring

TASK [openwisp.openwisp2-dev : Install redis 5 if available] **************************************************************************************************************************************************************************
Saturday 19 March 2022  19:26:42 +0100 (0:00:05.731)       0:02:14.270 ******** 
fatal: [controller.nnxx.ninux.org]: FAILED! => changed=false 
  cache_update_time: 1647713747
  cache_updated: false
  msg: |-
    '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"      install 'redis-server=5:5*'' failed: E: Version '5:5*' for 'redis-server' was not found
  rc: 100
  stderr: |-
    E: Version '5:5*' for 'redis-server' was not found
  stderr_lines: <omitted>
  stdout: |-
    Reading package lists...
    Building dependency tree...
    Reading state information...
  stdout_lines: <omitted>
...ignoring

TASK [openwisp.openwisp2-dev : Install redis 4 (fallback)] ****************************************************************************************************************************************************************************
Saturday 19 March 2022  19:26:47 +0100 (0:00:05.041)       0:02:19.312 ******** 
fatal: [controller.nnxx.ninux.org]: FAILED! => changed=false 
  cache_update_time: 1647713747
  cache_updated: false
  msg: |-
    '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"      install 'redis-server=5:4*'' failed: E: Version '5:4*' for 'redis-server' was not found
  rc: 100
  stderr: |-
    E: Version '5:4*' for 'redis-server' was not found
  stderr_lines: <omitted>
  stdout: |-
    Reading package lists...
    Building dependency tree...
    Reading state information...
  stdout_lines: <omitted>

PLAY RECAP ****************************************************************************************************************************************************************************************************************************
controller.nnxx.ninux.org  : ok=38   changed=0    unreachable=0    failed=1    skipped=47   rescued=0    ignored=2   

From apt-cache show redis-server i have this:

root@controller:~ # apt-cache show redis-server
Package: redis-server
Source: redis
Version: 5:6.0.16-2~bpo11+1
Installed-Size: 191
Maintainer: Chris Lamb <lamby@debian.org>
Architecture: amd64
Depends: lsb-base (>= 3.2-14), redis-tools (= 5:6.0.16-2~bpo11+1)
Pre-Depends: init-system-helpers (>= 1.54~)
Description-en: Persistent key-value database with network interface
 Redis is a key-value database in a similar vein to memcache but the dataset
 is non-volatile. Redis additionally provides native support for atomically
 manipulating and querying data structures such as lists and sets.
 .
 The dataset is stored entirely in memory and periodically flushed to disk.
Description-md5: 9160ed1405585ab844f8750a9305d33f
Homepage: https://redis.io/
Section: database
Priority: optional
Filename: pool/main/r/redis/redis-server_6.0.16-2~bpo11+1_amd64.deb
Size: 98564
SHA256: 916de74195810a3251e822481425bc068ef973d8946b5b7de44f0d0f7dcdb496

Package: redis-server
Source: redis
Version: 5:6.0.16-1+deb11u2
Installed-Size: 191
Maintainer: Chris Lamb <lamby@debian.org>
Architecture: amd64
Depends: lsb-base (>= 3.2-14), redis-tools (= 5:6.0.16-1+deb11u2)
Description-en: Persistent key-value database with network interface
 Redis is a key-value database in a similar vein to memcache but the dataset
 is non-volatile. Redis additionally provides native support for atomically
 manipulating and querying data structures such as lists and sets.
 .
 The dataset is stored entirely in memory and periodically flushed to disk.
Description-md5: 9160ed1405585ab844f8750a9305d33f
Homepage: https://redis.io/
Pre-Depends: init-system-helpers (>= 1.54~)
Section: database
Priority: optional
Filename: pool/updates/main/r/redis/redis-server_6.0.16-1+deb11u2_amd64.deb
Size: 98212
SHA256: d7d3d93e00d414982eef09b57de3ad39db5ab61c16aef58241dedb75db0105fc

Package: redis-server
Source: redis
Version: 5:6.0.15-1
Installed-Size: 190
Maintainer: Chris Lamb <lamby@debian.org>
Architecture: amd64
Depends: lsb-base (>= 3.2-14), redis-tools (= 5:6.0.15-1)
Pre-Depends: init-system-helpers (>= 1.54~)
Description-en: Persistent key-value database with network interface
 Redis is a key-value database in a similar vein to memcache but the dataset
 is non-volatile. Redis additionally provides native support for atomically
 manipulating and querying data structures such as lists and sets.
 .
 The dataset is stored entirely in memory and periodically flushed to disk.
Description-md5: 9160ed1405585ab844f8750a9305d33f
Homepage: https://redis.io/
Tag: implemented-in::c, role::program
Section: database
Priority: optional
Filename: pool/main/r/redis/redis-server_6.0.15-1_amd64.deb
Size: 96912
MD5sum: 24cfdf34c76f934b7728b01c37fd8374
SHA256: 66289937cb3bb00b472945f975b86ee289efe1147dc0de22beeff49ef7c155d3
mikysal78 commented 2 years ago

i comment backports and is ok.

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
#deb http://deb.debian.org/debian bullseye-backports main
#deb-src http://deb.debian.org/debian bullseye-backports main