View Issue Details

IDProjectCategoryView StatusLast Update
0007636Kali LinuxKali Package Bugpublic2022-04-03 19:05
Reportersjyzhxw Assigned Tore4son  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2022.1 
Summary0007636: Can't do full-upgrade in Nethunter rootless version due to postgresql issue
Description

┌──(kali㉿localhost)-[~]
└─$ sudo apt -y full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
postgresql-14
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/15.4 MB of archives.
After this operation, 108 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 280825 files and directories currently installed.)
Preparing to unpack .../postgresql-14_14.2-1_arm64.deb ...
invoke-rc.d: could not determine current runlevel
Stopping PostgreSQL 14 database server: mainError: Data directory /var/lib/postgresql/14/main must not be owned by root ... failed!
failed!
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: warning: old postgresql-14 package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
invoke-rc.d: could not determine current runlevel
Stopping PostgreSQL 14 database server: mainError: Data directory /var/lib/postgresql/14/main must not be owned by root ... failed!
failed!
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/postgresql-14_14.2-1_arm64.deb (--unpack):
new postgresql-14 package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/postgresql-14_14.2-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

But when I check the ownership of /var/lib/postgresql/14/main, it is kali, not root.

I've found similar problem reported on the forum.
https://forums.kali.org/showthread.php?59108-Kali-Android-Rootless-upgrade-issues

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-03-20 14:27 sjyzhxw New Issue
2022-03-25 13:57 g0tmi1k Severity major => feature
2022-03-25 13:58 g0tmi1k Severity feature => minor
2022-04-03 19:05 steev Assigned To => re4son
2022-04-03 19:05 steev Status new => assigned