LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-23-2006, 09:44 AM   #1
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Rep: Reputation: 15
new source site


Hello,

how does one proceed to change source site with packages ?

Thank you.
 
Old 07-23-2006, 11:32 AM   #2
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Select a mirror from the list somewhere on the Debian website.

Edit /etc/apt/sources.list.
 
Old 07-23-2006, 08:28 PM   #3
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
when I correct /etc/apt/sources.list and run aptitude, I get the following:

Code:
W: Couldn't stat source package list http://debian.savoirfairelinux.net etch/main Packages /var/lib/apt/lists/debian.savoirfairelinux.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to update the package lists to correct these missing files
I guess I should first convert packages list from other site (I used gulus.usherbrooke.ca) or construct list of packages available on new site, but how ?

Last edited by thelonius; 07-23-2006 at 08:29 PM.
 
Old 07-23-2006, 09:32 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by thelonius
when I correct /etc/apt/sources.list and run aptitude, I get the following:

Code:
W: Couldn't stat source package list http://debian.savoirfairelinux.net etch/main Packages /var/lib/apt/lists/debian.savoirfairelinux.net_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to update the package lists to correct these missing files
I guess I should first convert packages list from other site (I used gulus.usherbrooke.ca) or construct list of packages available on new site, but how ?
You need a line like this.

Code:
deb http://debian.savoirfairelinux.net/debian/ testing  main
Changing the testing to whatever release you are running. If you are trying to find better mirrors than the crappy Canadian ones I would suggest adding this.

Code:
deb http://ftp2.de.debian.org/debian/ testing main contrib non-free
Which uses the German Debian mirrors which I have found max out my cable connection (600 k/sec) when downloading/installing packages.
 
Old 07-23-2006, 10:07 PM   #5
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by HappyTux
Changing the testing to whatever release you are running.
Code:
deb http://ftp2.de.debian.org/debian/ testing main contrib non-free
it's ok for using 'testing' instead of 'etch', but what about
/var/lib/apt/lists which holds files with lists of packages (like gulus.usherbrooke.ca_debian_dists_etch_main_binary-i386_Packages) ? it seams that 'aptitude' (or 'apt') uses these files to keep tracks of packages from particular site. so what should i do when passing from gulus.usherbrooke.ca to debian.savoirfairelinux.net or ftp2.de.debian.org ? just modifying sources.list is not sufficient. i get the error

Code:
W: Couldn't stat source package list
 
Old 07-23-2006, 10:19 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by thelonius
it's ok for using 'testing' instead of 'etch', but what about
/var/lib/apt/lists which holds files with lists of packages (like gulus.usherbrooke.ca_debian_dists_etch_main_binary-i386_Packages) ? it seams that 'aptitude' (or 'apt') uses these files to keep tracks of packages from particular site. so what should i do when passing from gulus.usherbrooke.ca to debian.savoirfairelinux.net or ftp2.de.debian.org ? just modifying sources.list is not sufficient. i get the error

Code:
W: Couldn't stat source package list

You can use either if using etch then when it is released as the new stable distro you will continue using the stable release if you use testing then when etch is released you will be using the testing branch. For the rest if you want to use a different mirror then you should remove the old lines that will not be needed you only need one mirror. Can you post your /etc/apt/sources.list?
 
Old 07-23-2006, 10:29 PM   #7
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
here it is

thank you

Code:
#
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (20060314)]/ etch main


deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (20060314)]/ etch main

# as suggested from LQ
deb http://ftp2.de.debian.org/debian/ testing main contrib non-free

# added as replacement for the original unaccessible site
#deb http://debian.savoirfairelinux.net/debian/ etch main
#deb-src http://debian.savoirfairelinux.net/debian/ etch main

# original unaccessible site
#deb http://gulus.usherbrooke.ca/debian/ etch main
#deb-src http://gulus.usherbrooke.ca/debian/ etch main

deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main
 
Old 07-23-2006, 10:56 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by thelonius
here it is

thank you

Code:
#
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (20060314)]/ etch main


deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (20060314)]/ etch main

# as suggested from LQ
deb http://ftp2.de.debian.org/debian/ testing main contrib non-free

# added as replacement for the original unaccessible site
#deb http://debian.savoirfairelinux.net/debian/ etch main
#deb-src http://debian.savoirfairelinux.net/debian/ etch main

# original unaccessible site
#deb http://gulus.usherbrooke.ca/debian/ etch main
#deb-src http://gulus.usherbrooke.ca/debian/ etch main

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

Ok that looks right now use dselect update to update both the apt and dpkg databases then you should be able to install any packages you want.
 
Old 07-24-2006, 06:15 AM   #9
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by HappyTux
now use dselect update to update both the apt and dpkg databases
this is what I needed

thank you, it's ok now

BTW, for what possible reason some mirror site (gulus.usherbrooke.ca/debian in my case) might not respond ?
 
Old 07-24-2006, 09:57 AM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by thelonius
this is what I needed

thank you, it's ok now

BTW, for what possible reason some mirror site (gulus.usherbrooke.ca/debian in my case) might not respond ?
I'm not certain but I think that they do not dedicate the bandwidth required to be a Debian mirror. When I first started using Debian a few years ago I tried that mirror among others here in Canada and found them all to be pretty useless. BTW if you want the various multimedia apps/libraries that are not in the official Debian add this line to your sources.list.

Code:
## Various Multimedia Helper Apps Mplayer, Real, w32codecs, etc.. ##
deb http://debian-multimedia.org sid main
Changing the sid to testing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ex-microsoft staffers set up open source directory site LXer Syndicated Linux News 0 07-17-2006 06:21 PM
LXer: Mysql Launches Open Source Collaboration Site LXer Syndicated Linux News 0 04-29-2006 02:54 AM
LXer: New Ukrainian-language open source news site LXer Syndicated Linux News 0 02-09-2006 02:31 PM
Apache server: Displays site correctly first time, than source on refresh. skidrash Linux - Networking 10 09-29-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration