Bug#1073506: apt, apt-get fail as out-of-space under chroot
Package: apt
Version: 2.6.1
Severity: normal
X-Debbugs-Cc: budheal@gmail.com
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
The latest upgrade worked - checked out - until the final step, apt
full-upgrade, when the system was bricked. Given a lack of attention
to that, I amused myself with investigating. Much of that time was
using the shell provided by the DLBD recovery or chroot after booting
into a 12.5.0 USB key.
"df /" emits:
df: Warning: cannot read table of mounted file systems: No such file or directory
Filesystem 1K-blocks Used Available Use% Mounted on
- 1919713600 1835031056 0 100% /
* What exactly did you do (or not do) that was effective (or
ineffective)?
apt and apt-get have mostly been working despite other tools refusing
to do thing like write to logs. I thought I was getting close to
having a working system again but not quite close enough. I
uncommented the repositories in deb.debian.org, booted from the DLBD,
let apt-get update and upgrade, and was surprised by the number of
packages it ran through, maybe every one. However, grub stopped going
on to load the encrypted partition - and instead went to its shell at
which it would not mount the partition no matter how times I entered
the passphrase.
Back to see if apt could help. I installed the latest linux on the
list, which worked, nudged grub one step along to its usual menu, but
now init 1 wouldn't mount the encrypted partition. Maybe reinstall
grub would help - and now apt and apt-get inform me that the mounted
filesystem is out of space.
For a workaround, one could preload the packages into
/var/cache/apt/archives (although I did not test that specifically, I
wrote a script to do that along the way, which was more or less
amusing.
I am appending the output but it would seem straightforward to use
the diference from the full disk and the used blocks, in particular
when the erroneous free area report (zero) could be corrected.
apt-get reinstall grub2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
acl apg bluez-obexd bolt brasero-cdrkit brasero-common caja-common cdrdao
colord-data crda default-mysql-client dnsmasq-base dvdauthor engrampa
engrampa-common eom eom-common espeak-ng-data fwupd-amd64-signed galera-4
gdal-plugins gdisk gedit-plugins-common genisoimage giblib1 gimp-data
gir1.2-accountsservice-1.0 gir1.2-champlain-0.12 gir1.2-dazzle-1.0
gir1.2-eom-1.0 gir1.2-evince-3.0 gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdata-0.0
gir1.2-gdm-1.0 gir1.2-geocodeglib-1.0 gir1.2-gfbgraph-0.2 gir1.2-ggit-1.0
gir1.2-gnomebluetooth-1.0 gir1.2-gnomebluetooth-3.0 gir1.2-grilo-0.3
gir1.2-gtk-2.0 gir1.2-gtkchamplain-0.12 gir1.2-gucharmap-2.90
gir1.2-gweather-3.0 gir1.2-handy-0.0 gir1.2-ibus-1.0 gir1.2-malcontent-0
gir1.2-mediaart-2.0 gir1.2-mutter-11 gir1.2-nm-1.0 gir1.2-nma-1.0
gir1.2-pluma-1.0 gir1.2-rb-3.0 gir1.2-rest-0.7 gir1.2-rsvg-2.0
gir1.2-totem-1.0 gir1.2-totemplparser-1.0 gir1.2-tracker-2.0
gir1.2-tracker-3.0 gir1.2-upowerglib-1.0 gir1.2-vte-2.91 gir1.2-zpj-0.0
gnome-bluetooth-3-common gnome-control-center-data gnome-session-common
gnome-settings-daemon-common gnome-shell-common growisofs
gstreamer1.0-pipewire gtk2-engines-murrine gvfs-common gvfs-libs hddtemp
ibus ibus-data ibus-gtk ibus-gtk3 ibus-gtk4 im-config jq kactivities-bin
kate5-data kpackagetool5 ktexteditor-data kwayland-data kwayland-integration
lazarus-doc-2.0 lazarus-ide lazarus-ide-2.0 lazarus-ide-gtk2-2.0
lazarus-src-2.0 lazarus-src-2.2 lcl-nogui-2.0 lcl-utils-2.0 libamd2
libaom-dev libaopalliance-java libapache-poi-java libapache2-mod-php
libappstream-glib8 libargs4j-java libarmadillo11 libarray-intspan-perl
libasound2-dev libatasmart4 libatinject-jsr330-api-java libatk1.0-data
libavif-dev libbabl-0.1-0 libbasicusageenvironment1 libblas-dev libblkid-dev
libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2
libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2
libbluetooth3 libboost-date-time1.71.0 libboost-filesystem1.71.0
libboost-iostreams1.71.0 libboost-locale1.71.0 libboost-regex1.71.0
libboost-thread1.71.0 libbpf0 libbrasero-media3-1 libbrlapi0.7 libbrotli-dev
libbz2-dev libcamd2 libcbor0 libccolamd2 libcdi-api-java libcfitsio10
libcglib-java libchamplain-0.12-0 libchamplain-gtk-0.12-0 libcholmod3
libclang-cpp14 libcmark-gfm-extensions0 libcmark-gfm0 libcmis-0.5-5v5
libcodec2-1.0:i386 libcodemodel-java libcolord-gtk1 libcolord-gtk4-1
libcolorhug2 libcommons-cli-java libcommons-codec-java
libcommons-collections4-java libcommons-lang-java libcommons-math3-java
libcpupower1 libcroco3 libcurl3-gnutls:i386 libcurl3-nss libcurvesapi-java
libdatrie-dev libdav1d-dev libdaxctl1 libdazzle-1.0-0 libdbd-mariadb-perl
libdbi-perl libdbusmenu-qt5-2 libdca-dev libde265-dev libdeflate-dev
libdiodon0 libdom4j-java libdtd-parser-java libebackend-1.2-10
libebook-1.2-20 libebook-contacts-1.2-3 libedata-book-1.2-26
libedata-cal-2.0-1 libedataserver-1.2-24 libeditorconfig0 libespeak-ng1
libevent-core-2.1-7 libevent-pthreads-2.1-7 libexpat1-dev
libextutils-pkgconfig-perl libfam0 libfastinfoset-java libffi7:i386 libfl2
libflac-dev libflac8:i386 libflashrom1 libflatpak0 libfluidsynth2
libfribidi-dev libftdi1-2 libfwupdplugin1 libgcab-1.0-0 libgdal32
libgdbm-compat4:i386 libgdbm6:i386 libgdl-3-5 libgdl-3-common libgdm1
libgegl-common libgeocode-glib0 libgeos-3.8.1 libgeos-3.9.0
libgeronimo-annotation-1.3-spec-java libgeronimo-interceptor-3.0-spec-java
libges-1.0-0 libgetopt-long-descriptive-perl libgit2-28 libgit2-glib-1.0-0
libglade2-0 libglib2.0-dev-bin libglu1-mesa-dev libgnome-bg-4-2
libgnome-bluetooth-3.0-13 libgnome-bluetooth-ui-3.0-13 libgnome-bluetooth13
libgnome-rr-4-2 libgnutls-openssl27 libgphobos1 libgpod-common libgpod4
libgraphite2-dev libgroupsock8 libgs9-common libgtkspell3-3-0 libguava-java
libguice-java libgusb2 libgweather-3-16 libgweather-common libhandy-0.0-0
libharfbuzz-gobject0 libharfbuzz-subset0 libhawtjni-runtime-java libheif-dev
libhfstospell11 libhttpclient-java libhttpcore-java libhwy1:i386
libibus-1.0-5 libice-dev libicu4j-java libicu67:i386 libieee1284-3
libieee1284-3:i386 libimobiledevice6 libindicator3-7
libintellij-annotations-java libistack-commons-java libjansi-java
libjansi-native-java libjaxb-java libjaxen-java libjaylink0 libjbig-dev
libjdom1-java libjetbrains-annotations-java libjim0.79 libjpeg-dev
libjpeg62-turbo-dev libjq1 libjs-cropper libjs-es5-shim
libjs-jquery-datatables-extensions libjs-jquery-selectize.js libjs-json
libjs-microplugin.js libjs-modernizr libjs-prototype libjs-scriptaculous
libjs-sifter.js libjsoncpp1 libjsoncpp24 libjsoup-java libjsr305-java
libjxl0.7:i386 libkf5activities5 libkf5archive-data libkf5archive5
libkf5attica5 libkf5auth-data libkf5authcore5 libkf5bookmarks-data
libkf5bookmarks5 libkf5calendarevents5 libkf5codecs-data libkf5codecs5
libkf5completion-data libkf5completion5 libkf5config-bin libkf5config-data
libkf5configcore5 libkf5configgui5 libkf5configwidgets-data
libkf5configwidgets5 libkf5coreaddons-data libkf5coreaddons5 libkf5crash5
libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5
libkf5declarative-data libkf5doctools5 libkf5globalaccel-bin
libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5
libkf5guiaddons-data libkf5guiaddons5 libkf5i18n-data libkf5i18n5
libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5 libkf5idletime5
libkf5itemviews-data libkf5itemviews5 libkf5jobwidgets-data
libkf5jobwidgets5 libkf5kiocore5 libkf5kiofilewidgets5 libkf5kiogui5
libkf5kiontlm5 libkf5kiowidgets5 libkf5kirigami2-5 libkf5newstuff-data
libkf5notifications-data libkf5package-data libkf5package5 libkf5parts-data
libkf5service-bin libkf5service-data libkf5service5 libkf5solid5
libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5
libkf5syntaxhighlighting-data libkf5syntaxhighlighting5 libkf5texteditor-bin
libkf5textwidgets-data libkf5textwidgets5 libkf5threadweaver5
libkf5wallet-data libkf5waylandclient5 libkf5widgetsaddons-data
libkf5widgetsaddons5 libkf5windowsystem-data libkf5windowsystem5
libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 liblapack-dev
liblist-moreutils-perl liblist-moreutils-xs-perl liblivemedia77
libllvm11:i386 liblzma-dev libmalcontent-ui-0-0 libmate-slab0
libmate-window-settings1 libmatedict6 libmaven-file-management-java
libmaven-parent-java libmaven-resolver-java libmaven-shared-io-java
libmaven-shared-utils-java libmaven3-core-java libmetis5 libmikmod-dev
libmikmod3 libmms0 libmng1 libmount-dev libmozjs-78-0 libmusicbrainz5-2
libmusicbrainz5cc2v5 libmutter-11-0 libmypaint-1.5-1 libmypaint-common
libnautilus-extension1a libndctl6 libndp0 libneon27-gnutls libnet-ip-perl
libnetcdf19 libnma-common libnma-gtk4-0 libnma0 libnsl2:i386 libnspr4:i386
libnss-myhostname libnss3:i386 libofa0 libopenshot-audio7 libopenshot19
libopts25 liborcus-0.15-0 liborcus-0.16-0 liborcus-parser-0.15-0
liborcus-parser-0.16-0 libostree-1-1 libotf0 libparams-validate-perl
libpcaudio0 libpci3:i386 libpcre16-3 libpcre2-32-0 libpcre2-dev
libpcre2-posix2 libpcre2-posix3 libpcre3:i386 libpcre3-dev libpcre32-3
libpcrecpp0v5 libperl5.30 libperl5.32 libperl5.32:i386 libperl5.36:i386
libpgm-5.2-0 libphonenumber7 libphonon4qt5-4 libphonon4qt5-data
libpipewire-0.3-0 libpipewire-0.3-modules libpixman-1-dev
libplexus-archiver-java libplexus-cipher-java libplexus-classworlds-java
libplexus-component-annotations-java libplexus-interpolation-java
libplexus-io-java libplexus-sec-dispatcher-java libplexus-utils2-java
libplist3 libplymouth4 libplymouth5 libpmem1 libpng-tools libpolkit-qt5-1-1
libpoppler-glib8:i386 libpoppler102:i386 libpoppler126:i386 libportal-gtk4-1
libprotobuf23 libpython3.8-dev libpython3.9-dev libqhull-r8.0 libqpdf28
libqrcodegencpp1 libqt5qmlworkerscript5 libqt5quickcontrols2-5
libqt5quicktemplates2-5 libqt5texttospeech5 libquvi-0.9-0.9.3
libquvi-scripts-0.9 libre2-8 libreadline-dev libreadline5
librelaxng-datatype-java librhythmbox-core10 librngom-java librygel-db-2.6-2
libsane-common libsaxonhe-java libsdl-mixer1.2 libselinux1-dev libsepol-dev
libsepol2 libsgutils2-2 libsisu-guice-java libsisu-inject-java
libsisu-ioc-java libsisu-plexus-java libsm-dev libsmbios-c2
libsnapd-glib-2-1 libsnappy-java libsnappy-jni libsnmp-base libsnmp40
libsnmp40:i386 libsonic0 libspa-0.2-modules libspeexdsp1:i386 libssl1.1:i386
libstax-ex-java libstd-rust-1.46 libstreambuffer-java libsvtav1enc1:i386
libtagc0 libteamdctl0 libtepl-4-0 libtepl-5-0 libthai-dev libtiffxx5
libtirpc3:i386 libtotem0 libtracker-control-2.0-0 libtracker-miner-2.0-0
libtxw2-java libudisks2-0 libumfpack5 liburing1 libusageenvironment3
libusb-0.1-4 libusbmuxd6 libuuid1:i386 libvncclient1 libvoikko1
libvolume-key1 libvpx-dev libwagon-http-java libwagon-provider-api-java
libwebp-dev libwrap0:i386 libx264-164:i386 libx265-dev libxatracker2
libxcb-composite0 libxcb-record0 libxcb-render0-dev libxcb-res0
libxcb-shm0-dev libxcb-util0 libxcomposite-dev libxcursor-dev libxdamage-dev
libxdo3 libxerces2-java libxext-dev libxfixes-dev libxi-dev libxinerama-dev
libxml-commons-external-java libxmlb1 libxmlbeans-java libxmlsec1-openssl
libxom-java libxrandr-dev libxrender-dev libxsimd-dev libxsom-java libxt-dev
libxvmc1 libzeitgeist-2.0-0 llvm-14 llvm-14-dev llvm-14-linker-tools
llvm-14-runtime llvm-14-tools lua-bitop lua-expat lua-json lua-socket
malcontent malcontent-gui mariadb-client mariadb-client-core
mariadb-server-core mate-applet-brisk-menu mate-applets-common
mate-backgrounds mate-control-center mate-control-center-common
mate-icon-theme mate-media mate-media-common mate-power-manager-common
mate-system-monitor mate-system-monitor-common mate-themes mate-utils
mate-utils-common mobile-broadband-provider-info mutter-common nautilus-data
node-busboy node-undici nss-plugin-pem obsession pango1.0-tools
perl-modules-5.30 perl-modules-5.32 php-gd pipewire pipewire-bin pluma
pluma-common python-matplotlib-data python-tinycss2-common python3-all
python3-arrow python3-beniget python3-bleach python3-blessed
python3-cmarkgfm python3-contourpy python3-django-allauth
python3-django-extensions python3-django-gravatar2 python3-django-hyperkitty
python3-django-mailman3 python3-django-picklefield python3-django-postorius
python3-django-q python3-elementpath python3-flufl.lock python3-fs
python3-future python3-gast python3-gdal python3-hpack python3-hyperframe
python3-ibus-1.0 python3-imagesize python3-isort python3-linecache2
python3-llvmlite python3-mailmanclient python3-mistune python3-mpmath
python3-natsort python3-networkx python3-openid python3-paste python3-pip
python3-psutil python3-public python3-pycodestyle python3-pydot
python3-pytz-deprecation-shim python3-pyxattr python3-readme-renderer
python3-requests-oauthlib python3-responses python3-robot-detection
python3-snowballstemmer python3-sympy python3-tempita python3-tinycss2
python3-toml python3-traceback2 python3-tzlocal python3-unicodedata2
python3-unittest2 python3-websockets python3-wheel python3-xmlschema
python3.8 python3.8-minimal python3.9 python3.9-minimal
qml-module-org-kde-kirigami2 qml-module-qt-labs-folderlistmodel
qml-module-qt-labs-settings qml-module-qtgraphicaleffects qml-module-qtqml
qml-module-qtqml-models2 qml-module-qtquick-controls
qml-module-qtquick-controls2 qml-module-qtquick-dialogs
qml-module-qtquick-layouts qml-module-qtquick-privatewidgets
qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtquick2
qtspeech5-speechd-plugin r-cran-conquer r-cran-dygraphs
r-cran-fontbitstreamvera r-cran-fontliberation r-cran-fontquiver
r-cran-freetypeharfbuzz r-cran-gdtools r-cran-gtable r-cran-hexbin
r-cran-isoband r-cran-matrixmodels r-cran-matrixstats r-cran-quantreg
r-cran-rcmdcheck r-cran-rcpparmadillo r-cran-rversions r-cran-sessioninfo
r-cran-sourcetools r-cran-sparsem r-cran-systemfonts r-cran-xopen
r-cran-xtable realmd rhythmbox-data rtmpdump sntp socat sonnet-plugins
sphinx-common switcheroo-control totem-common unattended-upgrades
unicode-data unoconv usb-modeswitch-data usbmuxd uwsgi vlc-l10n
vlc-plugin-access-extra vlc-plugin-notify vlc-plugin-samba
vlc-plugin-video-splitter vlc-plugin-visualization wodim
wordpress-theme-twentytwenty wordpress-theme-twentytwentyone
x11proto-input-dev x11proto-randr-dev x11proto-xext-dev x11proto-xf86dga-dev
x11proto-xinerama-dev xdotool xfce4-power-manager-data xfonts-scalable
xmlsec1 xsane-common xserver-xorg-legacy xwayland youtube-dl
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
grub-pc grub-pc-bin
The following NEW packages will be installed:
grub-pc grub-pc-bin grub2
0 upgraded, 3 newly installed, 0 to remove and 174 not upgraded.
Need to get 1,136 kB of archives.
After this operation, 3,752 kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
root@crip:/# apt --version
apt 2.6.1 (amd64)
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- (no /etc/apt/preferences.d/* present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- (no /etc/apt/sources.list.d/* present) --
-- System Information:
Debian Release: 12.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-18-amd64 (SMP w/12 CPU threads; PREEMPT)
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.134
ii debian-archive-keyring 2023.3+deb12u1
ii gpgv 2.2.40-1.1
ii libapt-pkg6.0 2.6.1
ii libc6 2.36-9+deb12u7
ii libgcc-s1 12.2.0-14
ii libgnutls30 3.7.9-2+deb12u2
ii libseccomp2 2.5.4-1+b3
ii libstdc++6 12.2.0-14
ii libsystemd0 252.22-1~deb12u1
Versions of packages apt recommends:
ii ca-certificates 20230311
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.8.13-5
pn dpkg-dev <none>
ii gnupg 2.2.40-1.1
pn powermgmt-base <none>
ii synaptic 0.91.3
-- no debconf information
Reply to: