W
W
Win32Sector2015-11-03 13:18:28
linux
Win32Sector, 2015-11-03 13:18:28

Why might apt-get not work on Ubuntu?

Hello colleagues.
Such a situation:
There is a machine with ubuntu 14.10 on board. For some reason, apt-get does not work, namely, when I do sudo apt-get mc, it writes E: Unable to locate package mc and so on with any packages.
The Internet was connected through a proxy with IP authorization. Configured a proxy: 1. Made export http_proxy, etc., 2. added proxy lines to files in /etc/apt/apt.conf and /etc/apt/apt.conf.d/proxy, in /etc/bash .bashrc, in /etc/environment. The result - the Internet works, wget downloads, apt-get refuses.
I spat and connected and configured the USB modem and cleaned the traces of the proxy on the computer - the essence is the same. The Internet works in the browser, YouTube shows, wget downloads, apt-get - No.
When executing apt-get update, in any case, it writes Err <address> Sources 404 Not Found
Where to dig, comrades?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Oleg Tsilyurik, 2015-11-03
@Win32Sector

Where to dig, comrades?

You don't have up-to-date lists of repositories in /etc/apt/sources.list The
best way to generate content is from here: Ubuntu Sources List Generator

R
Ruslan Fedoseev, 2015-11-03
@martin74ua

and actually sources are described? check apt configs

R
Roman Mirilaczvili, 2015-11-03
@2ord

Double check if the sources in /etc/apt/sources.list are correct
Temporarily disable third party sources (PPA) to be safe.

sudo apt-get update
sudo apt-get install mc

W
Win32Sector, 2015-11-03
@Win32Sector

Thank you. Indeed, there were irrelevant links to the repositories.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question