Doubt with apt and dist-upgrade (mariadb involved)

If none of the more specific forums is the right place to ask

Doubt with apt and dist-upgrade (mariadb involved)

Postby circus78 » 2017-12-27 15:16

I am using Debian 7

Code: Select all
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.11 (wheezy)
Release:        7.11
Codename:       wheezy

apt needs to upgrade some packages:

Code: Select all
# apt-get upgrade -s
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  libmysqlclient18 python-reportbug reportbug
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Anyway, if I try apt-get dist-upgrade, I notice this:

Code: Select all
# apt-get dist-upgrade -s
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  libmariadbclient18 mariadb-client-5.5 mariadb-client-core-5.5 mariadb-galera-server mariadb-galera-server-5.5
The following NEW packages will be installed:
  libevent-2.0-5 libgmp10 python-crypto python-gevent python-greenlet python-oauthlib python-requests python-six
The following packages will be upgraded:
  libmysqlclient18 python-reportbug reportbug
3 upgraded, 8 newly installed, 5 to remove and 0 not upgraded.
Remv mariadb-galera-server [5.5.47+maria-1~wheezy]
Remv mariadb-galera-server-5.5 [5.5.47+maria-1~wheezy]
Remv mariadb-client-5.5 [5.5.47+maria-1~wheezy]
Remv mariadb-client-core-5.5 [5.5.47+maria-1~wheezy]
Remv libmariadbclient18 [5.5.47+maria-1~wheezy] [libmysqlclient18:amd64 ]
Inst libmysqlclient18 [5.5.47+maria-1~wheezy] (5.5.58-0+deb7u1 Debian-Security:7.0/oldoldstable [amd64])
Inst libevent-2.0-5 (2.0.19-stable-3+deb7u2 Debian-Security:7.0/oldoldstable [amd64])
Inst libgmp10 (2:5.0.5+dfsg-2 Debian:7.11/oldoldstable [amd64])
Inst python-six (1.1.0-2 Debian:7.11/oldoldstable [all])
Inst python-requests (0.12.1-1+deb7u1 Debian:7.11/oldoldstable, Debian-Security:7.0/oldoldstable [all])
Inst reportbug [6.4.4+deb7u1] (6.4.4+deb7u2 Debian-Security:7.0/oldoldstable [all]) []
Inst python-reportbug [6.4.4+deb7u1] (6.4.4+deb7u2 Debian-Security:7.0/oldoldstable [all])
Inst python-crypto (2.6-4+deb7u7 Debian-Security:7.0/oldoldstable [amd64])
Inst python-oauthlib (0.1.2-1 Debian:7.11/oldoldstable [all])
Inst python-greenlet (0.3.1-2.5 Debian:7.11/oldoldstable [amd64])
Inst python-gevent (0.13.6-1+nmu3 Debian:7.11/oldoldstable [amd64])
Conf libmysqlclient18 (5.5.58-0+deb7u1 Debian-Security:7.0/oldoldstable [amd64])
Conf libevent-2.0-5 (2.0.19-stable-3+deb7u2 Debian-Security:7.0/oldoldstable [amd64])
Conf libgmp10 (2:5.0.5+dfsg-2 Debian:7.11/oldoldstable [amd64])
Conf python-six (1.1.0-2 Debian:7.11/oldoldstable [all])
Conf python-requests (0.12.1-1+deb7u1 Debian:7.11/oldoldstable, Debian-Security:7.0/oldoldstable [all])
Conf python-reportbug (6.4.4+deb7u2 Debian-Security:7.0/oldoldstable [all])
Conf reportbug (6.4.4+deb7u2 Debian-Security:7.0/oldoldstable [all])
Conf python-crypto (2.6-4+deb7u7 Debian-Security:7.0/oldoldstable [amd64])
Conf python-oauthlib (0.1.2-1 Debian:7.11/oldoldstable [all])
Conf python-greenlet (0.3.1-2.5 Debian:7.11/oldoldstable [amd64])
Conf python-gevent (0.13.6-1+nmu3 Debian:7.11/oldoldstable [amd64])

Is there a way to avoid mariadb uninstall, but let python* updates normally?

Here my repos:

Code: Select all
# grep -v ^$ sources.list |grep -v ^#
deb wheezy main
deb wheezy/updates main
deb wheezy-updates main
deb wheezy main
deb wheezy main

Code: Select all
# cat sources.list.d/backports.list
#deb wheezy-backports main
deb wheezy-backports main

And my preferences:

Code: Select all
# cat 00percona.pref
Package: *
Pin: origin
Pin-Priority: 1

Thank you very much
Posts: 32
Joined: 2012-09-14 08:47

Re: Doubt with apt and dist-upgrade (mariadb involved)

Postby llivv » 2017-12-27 18:47

It depends
an easy way? not that I can see.
You have a couple of choices but non of them I know of include using dist-upgrade ....

I'd recommend ( unless you have a specific reason not to do this )
2: TEST the RESTORE FROM Backup to make sure the BACKUP works
3: Get the list of packages that dist-upgrade wants to update install and remove
4: Run apt-get update $PackageName # for each package on the list -- pay close attention to which packages actually uninstalls the packages you want to keep.
4.1: than choose how you want to deal with the upgrade of that package that removed the package you want.

personally: I use aptitude and dpkg almost exclusively.
I know dist-upgrade is almost flawless in most cases
but I have a lot of systems to watch and like to be able to workaround issues similar to the one you mention above in realtime
without always having to follow the dependency chains.
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
Posts: 5614
Joined: 2007-02-14 18:10
Location: cold storage

Return to General Questions

Who is online

Users browsing this forum: ntamas and 6 guests