LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2005, 10:31 PM   #1
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Rep: Reputation: 31
When are security updates available? OR WHat the heck am I mucking up here?


I am running a server with a basic install running stable.

Could someone please explain to me why the update that is made available on security.debian.org is apparently not available to me?

An example:

Today I received a security update regarding gallery, that included the following line:

Quote:
For the stable distribution (woody) these problems have been fixed in
version 1.2.5-8woody3.
So, I run apt-get clean. (just to be sure that the cache is clean)
then apt-get update,
then do apt-cache show gallery.

This is part of what I find in the output:

Quote:
Package: gallery
...
Version: 1.2.5-8woody2
Why is it not the version mentioned in the update message? (1.2.5-8woody3)

Here is my sources list:

Quote:
deb http://security.debian.org/ stable/updates main contrib non-free
deb ftp://ftp.us.debian.org/debian/ stable main non-free contrib
deb-src ftp://ftp.us.debian.org/debian/ stable main non-free contrib
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
Thank you for any assistance
Steve
 
Old 01-18-2005, 12:01 PM   #2
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 31
Here is what I have found out further:

If I remove all the sources except:

Quote:
deb http://security.debian.org/ stable/updates main contrib non-free
I end up with the right version on doing: apt-cache show gallery.

My understanding is that apt automagically finds the latest version of any software from the list of sources given, so what gives?

Steve
 
Old 01-18-2005, 02:01 PM   #3
vrln
Member
 
Registered: Mar 2004
Location: Finland
Distribution: Gentoo
Posts: 235

Rep: Reputation: 30
MEPIS is not pure Debian eventhough it's based on it.
 
Old 01-18-2005, 05:38 PM   #4
pnijjar
LQ Newbie
 
Registered: Jan 2005
Location: Canada
Distribution: Debian
Posts: 12

Rep: Reputation: 0
That is very strange. You are correct: including all the sources should give you the highest version by default. I am not sure what is causing your problem but here is a guess: If somehow you put a package on "hold" then it will not be updated even if there is a newer version. Usually you have to make a conscious decision to do this, however.

If you try adding your other sources again does the problem go away? Or does the package revert to the older version?
 
Old 01-18-2005, 05:39 PM   #5
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by vrln
MEPIS is not pure Debian eventhough it's based on it.
Ummm, not sure what that has to do with anything, vlrn.

As I said I am running Debian stable on a server. Netinstall with only the basics, LAMP, ssh etc.

Steve
 
Old 01-18-2005, 05:45 PM   #6
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by pnijjar
That is very strange. You are correct: including all the sources should give you the highest version by default. I am not sure what is causing your problem but here is a guess: If somehow you put a package on "hold" then it will not be updated even if there is a newer version. Usually you have to make a conscious decision to do this, however.
I haven't pinned anything. This is a stock install .

Quote:

If you try adding your other sources again does the problem go away? Or does the package revert to the older version?
Hmmm. I did that, and the package reverts to the older version.

What does that mean??

Thanks for the thoughts!

Steve
 
Old 01-18-2005, 05:49 PM   #7
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by vrln
MEPIS is not pure Debian eventhough it's based on it.
Perhaps my profile threw you off - see the updated version

Steve
 
Old 01-18-2005, 05:54 PM   #8
pnijjar
LQ Newbie
 
Registered: Jan 2005
Location: Canada
Distribution: Debian
Posts: 12

Rep: Reputation: 0
What does

apt-cache showpkg gallery

show you? It should show that both versions are available.

Also try

dpkg -l gallery

to see the package states (just to make sure).

You don't necessarily need to mess around with config files to
put packages on hold. I don't think it is equivalent to pinning
a package.

I don't know whether posting these two pieces of output will help,
but it will at least establish the problem.
 
Old 01-18-2005, 06:19 PM   #9
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 31
Well, duh :mad:

Quote:
Originally posted by pnijjar
What does

apt-cache showpkg gallery

show you? It should show that both versions are available.

Yes it does! I did not see that there were TWO entries, one of which referred to the newer version. Thanks for pointing that out.

Quote:

Also try

dpkg -l gallery

I hadn't installed the prg yet, so that would not help here. If I had installed, it would have installed the newer version, I'm sure.

Phew, that feels better!

Thanks
Steve
 
Old 01-18-2005, 08:12 PM   #10
Steve Cronje
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Ubuntu, Mepis, Debian
Posts: 158

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by pnijjar

You don't necessarily need to mess around with config files to
put packages on hold. I don't think it is equivalent to pinning
a package.
Yeah, 'hold' applies to a package, and is a dpkg command, while 'pinning' refers to setting priorities to the apt-get utility in apt_preferences. I think you can use pinning to hold a package as well though, if I read the man correctly.

From here

....
The format is simple:

Package: <package>
Pin: <pin definition>
Pin-Priority: <pin's priority>

For example, to keep package sylpheed that I have modified to use "reply-to-list" at version 0.4.99, I add:

Package: sylpheed
Pin: version 0.4.99*

Note that I used an * (asterisk). This is a "wildcard"; it say that I want that this "pin" to be valid for all versions beginning with 0.4.99. This is because Debian versions its packages with a "Debian revision" and I don't want to avoid the installation of these revisions. So, for instance, versions 0.4.99-1 and 0.4.99-10 will be installed as soon as they are made available. Note that if you modified the package you won't want to do things this way.

The pin priority helps determine whether a package matching the "Packages:" and "Pin:" lines will be installed, with higher priorities making it more likely that a matching package will be installed. You can read apt_preferences(7) for a thorough discussion of priorities, but a few examples should give the basic idea. The following describes the effect of setting the priority field to different values in the sylpheed example above.

1001
Sylpheed version 0.4.99 will never be replaced by apt. If available, apt will install version 0.4.99 even if it would replace an installed package with a higher version. Only packages of priority greater than 1000 will ever downgrade an existing package.

1000
The effect is the same as priority 1001, except that apt will refuse to downgrade an installed version to 0.4.99
.....

Ah, the wonders of Debian


Steve
 
  


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
Security Updates jakebhoy Mandriva 2 09-04-2005 06:41 PM
Need Security Updates........I think. unixfreak Linux - Security 1 08-27-2004 12:30 PM
only security updates rafc Debian 2 06-26-2004 12:27 PM
Security Updates AZDAVE Linux - Security 2 06-03-2004 02:16 PM
security updates Tigger Linux - Security 1 09-16-2003 09:38 PM

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

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