0

I had some problems with apt_pkg and I entered some commands that I found with Google in the terminal. I think it was about Python, because I now have a non-default Python version. My Python version is 3.11 and pip is OK. I can't use add-apt because I don't have apt_pkg and I tried to install it but it didn't work and I entered some codes like this sudo apt update && sudo apt upgrade, but they didn't work. Can you help me install the desktop?

enter image description here

karel
  • 110,292
  • 102
  • 269
  • 299
  • 2
    start again from scratch. Reinstall the OS. – graham Mar 11 '23 at 13:27
  • 1
    No one can help unless you give specifics. "Some codes that I saw on Google" is inadequate. – Organic Marble Mar 11 '23 at 13:35
  • 2
    Don't run random stuff from google without understanding what it does. When you `apt remove...` look carefully at what you are removing before saying yes...make sure you aren't removing stuff you want like desktop. Don't remove stuff you are about to reinstall. Ever. Use `apt install --reinstall` instead. And never never never remove or even change the main version of python from your system. – user10489 Mar 11 '23 at 13:45
  • Did you delete or move content from `/var/lib/apt/lists/`? If so, you will need to run `sudo apt update` to repopulate it – steeldriver Mar 11 '23 at 15:11
  • 1
    Review your `~/.bash_history` file to discover exactly what commands you ran, and their order. [Add that information](https://askubuntu.com/posts/1458800/edit) to your question above. – user535733 Mar 11 '23 at 15:38
  • Review your `/var/log/apt/history.log` file to discover exactly what packages were removed and when. Add that information, too. – user535733 Mar 11 '23 at 15:40

0 Answers0