From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 121731A9B4A for ; Sat, 8 Feb 2025 12:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739018719; cv=none; b=Twcq6V4WcJJe2ek2Eqs9E1QUfwDHE2z1x9XYXTVPB6DSilvmb6tIDn5IkyCHS+RP72cXluC8Unky9kR70Ub57WqSOoO0urr+iHF/SyHNnzuUFb+yVgL7NUzBNDV+f9X/TCJ7YLJk4Tih0Dmad5J9KmROrYFFAisH2+GcEzlXGR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739018719; c=relaxed/simple; bh=iNRLbXaSB21T4IlCCrD3g6OF8zp4bnJYC2NyQLhG5Vc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DIfF762x9K0HAhQcIxIZ0ZolntwqqlKX1gZJnzeCmQz9mB6cZk0uZqwkKKeF8DKiUigNQJuZHbz58tkudZVwv49wqvVn+9slKizjNtsbV10BzKDAWnTnJkk8JecRdLSy229P2JUGzav9w//ITxIasHqk1mcFBBgMHKHEsFqmbkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DaoglhBE; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DaoglhBE" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-ab78e6edb99so210162366b.2 for ; Sat, 08 Feb 2025 04:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739018715; x=1739623515; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references :accept-language:mail-followup-to:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=+2bE9c/SBpgFWMT8vP+Bg4GCRxEcnCcQ7UfEBXhtuR0=; b=DaoglhBEOK4VFiY05aaOByvyJUViFrjcSu2Du38WZg8MDmo98k5mSXmFxtHVbaYxIM kWuLp7i/uwpgwh9BUhz5fjUvNbf0amY2uWgCDlLy/8Io1c5tKMNqosyMvSUfDEFnEPHu Oo0x2Ix3momX21y1lk1HNHbV+p7ogpgDFdn5zs38jqn7qUHAa/6Pz46Yk8T2yM322pDc qg+qHCwqEJOwYXG+NIT4AEAxe1InNPx0of8fHFb5RZ+yxXKxscp5aIjbsLPkx54/FDnv lyEMemq6P+249PqWsgtANx0DlckLBrzpuvhyXK20S5mPqNqMZO38VQrcSiqVRX/TUXGT rEZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739018715; x=1739623515; h=in-reply-to:content-disposition:mime-version:references :accept-language:mail-followup-to:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+2bE9c/SBpgFWMT8vP+Bg4GCRxEcnCcQ7UfEBXhtuR0=; b=WReddAsl3Unpp3XULXVTgLr5F+2GkHTRr15iUmAn5A3rP3XzqrgunbRN+TpHYc4+Q+ YulymjH0lNPSSD8G7wFZIL/WPJBfAfw8pAKAr+JbpWOK4500aTv8LKbyvhMc6SJd8RTK u5cMwRXCpOSWL/T8vXtcZLackx4m5Ze2RNDueWTZmRfHxhS3/Z+2XnlpZhg7EHhODn1y wB9NFrbogigqhcHDm6tYbz8O8uMO/KF/xlcvb8OFCuIWS9N8IGGcSAZVF9t5gnm07zbk 5OpPi6U+nv7gM4NSH1TVWOjNZEhjUReIbFReQPO20B47PuWi6U4qq1GhkoIAqDicl3cb LHYA== X-Forwarded-Encrypted: i=1; AJvYcCWXP8Bn3icYD9TmuuDVtWeo9K6Z0ZaCOdlo3eF7Owo8TYAZniSVg01FriUqAS//xuaJJqRbJPgn@lists.linux.dev X-Gm-Message-State: AOJu0YzAnzb3jb0JU03Ddkucey27jHjDvmeTRkG7m1HCdfrfKGtkFHye O0WqCNJJ5PWJfPY3MLg/KZfc6AEc69B6mFcOdfdO4h8izeupwdKqWR4rHQ== X-Gm-Gg: ASbGncuVeHHa/S3FmQgRYbNq1JFkTx9CAS2dhHn+9lhbm+bVL9nNjqwd+/l3m859Uru 5pFpbt3Dr8GcrUPPUAK9IRn/SSVXLGKLKcwa8951PDiA+7dTCQoTZWFsgfw2eoHoKUaxOqyPVFu Mnuh8l9W0wqbSjSdsAU7QAOCZ3E5mYWxXTK2jom374zTRvL6PoY06hOb+wLsJ7elQ7pTPBYCACJ UueOU58gq0MlguNbbv7r5I8ut3HHzYkssXUQsAKkbULJe616jOD1MMQ1fTtOMF8KQ6Xz9Jrngks KXKhRag2kA== X-Google-Smtp-Source: AGHT+IHNnbJbEwJnvuUHafu/JJjol+yWa3DFxUWeLL03tcgwR/F6NBchhFKuW0VjGuXnm8yHvKhcWg== X-Received: by 2002:a17:907:9307:b0:ab7:8213:cdb with SMTP id a640c23a62f3a-ab789ad3a59mr899173166b.13.1739018714929; Sat, 08 Feb 2025 04:45:14 -0800 (PST) Received: from jak-t14-g3 ([2a02:908:2812:e020:3a80:f310:aecb:fb72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab79d9ced43sm148945566b.78.2025.02.08.04.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Feb 2025 04:45:14 -0800 (PST) Sender: Julian Andres Klode Date: Sat, 8 Feb 2025 13:45:12 +0100 From: Julian Andres Klode To: Daniel Gomez Cc: 1095111@bugs.debian.org, kdevops@lists.linux.dev Subject: Re: Bug#1095111: python3-apt must be installed and visible rom /usr/bin/python3 Message-ID: <20250208134034.GA4079710@debian.org> Mail-Followup-To: Julian Andres Klode , Daniel Gomez , 1095111@bugs.debian.org, kdevops@lists.linux.dev Accept-Language: de-DE, de, en-GB, en-US, en References: <173861066472.72598.13066792952736369514.reportbug@sarkhan.home.arpa> <20250203205048.GA3775124@debian.org> <20250204112500.ekpalj22mxmuteg5@AALNPWDAGOMEZ1.aal.scsc.local> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250204112500.ekpalj22mxmuteg5@AALNPWDAGOMEZ1.aal.scsc.local> Control: reassign -1 libapt-pkg6.0t64 Control: forcemerge 1088398 -1 Control: retitle 1088398 libapt-pkg has fluctuating ABI Control: severity 1088398 serious On Tue, Feb 04, 2025 at 12:25:00PM +0100, Daniel Gomez wrote: > On Mon, Feb 03, 2025 at 09:01:56PM +0100, Julian Andres Klode wrote: > > Control: reassign -1 ansible-core > > > > On Mon, Feb 03, 2025 at 08:44:59PM +0100, Daniel Gomez wrote: > > > Package: python3-apt > > > Version: 2.9.6+b1 > > > Severity: important > > > Tags: upstream > > > X-Debbugs-Cc: da.gomez@samsung.com > > > > > > Dear Maintainer, > > > > > > The latest python3-apt releases 2.9.8 and 2.9.7 produce the following > > > error with Ansible: > > > > > > Error message: > > > > > > python3-apt must be installed and visible from /usr/bin/python3. > > > > > > As workaround, downgrading the package to the latest version working (2.9.6) > > > "solves" the issue: > > > > > > apt install -y python3-setuptools libapt-pkg-dev python3-pip git > > > pip3 git+https://salsa.debian.org/apt-team/python-apt.git@2.9.6 \ > > > --break-system-packages > > > > > > Tested with Ansible version: > > > > > > ii ansible 9.5.1+dfsg-1 all > > > ii ansible-core 2.17.1-1 > > > > > > ansible --version > > > ansible [core 2.17.1] > > > ... > > > python version = 3.12.6 (main, Sep 7 2024, 14:20:15) [GCC 14.2.0] > > > (/usr/bin/python3) > > > jinja version = 3.1.3 > > > libyaml = True > > > ansible-playbook --version > > > ansible-playbook [core 2.17.1] > > > ... > > > executable location = /usr/bin/ansible-playbook > > > python version = 3.12.6 (main, Sep 7 2024, 14:20:15) [GCC 14.2.0] > > > (/usr/bin/python3) > > > jinja version = 3.1.3 > > > libyaml = True > > > > > > Also, > > > > > > Reported in kdevops project: > > > https://lore.kernel.org/all/20250131-fix-python3-apt-v1-1-bcdb14b149ba@samsung.com/ > > > > > > Found the same issue in ludus: > > > https://protect2.fireeye.com/v1/url?k=2c1ac1ce-4d616b47-2c1b4a81-74fe48600034-c592b7887e221b1d&q=1&e=87d47ef4-6ed1-446b-87af-105940a56804&u=https%3A%2F%2Fgitlab.com%2Fbadsectorlabs%2Fludus%2F-%2Fissues%2F76 > > > > > > Daniel > > > > python3-apt is working fine as you can see by it having migrated, > > so clearly the modules are importable, otherwise the test suites > > fail. You can easily check this yourself by creating a fresh > > install or launching a container, install python3-apt and running > > > > python3 -c "import apt" > > > > Of course did you even check if python3-apt is installed at all? > > It's not part of a normal Debian install... > > > > In any case, good luck, I'm out. > > To answer the question, yes the package was properly installed. And > I think you are right regarding python3-apt version being working > properly. > > However, I still can reproduce the error above and I think I may be able > to provide better explanation. My system has the following status: > > sudo dpkg -l python3-apt apt apt-utils libapt-pkg6.0t64 python-apt-common > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) > ||/ Name Version Architecture Description > +++-======================-============-============-=========================================== > ii apt 2.9.8 amd64 commandline package manager > ii apt-utils 2.9.8 amd64 package management related utility programs > ii libapt-pkg6.0t64:amd64 2.9.8 amd64 package management runtime library > ii python-apt-common 2.9.8 all Python interface to libapt-pkg (locales) > ii python3-apt 2.9.8 amd64 Python 3 interface to libapt-pkg > > I think python3-apt was updated to the latest 2.9.8 after installing > python3-pip. This situation allows me to reproduce the error above in > python3-apt package with Ansible. > > Then, upgrading apt package, will upgrade apt-utils and libapt-pkg6.0t64 > to the latest version and fix the problem: > > sudo apt install --only-upgrade apt > > sudo dpkg -l python3-apt apt apt-utils libapt-pkg6.0t64 python-apt-common > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) > ||/ Name Version Architecture Description > +++-======================-============-============-=========================================== > ii apt 2.9.26 amd64 commandline package manager > ii apt-utils 2.9.26 amd64 package management related utility programs > ii libapt-pkg6.0t64:amd64 2.9.26 amd64 package management runtime library > ii python-apt-common 2.9.8 all Python interface to libapt-pkg (locales) > ii python3-apt 2.9.8 amd64 Python 3 interface to libapt-pkg > > I think the python3-apt dependency should be updated to require the latest > versions of apt, apt-utils, and libapt-pkg6.0.t64 (2.9.26). However, I'm not > completely sure about the full dependency chain. From what I see, python3-apt > (2.9.8) currently depends on libapt-pkg6.0t64 >= 2.7.11. Does that sound right? This is a duplicate of bug 1088398. APT has a fluctuating ABI that depends on which std:: symbols it calls, and which of those calls the compiler inlines and omits the symbols for, so it can change with every update to APT or the compiler. The new libapt-pkg7.0 ABI is sitting in binary-NEW waiting for the ftpmaster approval, and it ensures a stable ABI by using a version script that marks all std:: symbols as local. -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en