Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu Server 12.04 LTS, and until yesterday, everything was quite peachy. I have installed several packages (MySQL, apache2) and to my knowledge have those configured correctly. Upon configuration of phpMyAdmin, I found that I was missing the directory path /etc/phpmyadmin, which got me thinking about the install. I am new to Ubuntu, so I guess I missed the message telling me that I did not download phpMyAdmin successfully.

Anyway, trying to use apt-get yesterday/today results in "Failed to fetch..." messages, even if just to run sudo apt-get update.

Some notable details: ···no GUI, command line only (sudo apt-get gksu fails, go figure) ···can ping 4.2.2.2, so I know the internet is out there (somewhere) ···this is a dedicated computer, using Samba to share files with Windows, which does work ···attempted to edit my /sources.list file, for various American/Canadian mirror, to no effect ···ensured I have correct DNS settings in /etc/networks/interfaces

I'm not sure where along the way it happened, but I seem to have lost connections to repositories... :) Any advice (including GO BACK TO WINDOWS) is appreciated.

Edit: fixed by adding an actual nameserver to /etc/resolv.conf

share|improve this question
I don't think you will receive too many "GO BACK TO WINDOWS" answers :P – MiJyn Nov 30 '12 at 16:57
@MiJyn I hope you're quite right! :) – Advant Edge Nov 30 '12 at 17:00
@avant-edge, could you post the full output of sudo apt-get update? – MiJyn Nov 30 '12 at 17:02
Err ca.archive.ubuntu.com precise InRelease – Advant Edge Nov 30 '12 at 17:14
Err security.ubuntu.com precise-security InRelease Err ca.archive.ubuntu.com precise-updates InRelease Err ca.archive.ubuntu.com precise-backports InRelease Err ca.archive.ubuntu.com precise Release.gpg – Advant Edge Nov 30 '12 at 17:14
show 3 more comments

2 Answers

up vote 1 down vote accepted

GO BACK TO WINDOWS

cat /etc/apt/sources.list

and paste output here

or try this:

apt-get update
share|improve this answer
hahaha nice one :P – MiJyn Nov 30 '12 at 17:07
# deb cdrom:[Ubuntu-Server 12.04.1 LTS Precise Pangolin - Release i386 (20120817.3)]/ precise main restricted #deb cdrom:[Ubuntu-Server 12.04.1 LTS Precise Pangolin - Release i386 (20120817.3)]/ precise main restricted # See help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb ca.archive.ubuntu.com/ubuntu precise main restricted deb-src ca.archive.ubuntu.com/ubuntu precise main restricted Major bug fix updates produced after the final release of the ## distribution.deb – Advant Edge Nov 30 '12 at 17:19
ca.archive.ubuntu.com/ubuntu precise-updates main restricted deb-src ca.archive.ubuntu.com/ubuntu precise-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any review or updates from the Ubuntu security team. deb ca.archive.ubuntu.com/ubuntu precise universe deb-src ca.archive.ubuntu.com/ubuntu precise universe deb ca.archive.ubuntu.com/ubuntu precise-updates universe deb-src ca.archive.ubuntu.com/ubuntu precise-updates universe – Advant Edge Nov 30 '12 at 17:20
could u paste this output to pastebin.com? i cant see eol's here. – akurczyk Nov 30 '12 at 17:21
@akurczyk I've never been there before, don't have a login. – Advant Edge Nov 30 '12 at 17:22
show 12 more comments

Please try following the instructions here to manage repositories using the Ubuntu Software Center - it's safer than editing those files by hand:

https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_Repositories_in_Ubuntu

Specifically, try the section about choosing a regional download server starting here:

https://help.ubuntu.com/community/Repositories/Ubuntu#Download_Server

From that page: Selecting "Other" provides the opportunity to select a participating server anywhere in the world. Expand any of the country listings in the left pane and highlight a server. Then select "Choose Server" and pick one from Canada.

[edited to link to the software center page rather than using the technical word "GUI"]

share|improve this answer
I would love to try out a GUI here. I'm not so sure I have one installed though. Using 'gksudo' tells me to install 'gksu' through 'apt-get', which isn't functioning properly. Is there a default GUI I can use? – Advant Edge Nov 30 '12 at 17:36
Software Sources – To Do Nov 30 '12 at 17:42
Problem solved... I will be trying out a GUI very very soon. Thank you for your patience and your responses! – Advant Edge Nov 30 '12 at 18:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.