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?
apt-get
and like tools need python3 working before they can work. That is expected, you need to use base commands likewget
anddpkg
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 installpython3-minimal
it's usually pretty easy to get most things working/fixed using higher-level tools (adjust for your unstated release/product) – guiverc Jan 25 '22 at 07:55apt
,apt-get
, ordpkg
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. – guiverc Jan 25 '22 at 08:56