Postgresql 404 Not Found

Hey guys, brand noobie here so please be gentle. :slight_smile:

While attempting the apt-get update I kept getting the 404 error so I went to the postgresql site, followed all the steps for autoremove and did a fresh install of postgresql for Linux/Debian distro but keep getting the 404 Not Found error. It’s showing “apt.postgresql (dot org)/pub/repos/apt kali-rolling-pgdg Release does not have a Release file.”, and I just can’t find a work-around.

If there’s any more info. I can provide to help please don’t hesitate to ask.

Hi,

Did you run: apt update before executing apt install?

Hope this helps

I did. And I still get the 404 error under postgresql kali-rolling-pgdg release. That’s actually the 1st time the 404 error showed up.

Check your /etc/apt/sources.list. Here is an example how it should look like. Your /etc/apt/sources.list should contain something like:

# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

After that the installation should be simple as:

$ sudo apt update                  
$ sudo apt install postgresql-all

Hope this helps

Lubos

So, when I run the cat command it only shows the deb file. I’m missing the deb-src source package. Could that be the issue?

How do I drop a screenshot on here? Sorry for the dumb questions. lol

Thank you soo much for all the help.