Hi o/
I've just re-installed Nethunter on my Pixel 6, and proceeded to nh in to apt update, but then :
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libllvm13
Use 'sudo apt autoremove' to remove it.
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.7 MB of archives.
After this operation, 4154 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 312402 files and directories currently installed.)
Preparing to unpack .../postgresql-14_14.4-1+b1_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.4-1+b1_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.4-1+b1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
One sudo apt list --upgradable -a later :
postgresql-14/kali-rolling 14.4-1+b1 arm64 [upgradable from: 14.2-1+b3]
postgresql-14/now 14.2-1+b3 arm64 [installed,upgradable to: 14.4-1+b1]
I can't quite figure on my own why it won't upgrade and how to make it - so I don't have to apt autoremove for the packages to actually be installed.
Thank you in advance for any help you can offer !