LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 04-20-2004, 02:44 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Need help to configure aptitude


Code:
cat /etc/apt/sources.list
deb ftp://ftp.us.debian.org/debian/ sarge main non-free contrib
deb ftp://ftp.us.debian.org/debian/ sid main non-free contrib
deb ftp://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free

Code:
cat /etc/apt/preferences
Package: *
Pin: release a=sarge
Pin-Priority: 900

Package: *
Pin: release a=sid
Pin-Priority: 800

Package: *
Pin: release o=Debian
Pin-Priority: -10
Code:
cat /etc/apt/apt.conf
APT:efault-Release "sarge";

However, when I do
Code:
aptitude show ~Awoody ~n<packageA>
Code:
aptitude show ~Asarge ~n<packageA>
Code:
aptitude show ~Asid ~n<packageA>
they show information on packageA of identical version, even when there are suppose to have different versions in different distributions.

What have I misconfigured? Also, with the settings in /etc/apt/preferences, do I still need the setting in /etc/apt/apt.conf?

Thanks !
 
Old 04-20-2004, 02:57 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Did you run apt-get update after modifying sources.list?
What does the 'apt-cache policy w3m'' (or other package) says?
 
Old 04-20-2004, 03:49 AM   #3
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
I've done 'apt-get update' and 'aptitude update' (are they the same?).

Code:
apt-cache policy w3m
w3m:
Installed: (none)
Candidate: (none)
Version Table:
0.5-7 0
-10 ftp://www.lugs.org.sg sid/main Packages
0.5-6 0
-10 ftp://www.lugs.org.sg sarge/main Packages
-10 ftp://ftp.us.debian.org sarge/main Packages
-10 ftp://mirrors.kernel.org sarge/main Packages

Code:
apt-cache policy fontconfig
fontconfig:
Installed: 2.2.2-1
Candidate: 2.2.2-1
Version Table:
2.2.2-2 0
-10 ftp://www.lugs.org.sg sarge/main Packages
-10 ftp://www.lugs.org.sg sid/main Packages
-10 ftp://ftp.us.debian.org sarge/main Packages
-10 ftp://mirrors.kernel.org sarge/main Packages
*** 2.2.2-1 0
100 /var/lib/dpkg/status

Fontconfig package does not exist in 'Woody'. But this is the output I get with
Code:
aptitude show ~Awoody ~nfontconfig
Package: libfontconfig1
Version: 2.2.2-2
Priority: optional
Section: libs
Maintainer: Josselin Mouette <joss@debian.org>
Uncompressed Size: 197k
Depends: libc6 (>= 2.3.2.ds1-4), libexpat1 (>= 1.95.6), libfreetype6 (>=
2.1.5-3), zlib1g (>= 1:1.2.1), fontconfig
Description: generic font configuration library (shared library)
Fontconfig is a font configuration and customization library, which does not
depend on the X Window System. It is designed to locate fonts within the
system and select them according to requirements specified by applications.

See the "fontconfig" package description for more information.
Package: libfontconfig1-dbg
Version: 2.2.2-2
Priority: extra
Section: libdevel
Maintainer: Josselin Mouette <joss@debian.org>
Uncompressed Size: 529k
Depends: libfontconfig1 (= 2.2.2-2)
Description: generic font configuration library (debugging symbols)
Fontconfig is a font configuration and customization library, which does not
depend on the X Window System. It is designed to locate fonts within the
system and select them according to requirements specified by applications.

This package contains the debugging symbols associated with libfontconfig1.
They will automatically be used by gdb for debugging fontconfig-related issues.
Package: libfontconfig1-dev
Version: 2.2.2-2
Priority: optional
Section: libdevel
Maintainer: Josselin Mouette <joss@debian.org>
Uncompressed Size: 1362k
Depends: libfontconfig1 (= 2.2.2-2), libexpat1-dev, libfreetype6-dev (>= 2.1.7),
pkg-config
Conflicts: libfontconfig-dev, fontconfig (< 2.1-5)
Description: generic font configuration library (development headers)
Fontconfig is a font configuration and customization library, which does not
depend on the X Window System. It is designed to locate fonts within the
system and select them according to requirements specified by applications.

See the "fontconfig" package description for more information.
Package: fontconfig
Version: 2.2.2-2
Priority: optional
Section: utils
Maintainer: Josselin Mouette <joss@debian.org>
Uncompressed Size: 169k
Depends: libc6 (>= 2.3.2.ds1-4), libfontconfig1 (>= 2.2.1), debconf (>= 0.5),
debconf-2.0, defoma (>= 0.7.0), ucf (>= 0.29), ttf-bitstream-vera,
ttf-freefont, gsfonts-x11, msttcorefonts
Conflicts: libfontconfig1-dev (< 2.2.2-1)
Description: generic font configuration library
Fontconfig is a font configuration and customization library, which does not
depend on the X Window System. It is designed to locate fonts within the
system and select them according to requirements specified by applications.

Fontconfig is not a rasterization library, nor does it impose a particular
rasterization library on the application. The X-specific library 'Xft' uses
fontconfig along with freetype to specify and rasterize fonts.

This package contains a program to maintain the fontconfig cache (fc-cache),
and a sample program to list installed fonts (fc-list).


It seems to indicate that version 2.2.2-2 is in 'Woody'.

Thanks


Quote:
Originally posted by ToniT
Did you run apt-get update after modifying sources.list?
What does the 'apt-cache policy w3m'' (or other package) says?
 
Old 04-20-2004, 04:37 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
The pinning -10 to everything that is distrbuted by Debian is somewhat strange looking. The aptitude doesn't seem to work that way with the ~A definition. use apt-cache policy to see the versions and their priorities.
 
Old 04-20-2004, 05:08 AM   #5
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
I've amended the preferences file.
Code:
cat /etc/apt/preferences
Package: *
Pin: release a=sarge
Pin-Priority: 900

Package: *
Pin: release a=sid
Pin-Priority: 800

Package: *
Pin: release a=woody
Pin-Priority: 700
Code:
apt-cache policy w3m
w3m:
Installed: (none)
Candidate: 0.5-7
Version Table:
0.5-7 0
500 ftp://www.lugs.org.sg sid/main Packages
0.5-6 0
500 ftp://www.lugs.org.sg sarge/main Packages
500 ftp://ftp.us.debian.org sarge/main Packages
500 ftp://mirrors.kernel.org sarge/main Packages

Where does pin value of 500 come from?

Code:
aptitude show ~Awoody ~nfontconfig
still shows the same result as in my previous post. Still seem to indicate that fontconfig 2.2.2-2 is in 'Woody' (same version in 'woody', 'sarge' and 'sid').

Thanks !

Quote:
Originally posted by ToniT
The pinning -10 to everything that is distrbuted by Debian is somewhat strange looking. The aptitude doesn't seem to work that way with the ~A definition. use apt-cache policy to see the versions and their priorities.
 
Old 04-20-2004, 05:51 AM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
All priorities seem to be 500 (the default). Try changing the words sarge, sid and woody in the 'a=' lines to testing, unstable and stable.
 
Old 04-20-2004, 10:14 AM   #7
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
Code:
cat /etc/apt/preferences
Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 800

Package: *
Pin: release a=stable
Pin-Priority: 700
Code:
apt-cache policy w3m
w3m:
Installed: (none)
Candidate: 0.5-6
Version Table:
0.5-7 0
800 ftp://www.lugs.org.sg unstable/main Packages
0.5-6 0
900 ftp://ftp.us.debian.org testing/main Packages
900 ftp://mirrors.kernel.org testing/main Packages

After changing sarge, sid and woody in /etc/apt/preferences to testing, unstable and stable respectively, the priority seems to be corrected. However, when I do
Code:
aptitude show ~Astable ~nw3m
or any ~n<any packagename>, package details of all available debian packages will scroll off the screen for a few mins.

Is my syntax wrong?

Thanks !

Quote:
Originally posted by ToniT
All priorities seem to be 500 (the default). Try changing the words sarge, sid and woody in the 'a=' lines to testing, unstable and stable.

Last edited by davidas; 04-20-2004 at 10:15 AM.
 
Old 04-20-2004, 08:18 PM   #8
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Well, I have been using debian for quite a while and I was't aware of the 'apttude show' command. I have been using 'apt-cache search aSearchTerm' to search for a package and apt-cache policy to see the versions in each distribution. Other way I have been using is to run aptitude in interactive mode and hitting 'l'(small L) and putting a regexp there, e.g. '~d postscript'.

Some research:
syntax
Code:
aptitude show '~nw3m~Astable'
seems to work better. The order is probably not important, but the space is.
Also note that
Quote:
~A<archive>
This will match any package which has a version from the given
archive. Archives include "stable", "unstable", and "experimental".
Has to be interpreted that it will show any package that has some version in the distrbution. Description from newest versions seems to be allways used.
 
Old 04-20-2004, 10:37 PM   #9
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
You're right in saying that description from newest versions seems to be always used. As such, one could be misinformed on the version and availability of a package in a particular distribution.

Thanks

Quote:
Originally posted by ToniT
Well, I have been using debian for quite a while and I was't aware of the 'apttude show' command. I have been using 'apt-cache search aSearchTerm' to search for a package and apt-cache policy to see the versions in each distribution. Other way I have been using is to run aptitude in interactive mode and hitting 'l'(small L) and putting a regexp there, e.g. '~d postscript'.

Some research:
syntax
Code:
aptitude show '~nw3m~Astable'
seems to work better. The order is probably not important, but the space is.
Also note that

Has to be interpreted that it will show any package that has some version in the distrbution. Description from newest versions seems to be allways used.
 
Old 04-21-2004, 04:51 AM   #10
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
See the last point in http://bugs.debian.org/149190
It seems to be a known issue.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get vs. aptitude freddie_leaf Debian 28 01-13-2011 06:56 AM
Aptitude error AndeAnderson Linux - General 3 10-15-2005 03:13 PM
Slackware with Aptitude shag Slackware 8 05-02-2005 01:07 PM
aptitude Metallic Debian 6 04-14-2005 04:47 PM
What are aptitude tests? the_imax General 1 01-11-2005 06:18 AM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration