Maybe root into cd/ and list all the repositories installed?
/etc/apt/sources.list
And just remove the ones listed perhaps.
What do you think Banana?
When running apt-get update for a https mirror without apt-transport-https
installed, you probably invalidated your cached (sources) data, as a side
effect invalidating the signatures - this should fix itself after running
"apt-get update" again (you might have to revert to a non-https mirror
temporarily)?
To avoid situation like that in the future, never use dpkg -i directly. In
the rare case you really need to install packages from Ubuntu (or from
another repository) create a corresponding entry in /etc/apt/sources.list and
use aptitude/apt-get to install the package. It helps avoiding any conflicts
between the packages. If you cannot install a package at all because of
missing dependencies, rebuilding the package could help.
But please note, that installing packages coming from other places than the
official, could introduce problems of all kinds, including security issues.
The 404 errors suggest that have outdated entries in your sources.list?
In addition, it seems like something else is installing something in the
background. Stop any other processes that could be using dpkg. Finally, since
you are also getting an error about certain index files not being downloaded,
remove the &&. Instead run:
sudo apt-get update; sudo apt-get install
Use ps aux | grep dpkg command in the terminal to see if dpkg is running and
what it is doing.
Hope this Helps!
-- Victoria