LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Apt-get update drives me nuts!!! (https://www.linuxquestions.org/questions/debian-26/apt-get-update-drives-me-nuts-908205/)

nesrail 10-14-2011 01:15 PM

Apt-get update drives me nuts!!!
 
Hello.
Just install Debian Testing. And when I use apt-get update I get an error, saying
Code:

W: Failed to fetch http://www.debian-multimedia.org/dists/testing/InRelease

W: Failed to fetch http://security.debian.org/dists/testing/updates/InRelease

W: Failed to fetch http://security.debian.org/dists/testing/updates/Release.gpg Could not resolve 'security.debian.org'

W: Failed to fetch http://www.debian-multimedia.org/dists/testing/Release.gpg Could not resolve 'www.debian-multimedia.org'

Some times its not a problem and it updates as normal. But when it doesn't it drives me f**ing nuts!

My source list is:
Code:

deb http://ftp.dk.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.dk.debian.org/debian/ testing main contrib non-free

deb http://www.debian-multimedia.org testing main non-free

deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main

Anyone got a fix or know what the problem is?

etech3 10-14-2011 01:56 PM

Ypu have some choices on the multimedia:

For wheezy (testing) amd64, armel, i386, ia64, mipsel, powerpc and sparc packages
add in your /etc/apt/sources.list
deb http://www.debian-multimedia.org wheezy main non-free
or
deb ftp://ftp.debian-multimedia.org wheezy main non-free
or
deb http://www.debian-multimedia.org testing main non-free
or
deb ftp://ftp.debian-multimedia.org testing main non-free

How is your dns and gateway setup?

Might be a dns issue.

nesrail 10-14-2011 02:10 PM

Quote:

Originally Posted by etech3 (Post 4498629)
Ypu have some choices on the multimedia:

For wheezy (testing) amd64, armel, i386, ia64, mipsel, powerpc and sparc packages
add in your /etc/apt/sources.list
deb http://www.debian-multimedia.org wheezy main non-free
or
deb ftp://ftp.debian-multimedia.org wheezy main non-free
or
deb http://www.debian-multimedia.org testing main non-free
or
deb ftp://ftp.debian-multimedia.org testing main non-free

How is your dns and gateway setup?

Might be a dns issue.

I added the four links to my sources.list. And now debian-multimedia updates without problem. http://security.debian.org/dists/tes...ates/InRelease and http://security.debian.org/dists/tes...es/Release.gpg is still a problem. I think my dns is alright. Don't know how to tjeck if is not.

btw. Why do I need to add all four links? Isn't one enough?

etech3 10-14-2011 02:24 PM

You don't have to add all four, pick one and comment out the others for now. If the problem comes up again, just switch.

If I remember, at the top of the Debian forum is the sources list sticky. Read through that.

Take a look at netselct to find some fast sources. Just add with apt-get install.

Read the man pages or:
Code:

apt-cache show netselect

nesrail 10-14-2011 03:54 PM

Quote:

Originally Posted by etech3 (Post 4498660)
You don't have to add all four, pick one and comment out the others for now. If the problem comes up again, just switch.

If I remember, at the top of the Debian forum is the sources list sticky. Read through that.

Take a look at netselct to find some fast sources. Just add with apt-get install.

Read the man pages or:
Code:

apt-cache show netselect

Now it failed again.

etech3 10-14-2011 04:08 PM

You tried pinging? How about tracert?

cynwulf 10-14-2011 05:05 PM

The command should be

Code:

apt-cache policy netselect
Regardless, ftp is working http is not. Are you behind an http proxy? Can browsers connect to http ok?

If you are connecting through a proxy and you configured your browser for that, then apt also needs to know about it - so you'll need to set up the proxy in apt.conf (google, man pages, etc). Or you can just use ftp sources if they all work ok.

etech3 10-14-2011 06:27 PM

apt-cache show <PACKAGE> will give information about the package, like a description.

apt-cache policy <PACKAGE> will show if it installed or not and version info.

Code:

apt-cache policy netselect-apt
netselect-apt:
  Installed: (none)
  Candidate: 0.3.ds1-14
  Version table:
    0.3.ds1-14 0
        500 cdrom://[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 DVD Binary-2 20110626-15:45]/ squeeze/main i386 Packages
        500 http://ftp.us.debian.org/debian/ squeeze/main i386 Packages

and

Code:

apt-cache show netselect-apt
Package: netselect-apt
Priority: optional
Section: net
Installed-Size: 60
Maintainer: Filippo Giunchedi <filippo@debian.org>
Architecture: all
Source: netselect
Version: 0.3.ds1-14
Depends: wget, netselect (>= 0.3.ds1-1)
Filename: pool/main/n/netselect/netselect-apt_0.3.ds1-14_all.deb
Size: 10476
MD5Sum: 53f6337108845119f370ed062c0a7ab8
SHA1: 9190289e73786b0e64cffd75476342575785640c
SHA256: 5a40c2087b00dca2e689286298e4778927d9c50cfb6c9a190f1e215192b8fe2b
Description: speed tester for choosing a fast Debian mirror
 This package provides a utility that can choose the best Debian mirror
 by downloading the full mirror list and using netselect to find the
 fastest/closest one.
 .
 It can output a sources.list(5) file that can be used with package
 management tools such as apt or aptitude.
Enhances: apt
Homepage: http://alumnit.ca/~apenwarr/netselect/
Tag: implemented-in::shell, interface::commandline, network::scanner, role::program, scope::utility, suite::debian, use::downloading


nesrail 10-15-2011 01:45 AM

Quote:

Originally Posted by etech3 (Post 4498803)
apt-cache show <PACKAGE> will give information about the package, like a description.

apt-cache policy <PACKAGE> will show if it installed or not and version info.

Code:

apt-cache policy netselect-apt
netselect-apt:
  Installed: (none)
  Candidate: 0.3.ds1-14
  Version table:
    0.3.ds1-14 0
        500 cdrom://[Debian GNU/Linux 6.0.2.1 _Squeeze_ - Official i386 DVD Binary-2 20110626-15:45]/ squeeze/main i386 Packages
        500 http://ftp.us.debian.org/debian/ squeeze/main i386 Packages

and

Code:

apt-cache show netselect-apt
Package: netselect-apt
Priority: optional
Section: net
Installed-Size: 60
Maintainer: Filippo Giunchedi <filippo@debian.org>
Architecture: all
Source: netselect
Version: 0.3.ds1-14
Depends: wget, netselect (>= 0.3.ds1-1)
Filename: pool/main/n/netselect/netselect-apt_0.3.ds1-14_all.deb
Size: 10476
MD5Sum: 53f6337108845119f370ed062c0a7ab8
SHA1: 9190289e73786b0e64cffd75476342575785640c
SHA256: 5a40c2087b00dca2e689286298e4778927d9c50cfb6c9a190f1e215192b8fe2b
Description: speed tester for choosing a fast Debian mirror
 This package provides a utility that can choose the best Debian mirror
 by downloading the full mirror list and using netselect to find the
 fastest/closest one.
 .
 It can output a sources.list(5) file that can be used with package
 management tools such as apt or aptitude.
Enhances: apt
Homepage: http://alumnit.ca/~apenwarr/netselect/
Tag: implemented-in::shell, interface::commandline, network::scanner, role::program, scope::utility, suite::debian, use::downloading


Have no idea what you guys is talking about. Why do I enter these commands again??

cynwulf 10-15-2011 08:01 AM

apt-cache policy <packagename> will show you what is available and installable. As you've posted no output for anything you've been asked for since the start of the thread, no one can really help you out.

I asked if you were connecting via a proxy? I ask because you can only connect to ftp sources, not http sources. Try pinging the http sources and see if they respond, if they don't, check your network and proxy settings.

@etech3: sorry I thought you were trying to see if it was installed or not, my mistake.

etech3 10-15-2011 08:09 AM

nesrail,

Did you take a look at the sticky on sources?
http://www.linuxquestions.org/questi...e-list-330913/

nesrail 10-15-2011 11:07 AM

@caravel Sorry :)

Code:

netselect:
  Installeret: (ingen)
  Kandidat:    0.3.ds1-21
  Versionstabel:
    0.3.ds1-21 0
        500 http://ftp.dk.debian.org/debian/ wheezy/main i386 Packages


@etech3 yes looked at the sticky. will try and use the sources.list from there


All times are GMT -5. The time now is 05:38 AM.