Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Need Help with apt-get?

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
fvs
Posts: 144
Joined: 2006-06-16 22:33

Need Help with apt-get?

#1 Post by fvs »

I just installed sarge 3.1 r2 last night and I'm trying to install multimedia packages and updating, It seems forever to get packages and I then get the message I need to update after all that?
W: you may want to run apt-get update to correct these problems
E: Some index files failed to down, they have been ignored, or old ones used instead.
What do i do?

Daylung
Posts: 103
Joined: 2005-12-24 04:44

#2 Post by Daylung »

You could try updateing and upgrading

Code: Select all

#apt-get update
#apt-get upgrade
then try installing the multimedia packages

User avatar
Red
Posts: 69
Joined: 2006-04-20 12:36

#3 Post by Red »

I think that you have problem with your sources.list or with your internet configuration. Paste the output from cat /etc/apt/sources.list and dmesg | tail .

fvs
Posts: 144
Joined: 2006-06-16 22:33

#4 Post by fvs »

Thanks, Here it is,

sorannos:~# cat /etc/apt/sources.list
# deb file:///cdrom/ sarge main

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060420)]/ unstable contrib main

deb http://security.debian.org/ stable/updates main contrib
deb http://security.debian.org/ stable/updates main contrib

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060420)]/ unstable contrib main

deb http://mirrors.kernel.org/debian/ stable main
deb-src http://mirrors.kernel.org/debian/ stable main

deb http://linux.csua.berkeley.edu/debian/ stable main
deb-src http://linux.csua.berkeley.edu/debian/ stable main


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

deb ftp://ftp.nerim.net/debian-marillat/ sarge main
deb ftp://ftp.nerim.net/debian-marillat/ etch main
deb ftp://ftp.nerim.net/debian-marillat/ sid main

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

dmesg | tail .
tail: error reading `.': Is a directory
sorannos:~# dmesg | tail
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
NET: Registered protocol family 17
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0300140(lo)
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
ACPI: PCI interrupt 0000:00:1f.5 -> GSI 17 (level, low) -> IRQ 201
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49564 usecs
intel8x0: clocking to 48000





sorannos:~#

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#5 Post by Lavene »

You seriously need to clean up your sources.list
fvs wrote:Thanks, Here it is,

sorannos:~# cat /etc/apt/sources.list
# deb file:///cdrom/ sarge main

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060420)]/ unstable contrib main

deb http://security.debian.org/ stable/updates main contrib
deb http://security.debian.org/ stable/updates main contrib

deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060420)]/ unstable contrib main
Here you have some doubles... not good
You probably want to add contrib and non-free
If this is just another mirror you don't need it...
These are no more. They used to be what debian-multimedia is now...
## Various Multimedia Helper Apps Mplayer, Real, w32codecs, etc..
deb http://debian-multimedia.org/ sid main
You alreadu have this one for sarge. You want either sarge, etch or sid.

So a cleaned up sources.list could be:

Code: Select all

deb http://security.debian.org/ stable/updates main contrib non-free

deb http://mirrors.kernel.org/debian/ stable main contrib non-free
deb-src http://mirrors.kernel.org/debian/ stable main contrib non-free

deb http://www.debian-multimedia.org/ stable main
Then run "apt-get update" and you should be all set.

Tina

fvs
Posts: 144
Joined: 2006-06-16 22:33

#6 Post by fvs »

Thanks Tina, I followed up on it and I did the update, However I got this result;

sorannos:~# apt-get update
Get:1 http://security.debian.org stable/updates/main Packages [368kB]
Get:2 http://mirrors.kernel.org stable/main Packages [3349kB]
Get:3 http://www.debian-multimedia.org stable/main Packages [33.6kB]
Get:4 http://www.debian-multimedia.org stable/main Release [128B]
Get:5 http://security.debian.org stable/updates/main Release [110B]
Get:6 http://security.debian.org stable/updates/contrib Packages [621B]
Get:7 http://security.debian.org stable/updates/contrib Release [113B]
Get:8 http://security.debian.org stable/updates/non-free Packages [1431B]
Get:9 http://security.debian.org stable/updates/non-free Release [114B]
Get:10 http://mirrors.kernel.org stable/main Release [95B]
Get:11 http://mirrors.kernel.org stable/contrib Packages [56.2kB]
Get:12 http://mirrors.kernel.org stable/contrib Release [98B]
Get:13 http://mirrors.kernel.org stable/non-free Packages [58.4kB]
Get:14 http://mirrors.kernel.org stable/non-free Release [99B]
Get:15 http://mirrors.kernel.org stable/main Sources [1322kB]
Err http://mirrors.kernel.org stable/main Sources
Connection timed out
Get:16 http://mirrors.kernel.org stable/main Release [97B]
Get:17 http://mirrors.kernel.org stable/contrib Sources [24.8kB]
Get:18 http://mirrors.kernel.org stable/contrib Release [100B]
Get:19 http://mirrors.kernel.org stable/non-free Sources [23.5kB]
Get:20 http://mirrors.kernel.org stable/non-free Release [101B]
Fetched 3917kB in 10m36s (6155B/s)
Failed to fetch http://mirrors.kernel.org/debian/dists/ ... Sources.gz Connection timed out
Reading Package Lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
sorannos:~#
What does the last part of this message mean? Should I not be concerned?
I'd like to tell you I appreciate your time and effort. Thanks. fvs

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#7 Post by Lavene »

fvs wrote:... ... ...
Failed to fetch http://mirrors.kernel.org/debian/dists/ ... Sources.gz Connection timed out
Reading Package Lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
sorannos:~#
What does the last part of this message mean? Should I not be concerned?
I'd like to tell you I appreciate your time and effort. Thanks. fvs
Looks like you just lost the connection with 'mirrors.kernel.org' or something. Nothing to be overly concerened about. Just try again...

If it keeps failing you might want to try some other serveres. You'll find a list of Debian mirrors at http://www.debian.org/mirror/list

Note: if you decide to try a different server make sure you *replace* mirrors.kernel.org' with the new server address and not just add the new one.

Tina :)

fvs
Posts: 144
Joined: 2006-06-16 22:33

#8 Post by fvs »

Thanks Tina, Your really clearing up a lot of things. I have one more annoying problem,
I keep losing my sound. I have to repeatly go to the alsaconfig to get it back? It works after that until I reboot then I lose it once more. My kernel is 2.6.8-2-686, should I upgrade the kernel? If so can I just select the most recent kernel from Synaptic Package Manager?
:) fvs

User avatar
Red
Posts: 69
Joined: 2006-04-20 12:36

#9 Post by Red »

Hi,
if you have a sound card on bord, disable it from bios and try again with alsaconf.

Good luck

fvs
Posts: 144
Joined: 2006-06-16 22:33

#10 Post by fvs »

Thanks Red, I have done that and my audio in my bios is disabled.
How to I upgrade to Etch to give it a go? :?

User avatar
Red
Posts: 69
Joined: 2006-04-20 12:36

#11 Post by Red »

Hi,
change the word "stable" with "testing" in your /etc/apt/sources.list. After that execute

Code: Select all

apt-get update

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#12 Post by Lavene »

Red wrote:Hi,
change the word "stable" with "testing" in your /etc/apt/sources.list. After that execute

Code: Select all

apt-get update
And then, to get your system up to 'testing', you need to

Code: Select all

apt-get dist-upgrade
Be aware though that it's a rather huge upgrade and personally I recomend doing it in single user (recovery) mode since the upgrade includes a move from Xfree86 to Xorg.

Tina

fvs
Posts: 144
Joined: 2006-06-16 22:33

#13 Post by fvs »

Hi Tina, How do I do a (Recovery mode)? Can you explain? Thanks. fvs :oops:

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#14 Post by Lavene »

fvs wrote:Hi Tina, How do I do a (Recovery mode)? Can you explain? Thanks. fvs :oops:
Two ways:
  1. Reboot your computer and select Single user (recovery mode) from your Grub menu.
  2. As root do:

    Code: Select all

    init 1
    This wil take your system down to runlevel 1 which on Debian is the socalled single user mode.
Tina

fvs
Posts: 144
Joined: 2006-06-16 22:33

#15 Post by fvs »

Tina, I have grub on my hda which does not have Single user (recovery mode) and I don't know how else to load it up?
Update, I loaded up Kernel 2.6.8-3-686 to my grub list and it booted, Now here is my new
/etc/apt/sources.list
sorannos:~# apt-get update
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/main Release
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/contrib Release
Hit http://security.debian.org testing/updates/non-free Packages
Hit http://security.debian.org testing/updates/non-free Release
Hit http://www.debian-multimedia.org testing/main Packages
Hit http://www.debian-multimedia.org testing/main Release
Hit http://mirrors.kernel.org testing/main Packages
Hit http://mirrors.kernel.org testing/main Release
Hit http://mirrors.kernel.org testing/contrib Packages
Hit http://mirrors.kernel.org testing/contrib Release
Hit http://mirrors.kernel.org testing/non-free Packages
Hit http://mirrors.kernel.org testing/non-free Release
Hit http://mirrors.kernel.org testing/main Sources
Hit http://mirrors.kernel.org testing/main Release
Hit http://mirrors.kernel.org testing/contrib Sources
Hit http://mirrors.kernel.org testing/contrib Release
Hit http://mirrors.kernel.org testing/non-free Sources
Hit http://mirrors.kernel.org testing/non-free Release
Reading Package Lists... Done
Can you tell me if I need to clean it up or leave it as is? fvs

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#16 Post by Lavene »

That's the output of "apt-get update" but it seems fine. You now have the sources for Testing.

To get to single user mode (aka recovery) from a running system just do:

Code: Select all

init 1
as root (as I said in alternative two in my post above). Then it will stop the X server and other unnecessary things, ask for your root password and dump you into a root shell. From there you do

Code: Select all

apt-get dist-upgrade
Tina

fvs
Posts: 144
Joined: 2006-06-16 22:33

#17 Post by fvs »

Hi Tina, I now have testing kernel 2.6.8-3-686 (uname -sr) but I still can't get Firefox browser, It is in the SPM, but wont install, Because of dependencies?
refox:
Depends: libatk1.0-0 (>=1.9.0) but 1.8.0-4 is to be installed
Depends: libgtk2.0-0 (>=2.8.0) but 2.6.4-3.1 is to be installed
Depends: libxfixes3 but it is not going to be installed
Depends: libxinerama1 but it is not going to be installed

What needs to be done? How does the /etc/apt/sources.list look?
Thanks for help. fvs

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#18 Post by Lavene »

Ah... have you done "apt-get dist-upgrade"? You really need to do that. You can not randomly install packages from testing on a stable system.

I need to know exactly what you have done so far to be able help you further. Your messages is a bit confusing and it seem like you could use some basic reading about Debian releases and APT. Try this URL to learn a bit more: http://www.debian.org/doc/manuals/apt-h ... ex.en.html. Especially chapter 3.5

Your sources is fine for a 'testing' system but unless you do the upgrade properly you'll soon find your self in a real mess.

Tina

fvs
Posts: 144
Joined: 2006-06-16 22:33

#19 Post by fvs »

Hi Tina, I decided to download Etch iso CD 1 and try to install etch this way. Will 1 CD be enough to get started? Will it boot Gui?
I couldn't get smaller version netist to work. OK, I'm going to load the first CD now, I'll let you know. fvs

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#20 Post by Lavene »

Yes, CD1 is really all you need to get started.

Tina

Post Reply