LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-27-2003, 01:38 PM   #1
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
installing an unstable package from debian's online package archive


I've found XCHAT 2.0.5 in the unstable section of Debian's package archive - http://packages.debian.org/unstable/net/xchat.html.

How can i modify the sources.list file so that i can do a clean apt-get? I tried to install one package at a time but it is really frustrating!!!!!!!!!!!!!!!!!!!!!!!! (every package depends on some 3 other packages!) Thanks in advanced... (And since i'm on the same question, how can i make this thing, generic? i.e. since i'm generally new, how can i add a website to the sources.list file - i know that it takes the form of "deb http://site.address main/unstable" but either i'm stupid, or out of luck, but I always get this error - "couldn't stat source package list.."

Thanks in advance.. Ganninu.
 
Old 10-27-2003, 02:35 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
well after adding something to your /etc/apt/sources.list you need to UPDATE: apt-get update, after that you are ready to install.
 
Old 10-27-2003, 03:46 PM   #3
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Yes i know, but I get this error:

The entries you made in sources.list did not work. Here is the error message from apt:

? E: Dynamic MMap ran out of room E: Error occured while processing vifm (NewPackage) E: Problem with MergeList
? /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_main_binary-i386_Packages E: The package lists or status
? file could not be parsed or opened.
 
Old 10-27-2003, 07:27 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 ganninu
Yes i know, but I get this error:

The entries you made in sources.list did not work. Here is the error message from apt:

? E: Dynamic MMap ran out of room E: Error occured while processing vifm (NewPackage) E: Problem with MergeList
? /var/lib/apt/lists/ftp.uk.debian.org_debian_dists_unstable_main_binary-i386_Packages E: The package lists or status
? file could not be parsed or opened.
You need to add a line APT::Cache-Limit 10000000; to the file /etc/apt/apt.conf if it does not exist then create it.
 
Old 10-27-2003, 11:50 PM   #5
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Thanks, it really worked!!!

However, I still couln't reach my ultimate goal - that to install xchat version 2.0.5.

I found a new mirror: ftp.it.debian.org/debian

I included in the sources.list as :

deb http://ftp.it.debian.org/debian unstable main non-free contrib

Still, I cannot get my hands on Xchat v.2.0.5 (which I know for sure it's there - ftp://ftp.it.debian.org/debian/pool/main/x/xchat):

debian:/home/james# apt-get update
Hit http://ftp.it.debian.org unstable/main Packages
Hit http://ftp.it.debian.org unstable/main Release
Hit http://ftp.it.debian.org unstable/non-free Packages
Hit http://ftp.it.debian.org unstable/non-free Release
Hit http://ftp.it.debian.org unstable/contrib Packages
Hit http://ftp.it.debian.org unstable/contrib Release
Reading Package Lists... Done
Building Dependency Tree... Done
debian:/home/james# apt-cache search xchat
xchat - IRC client for X similar to AmIRC <--- this is prolly the older version (xchat1.0.8)
xchat-common - Common files for X-Chat
xchat-text - IRC client for console similar to AmIRC
xirssi - GTK Version of irssi (Development version)
debian:/home/ganni# apt-get install xchat*
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat-2.0.5
debian:/home/ganni# apt-get install xchat-2.0.5
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat-2.0.5
debian:/home/ganni# apt-get install xchat_2.0.5
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat_2.0.5
debian:/home/ganni# apt-get install xchat_2.0.5*
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat_2.0.5-3_i386.deb
debian:/home/ganni# apt-get install xchat_2*
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat_2.0.5-3_i386.deb

Last edited by ganninu; 10-28-2003 at 12:01 AM.
 
Old 10-28-2003, 07:55 AM   #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 ganninu
Thanks, it really worked!!!

However, I still couln't reach my ultimate goal - that to install xchat version 2.0.5.

I found a new mirror: ftp.it.debian.org/debian

I included in the sources.list as :

deb http://ftp.it.debian.org/debian unstable main non-free contrib

Still, I cannot get my hands on Xchat v.2.0.5 (which I know for sure it's there - ftp://ftp.it.debian.org/debian/pool/main/x/xchat):

debian:/home/james# apt-get update
Hit http://ftp.it.debian.org unstable/main Packages
Hit http://ftp.it.debian.org unstable/main Release
Hit http://ftp.it.debian.org unstable/non-free Packages
Hit http://ftp.it.debian.org unstable/non-free Release
Hit http://ftp.it.debian.org unstable/contrib Packages
Hit http://ftp.it.debian.org unstable/contrib Release
Reading Package Lists... Done
Building Dependency Tree... Done
debian:/home/james# apt-cache search xchat
xchat - IRC client for X similar to AmIRC <--- this is prolly the older version (xchat1.0.8)
xchat-common - Common files for X-Chat
xchat-text - IRC client for console similar to AmIRC
xirssi - GTK Version of irssi (Development version)
debian:/home/ganni# apt-get install xchat*
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat-2.0.5
debian:/home/ganni# apt-get install xchat-2.0.5
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat-2.0.5
debian:/home/ganni# apt-get install xchat_2.0.5
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat_2.0.5
debian:/home/ganni# apt-get install xchat_2.0.5*
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat_2.0.5-3_i386.deb
debian:/home/ganni# apt-get install xchat_2*
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package xchat_2.0.5-3_i386.deb
You would need a line to install like apt-get install xchat/unstable , apt-get install -t unstable xchat or apt-get install xchat=2.0.5-3 to install the exact version. It looks like you still have sources for stable (Woody) in your sources list are you trying to use apt pinning? If so what have you put in your /etc/apt/apt.conf and /etc/apt/preferences files? If you want to continue to using stable without pulling in a lot of packages from unstable you could use a backport for woody from Apt-get.org it looks like you can get 2.0.5-2 for woody from there.
 
Old 10-28-2003, 08:31 AM   #7
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
I'll try it when I arrive home... In the mean time I'd like to ask you what do you mean by "apt pinning". You also said that "looks like you still have sources for stable (Woody) in your sources list" - but i commented out every apt source from the sources.list file and left only this line:
deb http://ftp.it.debian.org/debian unstable main non-free contrib

Does it still get the stable only since my woody release is "stable" ??

Last but not least - (I went to the apt-get.org site and found it useful) - what is a backport when we talk about stable/unstable?


I thought I was getting to know debian, but now I'm more confused than ever

Last edited by ganninu; 10-28-2003 at 09:08 AM.
 
Old 10-28-2003, 10:29 AM   #8
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Ok, I tried them, and this is the result I got:

debian:/home/ganni# apt-get install xchat/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Release 'unstable' for 'xchat' was not found
debian:/home/ganni# apt-get install xchat*/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Release 'unstable' for 'xchain' was not found
debian:/home/ganni# apt-get install -t unstable xchat
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, xchat is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debian:/home/ganni# apt-get install xchat=2.0.5-3
Reading Package Lists... Done
Building Dependency Tree... Done
E: Version '2.0.5-3' for 'xchat' was not found
debian:/home/ganni# apt-get install xchat=2.0.5-3/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Version '2.0.5-3/unstable' for 'xchat' was not found



Moreover. the /etc/apt/apt.conf file contains only one line:
APT::Cache-Limit 10000000;

(Ah, I have no /etc/apt/preferences file)


Last edited by ganninu; 10-28-2003 at 10:49 AM.
 
Old 10-28-2003, 01:14 PM   #9
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 ganninu
Ok, I tried them, and this is the result I got:

debian:/home/ganni# apt-get install xchat/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Release 'unstable' for 'xchat' was not found
debian:/home/ganni# apt-get install xchat*/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Release 'unstable' for 'xchain' was not found
debian:/home/ganni# apt-get install -t unstable xchat
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, xchat is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debian:/home/ganni# apt-get install xchat=2.0.5-3
Reading Package Lists... Done
Building Dependency Tree... Done
E: Version '2.0.5-3' for 'xchat' was not found
debian:/home/ganni# apt-get install xchat=2.0.5-3/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Version '2.0.5-3/unstable' for 'xchat' was not found



Moreover. the /etc/apt/apt.conf file contains only one line:
APT::Cache-Limit 10000000;

(Ah, I have no /etc/apt/preferences file)
OK what does apt-cache policy xchat show on your machine here is what it looks like on my machine.

Code:
[02:30 PM Tue Oct 28: stephen @ ~]
>$ apt-cache policy xchat
xchat:
  Installed: 2.0.5-3
  Candidate: 2.0.5-3
  Version Table:
 *** 2.0.5-3 0
        600 http://ftp2.de.debian.org unstable/main Packages
        100 /var/lib/dpkg/status
     2.0.2-1 0
        990 http://ftp2.de.debian.org testing/main Packages
     1.8.9-0woody2 0
        500 http://security.debian.org stable/updates/main Packages
        500 http://ftp2.de.debian.org stable/main Packages
You use the apt-cache policy to find out where programs are going to be installed from and what version they would be. To answer your question from above apt-pinning is what you are trying to do right now but have not set it up properly and you are doing it in a not recommended manner. When you use "pinning" you are trying to get packages from another branch like testing when you are running stable or from unstable when you are running testing you should not be trying to get a package from unstable if you are running stable there is just too much difference between them for packages to install cleanly. To get the newer version of the package when running stable you should use the backport I suggested.

To answer another question from above a backport is when someone has made a debian .deb package which has been compiled for the branch you are using in this case stable from sources that in this case again are from the unstable branch which allows you to in essence install an unstable package on your machine with few problems because you will already have or can get the required libraries and not have to update your whole install or most of it to unstable to get the program you want.

The reason you have no /etc/apt/preferences is because you have not setup your machine for the apt pinning this is where you would put the preferences as to which branch you would like apt to get programs from and their default priority what my file looks like:
Code:
Package: *
Pin: release testing
Pin-Priority: 900

Package: *
Pin: release unstable
Pin-Priority: 600
These settings tell apt that testing has a higher priority than unstable so if I want to install a program then it wiil look to testing for the install unless I specifically tell it to install from unstable with the commands I posted above.

Hopefully this does not get you more confused what you really should do is put a line for the backport in the sources.list uncomment your stable sources comment out the unstable line and apt-get update then try and install the backport of Xchat then do some reading on the apt packaging system get a better understanding of how it works and then venture into something like pinning to get the latest apps if that is want you want.
 
Old 10-28-2003, 01:29 PM   #10
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
ganni@debian:~$ apt-cache policy xchat
xchat:
Installed: 1.8.9-0woody2
Candidate: 2.0.5-2.backports.org.1
Version Table:
2.0.5-2.backports.org.1 0
500 http://www.backports.org stable/all Packages
*** 1.8.9-0woody2 0
500 http://security.debian.org stable/updates/main Packages
100 /var/lib/dpkg/status
 
Old 10-28-2003, 03:17 PM   #11
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 ganninu
ganni@debian:~$ apt-cache policy xchat
xchat:
Installed: 1.8.9-0woody2
Candidate: 2.0.5-2.backports.org.1
Version Table:
2.0.5-2.backports.org.1 0
500 http://www.backports.org stable/all Packages
*** 1.8.9-0woody2 0
500 http://security.debian.org stable/updates/main Packages
100 /var/lib/dpkg/status
Yes so now all you should have to do is apt-get install xchat and it will install it. What this show you is that you have 1.8.9-0.... installed and the candidate for installation is 2.0.5-2 when you install.

[edit]
You may only have to do an apt-get upgrade to install the package.
[/edit]

Last edited by HappyTux; 10-28-2003 at 03:21 PM.
 
Old 10-29-2003, 01:39 AM   #12
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
Ah OK, I will try it at home... I refrained from doing so yesterday, cos I thought it will re-install the previous version of xchat! Thanks - will let you know the outcome
 
Old 10-29-2003, 07:57 AM   #13
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Original Poster
Rep: Reputation: 30
First of all thanks a lot for your continuous support, HappyTux - I really learned a lot from this post. Let me tell you how things went after the previous post:

I did an apt-get install xchat (since the newer version was a candidate), however I was getting an error about some broken packages which couldn't be installed. (Apparently xchat 2.0.5 depended on some critical libs such as glib2, gtk2+, lib6c.. ). To go around this problem i then did:

apt-get remove xchat

and then

apt-get install xchat

This last command installed the latest xchat and alllll the deps (some 74MB of debs packages!!) which not only resulted in a newer xchat, but also an imporoved look, since the fonts now look nicer (could be because of the new gtk2+)..

Thanks again.
 
Old 11-07-2003, 03:00 PM   #14
littlepeon
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
hey there...
as you saw..just updating 1 package gave you MANY more...i would suggest using the pinning method....it will keep your unstable packages updated without having to go the full blown unstable route..
some of the packages, like libc6 will get security updates (normally for buffer overruns)...the updates will only be included in the stable package..however only the next version of the unstable package will have the fix(normally uploaded the same day)---unless you pin, if you have your sources set to stable, the unstable packages will only get updated if you do it manually-package by package

---just my .02 euros..
have fun...
LP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unstable espgs package in slackware 10.2 lazyboy0001 Slackware 0 09-26-2005 02:55 PM
How YOU (Yast Online Update) verifies package integrity before installation? tux_addicted SUSE / openSUSE 2 09-16-2005 04:25 AM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM
Installing GCC from The Online Debian Package Archive Erik_the_Red Ubuntu 1 05-30-2005 10:11 PM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM

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

All times are GMT -5. The time now is 06:26 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