Quantcast
Viewing all articles
Browse latest Browse all 6125

Upgrade to Ubuntu 24.04.1 LTS from 22.04.4 messed stuff up [closed]

A bunch of stuff seems to be messed up after upgrading from Ubuntu 22.04 to 24.04.1 Python3 and Postgres seem especially affected.

  • had to reinstall pg_admin, but it's fine now, other than the fact it can't find my local postgresql server, though it can connect to remote ones.

  • None of my python apps work now from within their virtual environments. I get messages like:ModuleNotFoundError: No module named 'flask'

  • pip no longer works from my python virtual environments either. If I try to install a module within a venv I get something like ModuleNotFoundError: No module named 'pip' However pip does run outside of virtual environments. Should I uninstall and completely reinstall python3.

  • I had much issue with postgresql, but I think the main issue is just a wrong port number now.sudo netstat -plunt |grep postgres returned nothing before I reinstalled it.I had trouble reinstalling it because of dependencies that refused to install stating that I'm "holding broken packages" even though there were no packages being held. I managed to purged it without destroying the directories, because I'm afraid of losing my existing databases. I reinstalled it, but get the following results:

  • postgres --version returns Command 'postgres' not found, did you mean: and postgresql --version returns not found also

  • systemctl status postgresql shows that it is active.

  • pg_isready says /var/run/postgresql:5432 - no response.

  • I get this message when I run psql.

psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory    Is the server running locally and accepting connections on that socket?

I noticed that the only files in that directory are called 16-main.pid and .s.PGSQL.5433, so it looks like maybe I just need to change the port it's running on, or point all the clients to the new port.

  • netstat -a | grep 5433 showed me that it is running on port 5433 now!
  • sudo netstat -plunt |grep postgres now shows activity on that port too!
  • I cannot locate the pg_hba.conf file

If I could find the pg_hba.conf and change the port back that might solve my issues with this, but I can't seem to locate the pg_hba.conf file.

-Node seems to still work, thank God! I can still run npm run dev and my front end comes up, but my Python and Postgres backend is screwed.

  • I tried to boot into the grub menu (holding down shift), but the only two versions there are 24.04 variants and have the same issues, so no rolling back for me I guess :(

-Guake hot-key command f10 no longer works when the desktop is showing. :-( How annoying. F10 was the only hot-key that didn't interfere with other apps, and now that doesn't work either. :-(

God knows what else is broken, these are just the things I needed to use today. Anyone else's life on pause due to updating? Advice for any of the above issues would be greatly appreciated.


Viewing all articles
Browse latest Browse all 6125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>