![]() I don't know why the cli is displaying different owners for the same file, I would guess that maybe it's weird unrooted-android file-priv stuff, but the 3 commands above will fix the upgrading problem. I then check /etc/passwd to see if postgres was even a user, but it was there and everything was correct. I checked the /var/lib/postgresql directory with the default kali user and the root user before even using the chown command and the owner of the directory always matched the user I was logged in as, and chown did not change this. ![]() OP was not being a total n00b when the chown command wasn't working, it was the first thing I tried when this issue came up and it was so weird that I went looking for threads on it. You need to run this again to upgrade the package sudo apt update & sudo apt full-upgrade -y Now run this, you HAVE to run these together or it will not work: rm -rf /var/lib/dpkg/info/postgresql* & dpkg -configure -a But if you want to fix it.Īll you need to do is run: sudo apt update & sudo apt full-upgrade -y Something to note is that this package is not important if you are installing Nethunter rootless, because as far as I'm aware rootless does not have support for any of the features that postgresql is used for. I encountered this issue when I was installing Nethunter Rootless 2022.2 via Termux on some old devices that I had. This problem is with Kali Nethunter (mobile) on arm64, it is still a problem and it happens on all arm64 phones. This thread is not properly labeled, the top answer completely wrong, and the correct answer (JP's) is missing a step. If the link is the helpful comment why delete? What's the point of the board? Moderators- if a link only answer is the only helpful one what is the point of deleting? Why allow irrelevant derogatory comments while blocking helpful ones? You're correct about including relevant instructions with the link. But when you attempt to uninstall package, the actual contents will not be uninstalled. Package still would be visible, as status file is not part of info. With this you will wipe postgresql package metadata, specifically file lists and md5sums. If that doesn't work try: rm -rf /var/lib/dpkg/info/postgresql* & dpkg -configure -a Seems postgresql blocks installation, you can unblock it by doing: rm -rf /var/lib/dpkg/info/postgresql*postinstĪfter running above command: dpkg -configure -a Well, let me edit my "link only answer" since obviously the comments before mine were much more helpful. failed! failed! invoke-rc.d: initscript postgresql, action "stop" failed.ĭpkg: error processing archive /var/cache/apt/archives/postgresql-13_13.4-2_b (-unpack): new postgresql-13 package pre-removal script subprocess returned error exit status 1Įrrors were encountered while processing: /var/cache/apt/archives/postgresql-13_13.4-2_bĮ: Sub-process /usr/bin/dpkg returned an error code (1)Įverybody starts somewhere. Invoke-rc.d: could not determine current runlevel Stopping PostgreSQL 13 database server: mainĮrror: Data directory /var/lib/postgresql/13/main must not be owned by root. dpkg: warning: old postgresql-13 package pre-removal script subprocess returned error exit status 1ĭpkg: trying script from the new package instead. Invoke-rc.d: initscript postgresql, action "stop" failed. ![]() Stopping PostgreSQL 13 database server: mainError: Data directory /var/lib/postgresql/13/main must not be owned by root. ![]() invoke-rc.d: could not determine current runlevel 255637 files and directories currently installed.) After this operation, 106 kB of additional disk space will be used. The following packages will be upgraded: postgresql-13 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Use 'sudo apt autoremove' to remove them. The following packages were automatically installed and are no longer required: exfat-fuse gstreamer1.0-pulseaudio libidn11 librest-0.7-0 libsoup-gnome2.4-1 password for kali: Hit:1 kali-rolling InRġ package can be upgraded. ![]() I encounter the below problem: └─$ sudo apt update & sudo apt full-upgrade -y ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |