View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007636 | Kali Linux | [All Projects] Kali Package Bug | public | 2022-03-20 14:27 | 2022-04-03 19:05 |
Reporter | sjyzhxw | Assigned To | re4son | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | 2022.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0007636: 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 | ||||