Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'unknown user 'redis' in statoverride file'

I'm installing redis, everytime I run this command sudo apt install redis-server I got an unrecoverable fatal error

I already tried many solutions to completly remove redis, redis-server, but nothing worked, this is the error

dpkg: unrecoverable fatal error, aborting: unknown user 'redis' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2)

like image 781
ELTA Avatar asked May 20 '19 15:05

ELTA


1 Answers

I solved it by opening the statoverride file using

sudo nano /var/lib/dpkg/statoverride

then removing the line with the user called "redis" along with any blank lines.

like image 102
ELTA Avatar answered Nov 01 '22 13:11

ELTA