Score:0

My desktop was deleted and now it cannot be installed

ms flag

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

24601 avatar
in flag
start again from scratch. Reinstall the OS.
Organic Marble avatar
us flag
No one can help unless you give specifics. "Some codes that I saw on Google" is inadequate.
user10489 avatar
in flag
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.
hr flag
Did you delete or move content from `/var/lib/apt/lists/`? If so, you will need to run `sudo apt update` to repopulate it
user535733 avatar
cn flag
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 avatar
cn flag
Review your `/var/log/apt/history.log` file to discover exactly what packages were removed and when. Add that information, too.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.