Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #194232

Re: apt{-cache,-get,itude} show wrong version of package after update

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: apt{-cache,-get,itude} show wrong version of package after update
Date 2018-03-28 09:40 +0200
Message-ID <vydQB-a3-7@gated-at.bofh.it> (permalink)
References <vy134-7tp-7@gated-at.bofh.it> <vy134-7tp-5@gated-at.bofh.it> <vy5zH-2uZ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Mar 28, 2018 at 07:47:05AM +0900, Mark Fletcher wrote:

[...]

> I'm not sure if you really did what it sounds like you did here, but if 
> you did... you can't mix and match commands to apt-get and aptitude.

I think this is false, at least in such an unrestricted and
sweeping way. Apt (and apt-get, its younger cousin) and aptitude
are just front ends to dpkg and use the same data bases in
the background.

In particular...

> You did apt-get update so you need to use apt-get upgrade, or 
> dist-upgrade, or whatever the apt-get command is

...apt update and apt-get update are equivalent (as most
probably aptitude update is).

>                                             (I don't much use 
> apt-get, have switched to the apt command since upgrading to stretch).

Apt is just a friendlier front-end for apt-get: the command
outputs are not compatible (and you'll see a warning to that
effect in apt, aimed at those who want to use apt's output
in scripts), and aptitude has, AFAIK, some *extra* databases
to record user intention, and a different dependency resolver,
but the basic data sets (which packages are available, what
state each is in, etc.) are common.

> If you want to use aptitude upgrade, or dist-upgrade, or safe-upgrade, 
> or whatever the command is (embarrassingly I have forgotten, I used 
> aptitude for years _before_ upgrading to stretch) you need to first do 
> aptitude update.
> 
> apt-get update followed by aptitude upgrade will lead to pain.

I don't think so: but I'm ready to be proven wrong!

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlq7RL8ACgkQBcgs9XrR2kaZxwCdG1yySXVjC7MUhxIgK1oxoHC1
XPsAn1fHEltkoY62cvsZGkrGqgqsKycI
=IloX
-----END PGP SIGNATURE-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

apt{-cache,-get,itude} show wrong version of package after update Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> - 2018-03-27 20:00 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after  update Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-27 20:30 +0200
    Re: apt{-cache,-get,itude} show wrong version of package after  update Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-27 21:00 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after  update Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-27 21:30 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after update Mark Fletcher <mark27q1@gmail.com> - 2018-03-28 00:50 +0200
    Re: apt{-cache,-get,itude} show wrong version of package after update <tomas@tuxteam.de> - 2018-03-28 09:40 +0200
      Re: apt{-cache,-get,itude} show wrong version of package after update Mark Fletcher <mark27q1@gmail.com> - 2018-04-06 00:40 +0200
        Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-04-06 02:40 +0200
          Re: apt{-cache,-get,itude} show wrong version of package after update Curt <curty@free.fr> - 2018-04-06 11:00 +0200
            Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-04-07 17:20 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after update "John Crawley (johnraff)" <john@bunsenlabs.org> - 2018-03-28 03:10 +0200
    Re: apt{-cache,-get,itude} show wrong version of package after  update Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> - 2018-03-28 21:10 +0200
      Re: apt{-cache,-get,itude} show wrong version of package after update songbird <songbird@anthive.com> - 2018-03-29 01:00 +0200
      Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-03-29 01:10 +0200
        Re: apt{-cache,-get,itude} show wrong version of package after  update Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> - 2018-04-02 11:00 +0200
          Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-04-02 17:50 +0200

csiph-web