I am aware that if one googles the error above, then he would get tons of results. However, after trying many of the proposed solutions, and after working on this error for about a week in full-time, it's time to seek some help.
I am using Oracle VirtualBox on my Windows 10 machine. As a guest OS I installed Ubuntu 16.04.04.
This is what I tried:
As mentioned here, I have
deb https://apt.dockerproject.org/repo ubuntu-xenial main
line in my sources list. How I checked that? by running
find /etc/apt/ -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
in the command line, which gives:
`/etc/apt/sources.list.d/docker.list
1 deb https://apt.dockerproject.org/repo ubuntu-xenial main
/etc/apt/sources.list
1 deb http://de.archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse
2 deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse #Added by software-properties
3 deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe restricted main multiverse
4 deb http://security.ubuntu.com/ubuntu/ xenial-security universe restricted main multiverse
5 deb https://packages.ubuntu.com/xenial/screen/ubuntu xenial main
6 deb-src https://packages.ubuntu.com/xenial/screen/ubuntu xenial main
7 deb-src https://apt.dockerproject.org/repo ubuntu-xenial main`
However, this did not resolve the error, even after sudo apt-get update
which gives:
Reading package lists... Done
W: The repository 'http://de.archive.ubuntu.com/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://de.archive.ubuntu.com/ubuntu xenial-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Failed to fetch https://packages.ubuntu.com/xenial/screen/ubuntu/dists/xenial/InRelease Could not resolve host: packages.ubuntu.com
W: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-xenial/InRelease Could not resolve host: apt.dockerproject.org
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial/main/source/Sources Something wicked happened resolving 'de.archive.ubuntu.com:http' (-5 - No address associated with hostname)
E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-amd64/Packages Something wicked happened resolving 'de.archive.ubuntu.com:http' (-5 - No address associated with hostname)
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/binary-amd64/Packages Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W: Some index files failed to download. They have been ignored, or old ones used instead.
- I should mention that when I add a new source to the list, and press "Reload" in the following pop-up
I get the following error even though I have a working internet for sure.
The E: Unable to locate package XXX
error occurs whenever I want to install a new package, not only with screen
.
So now when I try to install screen
using sudo apt-get install screen
, I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package screen
It is also import to note that I am using proxy.
Since this error already overwhelmed me, I would highly appreciate any help
sudo apt-get update
- my guess is there's some type of other issue at play with repository updates or out of date information in your repository data and it not being able to update properly. – Thomas Ward Aug 06 '18 at 13:35archive.ubuntu.com
- hence your errors relating to your saucy.... Also EOL releases don't have country mirrors....) – guiverc Aug 06 '18 at 13:56systemd-resolve --status | grep 'DNS Servers'
issystemd-resolve: unrecognized option '--status'
– Alsharif Aug 06 '18 at 14:0756 # deb https://packages.ubuntu.com/xenial/screen/ubuntu xenial main
, I have tried your suggestion, but unfortunately it did not work. – Alsharif Aug 06 '18 at 14:46sudo apt update && sudo apt install screen
– Panther Aug 06 '18 at 15:15apt
output from earlier where it can't resolve the domain names properly. This issue would happen regardless of the mixed repos problem. – Thomas Ward Aug 06 '18 at 15:37ping google.com
. If your networking is good, runsudo rm /var/lib/apt/lists/* && sudo apt update
If that fails, try another mirror. – Panther Aug 06 '18 at 15:43ping google.com
I getping: unknown host google.com
, even though I can surf the internet on the same machine. How can I approach this problem? – Alsharif Aug 07 '18 at 07:43sudo apt-get remove --purge resolvconf && sudo apt-get install --reinstall resolvconf
, but the result was that I am not able to reinstall resolvconfig (E: Package 'resolvconf' has no installation candidate
), and the browser isn't opening any page anymore. – Alsharif Aug 07 '18 at 07:58