I'm new to linux and trying to make an example using Scrapy.
I did the installation of Python 3, but I already had Python 2 installed on my machine and I thought I would have to delete Python 2 or at least replace it.
Looking at the internet I saw some commands about this and I ran some until I found a tutorial and when I ran the listed commands I ended up excluding python.
When I turned on my PC there was no toolbar and I could not open anything! After several attempts with recovery mode I was able to log in again.
But now when I try to run in terminal sudo apt-get install
this error appears: E: The package python-apt needs to be reinstalled, but I can't find an archive for it
I would like to know how to reinstall python