package redis-server 5:4.0.9-1ubuntu0.2 failed to install/upgrade: installed redis-server package post-installation script subprocess returned error exit status 2

Bug #1843220 reported by Manish Manghwani
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
redis (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have uninstalled redis-server previously
rebooted the system
when i tried to installed it again it failed with following response

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  redis-server
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 35.4 kB of archives.
After this operation, 172 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 redis-server amd64 5:4.0.9-1ubuntu0.2 [35.4 kB]
Fetched 35.4 kB in 0s (79.5 kB/s)
Selecting previously unselected package redis-server.
(Reading database ... 176215 files and directories currently installed.)
Preparing to unpack .../redis-server_5%3a4.0.9-1ubuntu0.2_amd64.deb ...
Unpacking redis-server (5:4.0.9-1ubuntu0.2) ...
Setting up redis-server (5:4.0.9-1ubuntu0.2) ...
dpkg-statoverride: error: user 'redis' does not exist
dpkg: error processing package redis-server (--configure):
 installed redis-server package post-installation script subprocess returned error exit status 2
Processing triggers for systemd (237-3ubuntu10.28) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
 redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: redis-server 5:4.0.9-1ubuntu0.2
ProcVersionSignature: Ubuntu 4.15.0-60.67-generic 4.15.18
Uname: Linux 4.15.0-60-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
AptOrdering:
 redis-server:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Mon Sep 9 10:46:09 2019
DuplicateSignature:
 package:redis-server:5:4.0.9-1ubuntu0.2
 Setting up redis-server (5:4.0.9-1ubuntu0.2) ...
 dpkg-statoverride: error: user 'redis' does not exist
 dpkg: error processing package redis-server (--configure):
  installed redis-server package post-installation script subprocess returned error exit status 2
ErrorMessage: installed redis-server package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2019-09-03 (5 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Python3Details: /usr/bin/python3.6, Python 3.6.8, python3-minimal, 3.6.7-1~18.04
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.2
 apt 1.6.11
SourcePackage: redis
Title: package redis-server 5:4.0.9-1ubuntu0.2 failed to install/upgrade: installed redis-server package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Manish Manghwani (manish-m) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in redis (Ubuntu):
status: New → Confirmed
Revision history for this message
Arte (arteeee) wrote :

pata@pata-pc:~$ sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  redis-server
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/35,4 kB of archives.
After this operation, 172 kB of additional disk space will be used.
Selecting previously unselected package redis-server.
(Reading database ... 349606 files and directories currently installed.)
Preparing to unpack .../redis-server_5%3a4.0.9-1ubuntu0.2_amd64.deb ...
Unpacking redis-server (5:4.0.9-1ubuntu0.2) ...
Setting up redis-server (5:4.0.9-1ubuntu0.2) ...
dpkg-statoverride: error: user 'redis' does not exist
dpkg: error processing package redis-server (--configure):
 installed redis-server package post-installation script subprocess returned error exit status 2
Processing triggers for systemd (237-3ubuntu10.31) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
 redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Arte (arteeee) wrote :

Got this error after uninstalling redis and trying to install it again.

no longer affects: redis
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.