LinuxQuestions.org
Visit Jeremy's Blog.
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 01-14-2007, 11:41 AM   #16
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62

You should not have more than one Debian repository. That is probably the source of your problem. You should include contrib and non-free, and a multimedia repo, as well. I would also recommend testing for a newbie rather than unstable, but that's up to you.

Make your sources.list look something like this:
Quote:
deb http://ftp.no.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.no.debian.org/debian/ testing main

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

Last edited by rickh; 01-14-2007 at 11:42 AM.
 
Old 01-14-2007, 12:04 PM   #17
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Like richk said only use 1 repo, more than 1 is just casuing apt to download the same info twice.

Very workable list of peoples /etc/apt/sources.list
Post your source.list - LinuxQuestions.org
http://www.linuxquestions.org/questi...d.php?t=330913

If your downloads are going slow just change your sources.list to a different country code or a different mirror.

You could also try installing apy-spy then running it.
Apt-spy: Parses a list of mirrors and tests each of the mirrors for bandwidth.
Writes a /etc/apt/sources.list file based on the responses it gets.

Or netselect-apt will choose the fastest Debian mirror by downloading the full
mirror list and uses netselect to find the best one. netselect-apt writes a
sources.list(5) file that can be used with apt(8).
 
Old 01-14-2007, 01:18 PM   #18
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks. I added the sourcelist rick suggested. I did apt-get update, it went fast with no errors like before.

But now, when I try to install anything it tells me it depends on other packages, and there is a long long list of programs that will be removed in order to proceed with the installation.

Firefox, i.e., if I try to install it from Synaptic, the list of programs that will be removed is huge, and it's basically my whole system...

Ideas?
 
Old 01-14-2007, 01:23 PM   #19
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Use aptitude from the command line instead of apt-get or synaptic. There is probably a way to accomplish the same thing from apt-get or synaptic, but I don't know it.

# aptitude update
# aptitude keep-all
# aptitude dist-upgrade

In the end, you are going to have to settle on one package manager, aptitude, apt-get, synaptic, etc ... and use it exclusively.

Last edited by rickh; 01-14-2007 at 01:25 PM.
 
Old 01-14-2007, 01:49 PM   #20
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Also, if you installed sarge or testing and are moving up the tree to testing or unstable, there are a ton of packages to be pulled and replaced. That is the normal behavior. Apt will rock it. I use straight ap, and not aptitude, but I expect both of them will do the upgrade smoothly.

It will rip out nearly everything, and replace it with the new versions for your new version.

Peace,
JimBass
 
Old 01-14-2007, 02:08 PM   #21
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
rickh: Thank you very much for good help.- I will try that in a bit and come back with issues if they occur.

Jim: You could help me get the unstable Debian right, with all the newest apps and progs? It was called Etch or something, then I need to add some unstable sources right? And if you look at the sources I have, can you tell me if they are right or wrong, and maybe even give me the right ones?
 
Old 01-14-2007, 02:24 PM   #22
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Sure. The speed of the sources I can't comment on, as I'm in New York City USA, and you're in Norway, but if you want to post your /etc/apt/sources.list file, I'll be glad to suggest what changes you should make to get unstable/sid setup and running.

Peace,
JimBass
 
Old 01-14-2007, 03:53 PM   #23
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Hey Jim.

Here is my source.list

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

deb http://www.debian-multimedia.org testing main
 
Old 01-14-2007, 03:56 PM   #24
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Well, that's easy to deal with, just swap every testing with unstable, ala:
Code:
deb http://ftp.no.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.no.debian.org/debian/ unstable main

deb http://www.debian-multimedia.org unstable main
Then when that is changed, run as root:
Code:
apt-get update
apt-get dist-upgrade
Then we'll learn what else you want to get installed. That apt-get dist-upgrade will be big, probably 150 Mb or so download plus, depending on how much you have already installed.

Peace,
JimBass
 
Old 01-14-2007, 05:44 PM   #25
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Jim,

I tried your way yesterday, it returned nothing but error messages. I will give it another shot, and come back with the outcome.
 
Old 01-14-2007, 06:47 PM   #26
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Very odd. Any mirror has all of the build types, stable, testing, and unstable. They might have them by "code" names, which are sarge, etch, and sid. I just checked through the web interface, and they have both sid and unstable.

http://ftp.no.debian.org/debian/dists/unstable/

Please post the errors if they return. If it were security that would make sense, but the base package repositories should all be around.

peace,
JimBass
 
Old 01-14-2007, 09:34 PM   #27
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Ok, I did what Jim said. Now it's upgrading. Just hope there won't be any error messages during the upgrade.

I just want to know if this will install the newest kernel also - could not find any info about that? How new will things be now?

Thanks for staying with me.
 
Old 01-14-2007, 09:39 PM   #28
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The kernel will probably be 2.6.18.3. You can also get 2.6.19 from the repositories if you want it. The command uname -r will give you the running kernel version, but you'll need to reboot to run the new kernel you'll download in the upgrade.

Most of the software in unstable is brand spanking new. Like say a guy releases a new version of software on Monday. Somebody has to download it, build it, mark the dependencies, and turn it into a .deb file. It's usually done within 48 hours of the release. Unstable moves way fast.

Peace,
JimBass
 
Old 01-15-2007, 01:28 AM   #29
Score
Member
 
Registered: Oct 2006
Location: Norway
Distribution: Debian Etch
Posts: 105

Original Poster
Rep: Reputation: 15
Ok, it was all done some hours ago, I did a few configs, and this happened (I will display the outcom).

Code:
Remove the running kernel image (not recommended) [No]? no
dpkg: error processing kernel-image-2.4.27-3-386 (--remove):
 subprocess pre-removal script returned error exit status 1
dpkg: initrd-tools: dependency problems, but removing anyway as you request:
 kernel-image-2.4.27-3-386 depends on initrd-tools (>= 0.1.48).
Removing initrd-tools ...
Errors were encountered while processing:
 kernel-image-2.4.27-3-386
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don't even know if the whole system got upgraded now? What can I do? Reboot?

EDIT: I can't boot in to Debian anymore, probably because of that kernel issue, and that the menu.lst don't have the right entry in it. Do I need to install a new kernel - how can I do that from another OS, any solutions?

Last edited by Score; 01-15-2007 at 02:51 AM.
 
Old 01-15-2007, 08:20 AM   #30
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Boot a Knoppix CD, mount the Debian / partition to check wether a kernel is installed and /boot (if on separate partition) to check menu.lst.
 
  


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
Getting Debian, and a few questions. Happeren Debian 6 01-06-2006 10:19 AM
Debian questions Infernolinux Debian 3 12-10-2005 05:31 PM
New to Debian, a few questions MaTrIx709 Linux - Newbie 6 04-05-2005 09:32 AM
I want to try Debian and I have a few questions Vlad_M Debian 6 01-29-2004 10:40 AM
Questions about Debian mrsolo Linux - Newbie 19 05-10-2003 12:00 AM

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

All times are GMT -5. The time now is 03:23 PM.

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