[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#87747: apt: fails to compare versions correctly



On Mon, Feb 26, 2001 at 03:26:28PM -0800, Rick Younie wrote:
> On Mon, Feb 26, 2001 at 04:58:24PM -0600, Sam TH wrote:
> > 
> > Well, I looked up that man page (which isn't mentioned by the
> > apt-get(8) man page (methinks a bug)).  It refered to the file
> > /etc/apt/preferences, which doesn't exist on my system.  I tried
> > pinning a package (apt-get install memprof/testing) and this didn't
> > create the file. It did look like that was the file I wanted from the
> > man page, though.  
> 
> I created the file from hints in mailing list posts.  If the
> docs don't cover it, they will soon because Jason's going to
> get flooded with msgs about it. :-)
> 
> Mine,
> 
> Package: *
> Pin: release l=Def
> Pin-Priority: 998
> 
> Package: *
> Pin: release l=APT Beta
> Pin-Priority: 998
> 
> Package: *
> Pin: release l=Progeny
> Pin-Priority: -1
> 
> Package: *
> Pin: release a=unstable
> Pin-Priority: 998
> 
> Standard priority is 998, -1 for don't install from that dist except
> if a commandline request.  I think it requires a valid Release file
> for that tree or dist for this to work.  Best to wait for the docs.

Looks neat.  But how do you find the release names?  Do you pick them
yourself, or do the come in the Release file?

<snip>
> 
> In my opinion, this is unfortunate wording.  The 'but' should be
> 'and'.
> 

Agreed.

<snip>

> 
> FWIW:
> 
> loki:hda1# apt-get install libgtkhtml7
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following extra packages will be installed:
>   libbonobo2 libgal4 libgdk-pixbuf-gnome2 libglade-gnome0 libglade0
>   libgnomeprint-bin libgnomeprint-data libgnomeprint11 libgtkhtml-data
> liboaf0
>   libunicode0 
> The following NEW packages will be installed:
>   libbonobo2 libgal4 libgdk-pixbuf-gnome2 libglade-gnome0 libglade0
>   libgnomeprint-bin libgnomeprint-data libgnomeprint11 libgtkhtml-data
>   libgtkhtml7 liboaf0 libunicode0 
> 0 packages upgraded, 12 newly installed, 0 to remove and 59  not
> upgraded.
> Need to get 1408kB of archives. After unpacking 4989kB will be used.
> Do you want to continue? [Y/n] n
> 
> 
> 
> > 
> > apache-common depends on apache and libmysql6 (apache is actually
> > installed, but no matter). 
> > 
> > glade-gnome depends on gnome-db.  
> > 
> > apt-get check produces no errors.  
> 
> You know what you're doing so I'd recommend trying the following,
> 
> move /var/cache/apt/*.bin out of the way, run apt-get update again.
> 
> It appears that APT's cache is farked but I'm at my limit here.

Well, I tried that, and apt regenerated identical caches.  Then I did
the drastic thing, and killed all of /var/lib/apt and /var/cache/apt,
and reinstalled apt with dpkg.  This fixed nothing, and the list of
errors on 'apt-get upgrade' got longer.

Then, I did the really drastic thing, reinstalled all that is
apt-related, removed apt, and reinstalled it.  And in between, removed
all of /etc/apt/, /var/cache/apt/, and /var/state/apt/.  Then I
recreated my sources.list, and it worked.  

So the question would be, what could have caused this, that removing
the package (or the sources.list file) would fix?

I'm cc'ing the bug again, so Jason knows to close it.  
           
	sam th		     
	sam@uchicago.edu
	http://www.abisource.com/~sam/
	GnuPG Key:  
	http://www.abisource.com/~sam/key

Attachment: pgpZkQbNZooh6.pgp
Description: PGP signature


Reply to: