2017 m. spalio 18 d., trečiadienis

apt failed to fetch sources or download failed

Problem:
E: Failed to fetch http://repo.steampowered.com/steam/dists/precise/InRelease Unable to find expected entry 'steam/source/Sources' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.


Solution:

Go to:
$ cd /etc/apt/sources.list.d

And remove:
$ sudo rm steam.list

Problem:
Oracle JDK 6 is NOT installed.
dpkg: error processing package oracle-java6-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java6-installer

E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution:

$ sudo apt-get remove --purge  oracle-java6-installer