Package: apt Version: 2.4.8 Severity: important Dear Maintainer,
While working building images using debos[1] with Apertis [2] I noticed strange behaviors with apt. After debugging the issue, I found what I understand is a bug and submitted a MR to try to fix it. https://salsa.debian.org/apt-team/apt/-/merge_requests/265/ As as summary I consider that in some cases the error handling after calling getline is not correct since it only takes into account errno but not the return value. Thanks is advance, Walter [1] https://github.com/go-debos/debos [2] https://www.apertis.org/ -- Package-specific info: -- (no /etc/apt/preferences present) -- -- (no /etc/apt/preferences.d/* present) -- -- /etc/apt/sources.list -- # deb cdrom:[Ubuntu 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ar.archive.ubuntu.com/ubuntu/ jammy main restricted deb-src http://ar.archive.ubuntu.com/ubuntu/ jammy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://ar.archive.ubuntu.com/ubuntu/ jammy-updates main restricted # deb-src http://ar.archive.ubuntu.com/ubuntu/ eoan-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ar.archive.ubuntu.com/ubuntu/ jammy universe # deb-src http://ar.archive.ubuntu.com/ubuntu/ eoan universe deb http://ar.archive.ubuntu.com/ubuntu/ jammy-updates universe # deb-src http://ar.archive.ubuntu.com/ubuntu/ eoan-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://ar.archive.ubuntu.com/ubuntu/ jammy multiverse # deb-src http://ar.archive.ubuntu.com/ubuntu/ eoan multiverse deb http://ar.archive.ubuntu.com/ubuntu/ jammy-updates multiverse # deb-src http://ar.archive.ubuntu.com/ubuntu/ eoan-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://ar.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse # deb-src http://ar.archive.ubuntu.com/ubuntu/ eoan-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu jammy-security main restricted # deb-src http://security.ubuntu.com/ubuntu eoan-security main restricted deb http://security.ubuntu.com/ubuntu jammy-security universe # deb-src http://security.ubuntu.com/ubuntu eoan-security universe deb http://security.ubuntu.com/ubuntu jammy-security multiverse # deb-src http://security.ubuntu.com/ubuntu eoan-security multiverse # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual. -- (/etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list present, but not submitted) -- -- /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list.distUpgrade -- deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ / -- (/etc/apt/sources.list.d/google-chrome.list present, but not submitted) -- -- /etc/apt/sources.list.d/google-chrome.list.distUpgrade -- ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main -- (/etc/apt/sources.list.d/google-chrome.list.save present, but not submitted) -- -- /etc/apt/sources.list.d/katharaframework-ubuntu-kathara-eoan.list -- # deb http://ppa.launchpad.net/katharaframework/kathara/ubuntu focal main # disabled on upgrade to focal # deb-src http://ppa.launchpad.net/katharaframework/kathara/ubuntu eoan main -- (/etc/apt/sources.list.d/katharaframework-ubuntu-kathara-eoan.list.distUpgrade present, but not submitted) -- -- /etc/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list -- deb http://dell.archive.canonical.com/ jammy somerville # deb-src http://dell.archive.canonical.com/ focal somerville deb http://dell.archive.canonical.com/ jammy somerville-three-eyed-raven # deb-src http://dell.archive.canonical.com/ focal somerville-three-eyed-raven -- (/etc/apt/sources.list.d/oem-somerville-three-eyed-raven-meta.list.distUpgrade present, but not submitted) -- -- /etc/apt/sources.list.d/teams.list -- ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. # deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main # disabled on upgrade to jammy -- (/etc/apt/sources.list.d/teams.list.distUpgrade present, but not submitted) -- -- /etc/apt/sources.list.d/teamviewer.list -- ### TeamViewer DEB repository list ### NOTE: Manual changes to this file ### - prevent it from being updated by TeamViewer package updates ### - will be lost after using the 'teamviewer repo' command ### The original file can be restored with this command: ### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list ### which has the same effect as 'teamviewer repo default' ### NOTE: It is preferred to use the following commands to edit this file: ### teamviewer repo - show current repository configuration ### teamviewer repo default - restore default configuration ### teamviewer repo disable - disable the repository ### teamviewer repo stable - make all regular TeamViewer packages available (default) ### teamviewer repo preview - additionally, make feature preview packages available ### teamviewer repo development - additionally, make the latest development packages available # deb https://linux.teamviewer.com/deb stable main # disabled on upgrade to jammy # deb https://linux.teamviewer.com/deb preview main # deb https://linux.teamviewer.com/deb development main -- (/etc/apt/sources.list.d/teamviewer.list.distUpgrade present, but not submitted) -- -- /etc/apt/sources.list.d/teamviewer.list.dpkg-old -- ### TeamViewer DEB repository list ### NOTE: Manual changes to this file ### - prevent it from being updated by TeamViewer package updates ### - will be lost after using the 'teamviewer repo' command ### The original file can be restored with this command: ### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list ### which has the same effect as 'teamviewer repo default' ### NOTE: It is preferred to use the following commands to edit this file: ### teamviewer repo - show current repository configuration ### teamviewer repo default - restore default configuration ### teamviewer repo disable - disable the repository ### teamviewer repo stable - make all regular TeamViewer packages available (default) ### teamviewer repo preview - additionally, make feature preview packages available ### teamviewer repo development - additionally, make the latest development packages available # deb http://linux.teamviewer.com/deb stable main # disabled on upgrade to focal # deb http://linux.teamviewer.com/deb preview main # deb http://linux.teamviewer.com/deb development main -- System Information: Debian Release: bookworm/sid APT prefers jammy-updates APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.15.0-50-generic (SMP w/8 CPU threads) Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apt depends on: ii adduser 3.118ubuntu5 ii gpgv 2.2.27-3ubuntu2.1 ii libapt-pkg6.0 2.4.8 ii libc6 2.35-0ubuntu3.1 ii libgcc-s1 12.1.0-2ubuntu1~22.04 ii libgnutls30 3.7.3-4ubuntu1.1 ii libseccomp2 2.5.3-2ubuntu2 ii libstdc++6 12.1.0-2ubuntu1~22.04 ii libsystemd0 249.11-0ubuntu3.6 ii ubuntu-keyring 2021.03.26 Versions of packages apt recommends: ii ca-certificates 20211016 Versions of packages apt suggests: pn apt-doc <none> ii aptitude 0.8.13-3ubuntu1 ii dpkg-dev 1.21.1ubuntu2.1 ii gnupg 2.2.27-3ubuntu2.1 ii powermgmt-base 1.36 -- no debconf information