Op zo 27 jan. 2019 om 19:15 schreef Otto Kekäläinen <o...@debian.org>: > Can you reproduce this issue? What are the steps to reproduce?
1. Install stretch 2. apt install mariadb-server 3. Replace stretch by buster in sources.list 4. apt install mariadb-server Preparing to unpack .../mariadb-server-10.3_1%3a10.3.12-2_amd64.deb ... locale: Cannot set LC_ALL to default locale: No such file or directory /var/lib/mysql: found previous version 10.1 dpkg: warning: version 'p.ci' has bad syntax: version number does not start with digit Unpacking mariadb-server-10.3 (1:10.3.12-2) ... > I cannot find any file *p.ci* from the sources and I have no clue > where it is picking it up. It should pick up the version string from I suspect it's picked up here: VERSION=${0: -12:4} I don't know what is the real full name of the maintainer script here, but I think it's not what you think. > the maintainer scripts (e.g. mariadb-server-10.3.preinstall) but in > this case it sees some other string and I have not figured out what it > is. [10:35] <XTF> jcristau: VERSION=${0: -12:4} this code tries to extract the version number from "mariadb-server-10.3.preinst" but it seems to get "p.ci" instead. [10:36] <jcristau> that code shouldn't make that sort of assumption [10:36] <XTF> jcristau: I agree.. [10:37] <Myon> there should be DPKG_* variables with that info [10:37] <jcristau> preinst runs from somewhere in /tmp [10:37] <Myon> iirc DPKG_MAINTSCRIPT_PACKAGE [10:38] <jcristau> right, what Myon says [10:38] <Myon> https://salsa.debian.org/postgresql/postgresql/blob/11/debian/postgresql-11.preinst#L5 [10:39] <XTF> Thanks, I'll copy that info into the bug report. -- Olaf