[Bug 2027831] Re: Unexpected behavior of apt

Julian Andres Klode 2027831 at bugs.launchpad.net
Fri Jul 14 20:14:45 UTC 2023


So e.g. on mantic:

jak at jak-t14-g3:~:master$ apt-get install python3.6 -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
Note, selecting 'python3.6-2to3' for regex 'python3.6'
The following packages were automatically installed and are no longer required:
  gir1.2-totem-1.0 gir1.2-totemplparser-1.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libgom-1.0-0 libgrilo-0.3-0 libportal-gtk3-1 libtotem0 totem-common
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
jak at jak-t14-g3:~:master$ apt install python3.6 -s
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'


To get the same behavior in apt-get, pass -o APT::Cmd::Pattern-Only=yes to apt-get. This is available since focal.

It may be reasonable to also disable glob expansion on dots by default
in apt, I don't know.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/2027831

Title:
  Unexpected behavior of apt

Status in apt package in Ubuntu:
  Won't Fix

Bug description:
  I was trying to install python3.10 on Ubuntu 20.04 and was quite
  surprised when x11 packages ended up installed. I think it was due to
  the regex matching of apt.

  (focal-amd64)root at impulse:/home/bdmurray/source-trees/autopkgtest-cloud/autopkgtest-cloud# apt-get install python3.10
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Note, selecting 'libqgispython3.10.4' for regex 'python3.10'
  Note, selecting 'libpython3.10-stdlib' for regex 'python3.10'
  ...
  The following NEW packages will be installed:
    fontconfig fontconfig-config fonts-dejavu-core gdal-data iso-codes libaec0 libarmadillo9 libarpack2 libavahi-client3
    libavahi-common-data libavahi-common3 libblas3 libbrotli1 libbsd0 libcap2 libcap2-bin libcfitsio8 libcharls2
    libcups2 libcurl3-gnutls libdap25 libdapclient6v5 libdbus-1-3 libdouble-conversion3 libdrm-amdgpu1 libdrm-common
    libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libedit2 libegl-mesa0 libegl1 libelf1 libepsilon1 libevdev2
    libexpat1 libfontconfig1 libfreetype6 libfreexl1 libfyba0 libgbm1 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5
    libgfortran5 libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglib2.0-0 libglvnd0 libglx-mesa0 libglx0 libgraphite2-3
    libgssapi-krb5-2 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libharfbuzz0b libhdf4-0-alt
    libhdf5-103 libhyphen0 libice6 libicu66 libinput-bin libinput10 libjbig0 libjpeg-turbo8 libjpeg8 libjson-c4
    libk5crypto3 libkeyutils1 libkmlbase1 libkmldom1 libkmlengine1 libkrb5-3 libkrb5support0 liblapack3 liblcms2-2
    libllvm12 libltdl7 libminizip1 libmpdec2 libmtdev1 libmysqlclient21 libnetcdf15 libnghttp2-14 libnspr4 libnss3
    libodbc1 libogdi4.1 libopenjp2-7 liborc-0.4-0 libpciaccess0 libpcre2-16-0 libpoppler97 libpq5 libproj15 libpsl5
    libpython3.8 libpython3.8-minimal libpython3.8-stdlib libqca-qt5-2 libqgis-core3.10.4 libqgispython3.10.4 libqhull7
    libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5keychain1 libqt5network5 libqt5positioning5
    libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5serialport5 libqt5sql5 libqt5svg5 libqt5webchannel5
    libqt5webkit5 libqt5widgets5 libqt5xml5 librtmp1 libsensors-config libsensors5 libsm6 libspatialindex6
    libspatialite7 libssh-4 libssl1.1 libsuperlu5 libsz2 libtiff5 liburiparser1 libvulkan1 libwacom-common libwacom2
    libwayland-client0 libwayland-server0 libwebp6 libwoff1 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri2-0
    libxcb-dri3-0 libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0
    libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0
    libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxcb1 libxdmcp6 libxerces-c3.2 libxext6 libxfixes3 libxkbcommon-x11-0
    libxkbcommon0 libxml2 libxrender1 libxshmfence1 libxslt1.1 libxxf86vm1 libzip5 mime-support mysql-common
    ocl-icd-libopencl1 odbcinst odbcinst1debian2 proj-data tzdata ucf x11-common xkb-data
  0 upgraded, 190 newly installed, 0 to remove and 0 not upgraded.
  Need to get 118 MB of archives.

  (focal-amd64)root at impulse:/home/bdmurray/source-trees/autopkgtest-cloud/autopkgtest-cloud# apt-cache policy apt
  apt:
    Installed: 2.0.9
    Candidate: 2.0.9
    Version table:
   *** 2.0.9 500
          500 http://192.168.10.7/ubuntu focal-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       2.0.2ubuntu0.2 500
          500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
       2.0.2 500
          500 http://192.168.10.7/ubuntu focal/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2027831/+subscriptions




More information about the foundations-bugs mailing list