Score:0

deleted python3 and solutions don't work (apt-get maybe the problem?)

cn flag
o_o

I know it was really silly command but I deleted python3…
I read almost all of the solution you guys gave but it doesn’t work.

First of all, I tried some solutions suggested in
Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work
I deleted package 'python3' on Ubuntu and I have lost dashboard, terminal and Unity. Help me to restore my data please

But first of all, in my Ubuntu, sudo apt-get update doesn’t work. I tried to change the source file but it doesn’t work.
Also I checked the nameserver set in /etc/resolv.conf.
error code…ahah

Main point is I tried every command suggested in those links and they didn’t work. I think remove python3 and apt-get doesn’t work at all, including apt-get update.

Can anyone give me a help?

Someone avatar
my flag
How did you removed python3
guiverc avatar
cn flag
`apt-get` and like tools need python3 working before they can work. That is expected, you need to use base commands like `wget` and `dpkg` to reinstall... ie. not the front-end tools (that need python3) that make it easier to do things... You didn't provide release details; but if you install `python3-minimal` it's usually pretty easy to get most things working/fixed using higher-level tools (*adjust for your unstated release/product*)
Artur Meinild avatar
vn flag
The main issue is that Python3 is the default version, hence you have probably wrecked your system. Any other solutions that might work should be added to the above Q&A, which covers the exact same topic.
o_o avatar
cn flag
o_o
@guiverc Ah I didn’t know apt-get is also python3 based. I tried every command in https://askubuntu.com/questions/384033/removed-python-3-and-now-ubuntu-software-center-terminal-and-other-applications and it didn’t work
o_o avatar
cn flag
o_o
@guiverc I’ll try python3-minimal thanks!
o_o avatar
cn flag
o_o
@ArturMeinild I don’t think is exact same question, cuz apt-get doesn’t work at all in my Ubuntu. I’ve tried every command suggested in that link
Artur Meinild avatar
vn flag
You misunderstand. It's the same question, but maybe there isn't a suitable answer. This can be redeemed, however.
guiverc avatar
cn flag
If you're using a Ubuntu Core product (eg. Ubuntu Core 20 or another *year* format product), there is no `apt`, `apt-get`, or `dpkg` like commands as they are *snap* package only products; thus differ to the common *year.month* format products of Ubuntu. Adding python3 won't change that.
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.