LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problem with apt (https://www.linuxquestions.org/questions/debian-26/problem-with-apt-166166/)

efi360 04-04-2004 03:49 PM

problem with apt
 
I am using bonzi linux wich is a barebones version of debian. I have it installed on hard drive ,has KDE desktop and it works fine but I cant get apt to update keeps saying done but does not update. also when tring to install any thing for example (apt-get install kdeyoys) says can not find packeges I am new to apt and dont realy know how to procede to fix this. Any Help apreciated, Thanks efi360.

efi@Box2:~$ su
Password:
Box2:/home/efi# apt-get update
Reading Package Lists... Done
Building Dependency Tree... Done
Box2:/home/efi#

Box2:/home/efi# apt-get install kdetoys
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kdetoys
Box2:/home/efi#
Box2:/home/efi# apt-get install kdegames
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kdegames
Box2:/home/efi#

llamakc 04-04-2004 05:53 PM

Do you have anything in /etc/apt/sources.list? If so, what?

efi360 04-04-2004 06:09 PM

This is what is in there but I dont know if it is what is supposed to be there, I never looked at /etc/apt sources.list when i tried knoppix or kanotix is it correct ? Thanks for help

# /etc/apt/sources.list created by Bonzai Linux

# deb ftp://security.debian.org/debian-security stable/updates main

# KDE - please replace x.x.x with the current KDE version.
# deb ftp://ftp.uni-kl.de/pub/linux/kde/stable/x.x.x/Debian woody main

deb cdrom:[Debian GNU/Linux 3.0 (woody) - Bonzai Linux]/ stable contrib main

llamakc 04-04-2004 06:30 PM

You are using one cd, so an apt-get update is useless unless you obtain an updated cd. These packages may reside on cd2, cd3, etc if you have them. If you don't have them and have a decent net-connection, let us know.

vectordrake 04-04-2004 06:59 PM

uncomment the security update and add this line as well:

deb http://ftp.us.debian.org/debian/ stable main

You could add contrib and non-free as well:

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

apt-get update
apt-get install "whatever"

apt-get upgrade or dist-upgrade will keep your internet connection busy for a while.

You could use a MIRROR closer to you if you like.

efi360 04-04-2004 07:52 PM

Thanks for all the help Kind of Working)
 
Thanks for all the help
bonzai linux only comes with one cd but i did what was sugested took out # and added kde version and added a couple sources now apt is working. but am getting error
would like to lern more about sources. Can i add sources for unstable and testing or will things break

Here is what is in /est/apt/sources now

# /etc/apt/sources.list created by Bonzai Linux

deb ftp://security.debian.org/debian-security stable/updates main
deb http://ftp.us.debian.org/debian/ stable main
deb ftp://ftp.uni-kl.de/pub/linux/kde/stable/3.1.4/Debian woody main
deb http://ftp.us.debian.org/debian/ testing main contrib non-free
deb cdrom:[Debian GNU/Linux 3.0 (woody) - Bonzai Linux]/ stable contrib main

Here is what happend at update

Box2:~# apt-get update
Hit http://ftp.us.debian.org stable/main Packages
Hit http://ftp.us.debian.org stable/main Release
Hit http://ftp.us.debian.org testing/main Packages
Hit http://ftp.us.debian.org testing/main Release
Hit http://ftp.us.debian.org testing/contrib Packages
Hit http://ftp.us.debian.org testing/contrib Release
Hit http://ftp.us.debian.org testing/non-free Packages
Hit http://ftp.us.debian.org testing/non-free Release
Hit ftp://security.debian.org stable/updates/main Packages
Hit ftp://security.debian.org stable/updates/main Release
Hit ftp://ftp.uni-kl.de woody/main Packages
Hit ftp://ftp.uni-kl.de woody/main Release
Reading Package Lists... Error!
E: Dynamic MMap ran out of room
E: Error occured while processing subversion (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
Box2:~#

vectordrake 04-04-2004 07:59 PM

deb http://ftp.us.debian.org/debian/ stable main
deb ftp://ftp.uni-kl.de/pub/linux/kde/stable/3.1.4/Debian woody main

comment those out and see if you can apt-get update without error

efi360 04-04-2004 08:19 PM

Thanks vectordrake that did the trick,
Do yo think thoughs sources conflicted should i delete them out?
What other sources could I add

vectordrake 04-04-2004 08:41 PM

There's a site that has a lot of "private" packages - ones that aren't on the Debian site. Let me see if i can remember it. Something like people.debian.org or whatever. It has stuff like the newest KDE and Gnome for Woody, instead of moving to Sarge or Sid. You might want to add the blackdown site for java. There's a Debian tree on it. Good for easy upgrades.

Sarge is not actually a bad choice right now, as its nearly ready to be released as stable, which will put Woody on the old "frozen" list, like Potato. Keep the security site, as any security updates will still come in for packages that don't get upgraded with apt-get upgrade.

By the way, since you have a testing source now, if you want to actually do the upgrade (not a bad plan), then you should do it in this order:
apt-get update
apt-get upgrade
apt-get dist-upgrade
(then you can apt-get clean if you wnat to clear the var/dpkg list for disk space)

Some would advocate skipping the apt-get upgrade and going straight to dist-upgrade. I reccomend you do as I have layed out. When I have installed from the stable floppies (I usually do a network install of the base system and then upgrade to testing right away and then add my extras like "X" and KDE, etc), I have found that an upgrade to a newer 'version' like testing or unstable goes better with fewer broken packages that way.

I think apt crapped out on you because the stable source was listed in order before the testing source. If you switch them, it may resolve fine. I have done that from unstable and testing. However its not necessary to do it that way.

Your line for KDE is okay, you know if you want 3.1.4, but usually, KDE gets into Debian unstable in short order. If you have their deb source for updating KDE, sometimes there are version conflicts and you'll go with unresolved dependancies for weeks or months (if it upgrades only partly, you may even lose what you have with nothing to replace it. Better to not mix sources too much. If you want 3.2, you'll have to point to the right folder on the server. If its in sarge, forget about it.

here's my /etc/apt/sources.list for my Sarge install:

deb http://mirror.look.ca/linux/debian/ testing main
deb-src http://mirror.look.ca/linux/debian/ testing main
deb http://security.debian.org/ stable/updates main

deb http://ftp.us.debian.org/debian/ testing main
deb-src http://ftp.us.debian.org/debian/ testing main


I haven't added contrib and non-free yet (new install). Notice that I have two servers listed. One is a fast mirror here in Canada, so I have that listed first. I have a cable connection so I may as well get the most I can out of it. If you wnat to take a while and find a fast mirror (or two) from where you're at, download apt-spy and run it for a while (read the man page first so you don't spend the next 24+ hours checking the mirrors all over the world). It'll help you generate a sources.list from fast servers. Don't bother changing the security source. testing is not updated for security bugs. Only stable and unstable are.

efi360 04-05-2004 01:13 AM

Thanks vectordrake,
I copied and pasted your sources in my file then did the update, upgrade. dist-upgrade and now I have kde3.1.5 all works good and I installed all of the bell & whistels I wanted for kde , mozilla ,xmms etc...
Now all I have to do is figure out how to get my other windows partition hda1 and second hd =hdb1 showing in kwickdisk so I can mount it and get to my music for xmms, the only mount point showing is linux hdb6, cd's & floppy any ideas on that one

vectordrake 04-05-2004 04:56 PM

Yep. Are you booting with LILO or GrUB?

efi360 04-05-2004 09:47 PM

I am using LiLO why?

efi360 04-05-2004 09:50 PM

P.s. sorry for not replying sooner but small thing like my job got in my way.
Oh well back to my fun stuff

wren11 11-18-2005 12:01 AM

similar problem
 
I am having an error similar to one you halped some one with earlier, except I don't quite understand how you are saying to fix it. I am running Kanotix on a 6 year old laptop. Synaptic and apt-get are giving me the following error:

E: Dynamic MMap ran out of room
E: Error occured while processing subversion (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/ftp.us.debian.org_debian_dists_testing_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

Is there a relatively easy way for a person with limited knowledge of command line to fix it?
:Pengy:
Thanx
Wren

wren11 11-18-2005 05:18 PM

I figured out how to fix my apt-get issue. The problem was that I added some cd iso's to the synaptic package list. Something on the cd's must have conflicted. Once I used the synaptic settigs and took the cd's off the list, the problem was solved.
Wren


All times are GMT -5. The time now is 10:23 AM.