Install, dowload postfix, could not find "no/archive/ubuntu.com"

Asked by Petter

Removed postfix just to start all over. Error installing. Doesn't find correct library "no/archive/ubuntu/com"
What can I do?
Is something wrong on the web-site? Try via a browser to find the file, but I cannot find it

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Please provide the output of the terminal commands

uname -a
lsb_release -a
sudo apt-get update
apt-cache policy postfix

Revision history for this message
Petter (petter-a) said :
#2

uname -a : Linux webserveren 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a: No LSB modules are available
sudo apt-get update : a lot of errors.
mostly error http://security.ubuntu.com trusty-security Inrelease
could not get http://no.archive.ubuntu.com trusty-backports Inrelease

(Are there any way to get a screendump and paste it here?)
apt-cache policy postfix
: Installed none
Candidate 2.11.0-1
Versionstable
2.11.0-1 0
500 http//no.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Is that a server system (command line only), or a desktop with a graphical x-windows system?

Can you ping 8.8.8.8
Can you ping no.archive.ubuntu.com

Revision history for this message
Petter (petter-a) said :
#4

It has worked just fine. It is virtual computer under win8.1 Hyper-V. I unistalled postfix and was asked if I would delete some files in the end of this uninstalled session. I tyoed yes, but I think that was wrong. Do I need to create som directories again or do I nees to reinstall everything from start? If you look up the website http://no.archive.ubuntu.com/ubuntu there is some files there. I get error downloading these files.

Revision history for this message
Petter (petter-a) said :
#5

ping 8.8.8.8 is ok
ping no.archive.ubuntu.com --> unknown host

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

You might try switching from the Trondheim server to another one (e.g. University of Oslo http://ftp.uninett.no/ubuntu/ ) and test whether you receive the same errors. This should rule out any problems specific to the no.archive.ubuntu.com server.

Revision history for this message
Petter (petter-a) said :
#7

How can I do this change. Is it some place I can write a command?

Revision history for this message
Petter (petter-a) said :
#8

How can I do this change. Is it some place I can write a command?

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Our messages crossed each other.

If you cannot ping no.archive.ubuntu.com you seem to have a problem with the network setup. I assume pinging ftp.uninett.no will also fail. So I propose to test other things before changing the repository server configuration.

You could try

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
ping no.archive.ubuntu.com

Revision history for this message
Petter (petter-a) said :
#10

now I get answer from no/no.archive.ubuntu.com. Should I then try sudo apt-get install postfix ?

Revision history for this message
Petter (petter-a) said :
#11

now I get answer from no/no.archive.ubuntu.com. Should I then try sudo apt-get install postfix ?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#12

It seems that there is/was a problem that the server was not able to resolve the hostnames. That echo command should have cured that for the current session. Yes, you should be able to do
sudo apt-get update
sudo apt-get install postfix
(and eventually "sudo apt-get upgrade" or "sudo apt-get dist-upgrade" to install updates for all packages where updates are available).

Revision history for this message
Petter (petter-a) said :
#13

Thanks Manfred Hampl, that solved my question.