Your message dated Sun, 23 Jun 2019 19:00:33 -0400
with message-id <538c9a82-e872-2643-2a01-40c022362...@gmail.com>
and subject line Re: Bug#930974: rxvt fails to upgrade: Unable to open file 
"/menu.h" not found
has caused the Debian Bug report #930974,
regarding rxvt fails to upgrade: Unable to open file "/menu.h" not found
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
930974: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930974
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: rxvt
Version: 1:2.7.10-7+b1
Severity: grave
Justification: renders upgrade impossible


Upgrading from stretch to buster. The upgrade fails with:
(Output generated using "apt install -f")


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  bridge-utils ebtables fonts-roboto-hinted fp-compiler-3.0.0 fp-docs-3.0.0
  fp-ide-3.0.0 fp-units-base-3.0.0 fp-units-db-3.0.0 fp-units-fcl-3.0.0
  fp-units-fv-3.0.0 fp-units-gfx-3.0.0 fp-units-gtk2-3.0.0 fp-units-math-3.0.0
  fp-units-misc-3.0.0 fp-units-multimedia-3.0.0 fp-units-net-3.0.0
  fp-units-rtl-3.0.0 fp-utils-3.0.0 fpc-3.0.0 fpc-source-3.0.0 fwupdate
  fwupdate-amd64-signed gcj-6-jre-lib gconf-service gconf2 gconf2-common
  gir1.2-appstreamglib-1.0 gir1.2-gusb-1.0 glassfish-jmac-api gnome-mime-data
  guile-2.0-libs gvfs-bin libann0 libapparmor-perl libappindicator1
  libappstream-glib8 libart-2.0-2 libass5 libavdevice57 libavfilter6
  libavformat57 libavresample3 libbabeltrace-ctf1 libbind9-140 libblas-common
  libbluray1 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common
  libboost-date-time1.62.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0
  libboost-program-options1.62.0 libboost-random1.62.0 libboost-regex1.67.0
  libboost-system1.62.0 libboost-thread1.62.0 libc++1 libc++1-7 libc++abi1-7
  libcdio-cdda1 libcdio-paranoia1 libcdio13 libclassworlds-java
  libcommons-dbcp-java libcommons-pool-java libdbusmenu-gtk4 libdns162
  libdoxia-core-java libeasymock-java libebitdo1 libebur128-1 libecj-java
  libeclipse-aether-java libevent-2.0-5 libfile-copy-recursive-perl
  libfile-slurp-perl libfile-slurp-tiny-perl libfile-slurp-unicode-perl
  libfm-data libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libfwup1 libfwupd1
  libgcj-bc libgcj-common libgcj17 libgconf-2-4 libgcr-3-common libgegl-0.3-0
  libgeronimo-ejb-3.2-spec-java libgeronimo-jms-1.1-spec-java
  libgeronimo-validation-1.0-spec-java libgfortran3 libgles2-mesa libglew2.0
  libgltf-0.0-0v5 libgnome-2-0 libgnome-desktop-3-12 libgnome-keyring-common
  libgnome-keyring0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common
  libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common
  libgnomevfs2-extra libgutenprint2 libhunspell-1.4-0 libical2 libilmbase12
  libindicator7 libisc160 libisccc140 libisccfg140 libjemalloc1
  libjetty9-extra-java libjffi-java libjffi-jni libjnr-constants-java
  libjnr-enxio-java libjnr-ffi-java libjnr-posix-java libjnr-unixsocket-java
  libjnr-x86asm-java libjs-node-uuid liblivemedia57 liblouis12 liblouisutdml7
  liblwres141 libmagick++-6.q16-7 libmagickcore-6.q16-3 libmagickwand-6.q16-3
  libmaven-archiver-java libmaven2-core-java libminiupnpc10 libnetty-3.9-java
  libnfs8 libntfs-3g871 libopencv-calib3d2.4v5 libopencv-core2.4v5
  libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4-deb0
  libopencv-imgproc2.4v5 libopencv-objdetect2.4v5 libopencv-video2.4v5
  libopenexr22 liborbit-2-0 liborcus-0.11-0 libpackage-deprecationmanager-perl
  libperl5.24 libplexus-ant-factory-java libplexus-bsh-factory-java
  libplexus-classworlds2-java libplexus-cli-java
  libplexus-component-metadata-java libplexus-containers1.5-java
  libplexus-interactivity-api-java libpodofo0.9.4 libpoppler-qt4-4
  libpoppler64 libpostproc54 libprotobuf-lite10 libpython3.5 libpython3.5-dev
  libqdox2-java libqpdf17 libqrencode3 libqt5clucene5 libradare2-1.1 librados2
  libraw15 librbd1 libre2-3 libreoffice-ogltrans libreoffice-pdfimport
  libsac-java-gcj libsane-extras libsane-extras-common libsbsms10 libsndio6.1
  libsodium18 libspring-aop-java libspring-beans-java libspring-context-java
  libspring-core-java libspring-expression-java libspring-instrument-java
  libsrtp0 libsuitesparseconfig4 libswscale4 libsynctex1
  libtaglibs-standard-impl-java libtaglibs-standard-spec-java libtiff5-dev
  libtinfo-dev libtinyxml2-4 libtomcat8-java libtxc-dxtn-s2tc libunbound2
  libupnp6 libva-wayland1 libwagon-ftp-java libwagon-http-shaded-java
  libwagon-java libwayland-egl1-mesa libx86emu1 libxbean-java libxcb-dpms0
  libxen-4.8 libxfont1 libxmltok1 linux-headers-4.19.0-0.bpo.2-amd64
  linux-headers-4.19.0-0.bpo.2-common linux-image-4.19.0-0.bpo.2-amd64
  lxmenu-data node-cross-spawn-async node-fstream node-pseudomap prosper
  python-beautifulsoup python-debian python-ipaddr python-libvirt
  python3-pyasn1 python3.5 python3.5-dev python3.5-minimal qpdf rename ruby2.3
  ruby2.3-dev texlive-generic-extra texlive-htmlxml texlive-lang-african
  texlive-lang-indic texlive-omega texlive-plain-extra ttf-adf-accanthis
  ttf-adf-gillius ttf-adf-universalis x11proto-dri2-dev x11proto-gl-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  rxvt
The following packages will be upgraded:
  rxvt
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2881 not fully installed or removed.
Need to get 0 B/52.8 kB of archives.
After this operation, 546 kB disk space will be freed.
Do you want to continue? [Y/n] apt-listchanges: Can't set locale; make sure 
$LC_* and $LANG are correct!
apt-listchanges: Reading changelogs...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 581030 files and directories currently installed.)
Preparing to unpack .../rxvt_1%3a2.7.10-7.1+urxvt9.22-6_all.deb ...
Unable to open file "/menu.h".
install-menu: /etc/menu-methods/rxvt: aborting
dpkg: error processing archive 
/var/cache/apt/archives/rxvt_1%3a2.7.10-7.1+urxvt9.22-6_all.deb (--unpack):
 new rxvt package pre-installation script subprocess returned error exit status 
1
Errors were encountered while processing:
 /var/cache/apt/archives/rxvt_1%3a2.7.10-7.1+urxvt9.22-6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-0.bpo.5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_ALL 
to default locale: No such file or directory
UTF-8), LANGUAGE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default 
locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rxvt depends on:
ii  libc6     2.28-10
iu  libx11-6  2:1.6.7-1
ii  libxpm4   1:3.5.12-1

rxvt recommends no packages.

rxvt suggests no packages.

-- debconf information excluded

-- debsums errors found:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "C.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

--- End Message ---
--- Begin Message ---
On 6/23/19 5:50 PM, Ryan Kavanagh wrote:
> control: tags -1 + unreproducible
> thanks
> 
> Hi Jacob,
> 
> Thanks for the bug report.  I am unable to reproduce this when upgrading
> from a clean stretch installation. The first attached log shows a
> successful upgrade when the menu package is absent:
> 
>     schroot -c chroot:stretch -u root -- \
>         sh -c "apt-get -y install rxvt && \
>                sed -i 's/stretch/testing/g' /etc/apt/sources.list && \
>                apt-get update && apt-get -y dist-upgrade" 2>&1 | \
>         tee stretch-buster-nomenu.log
> 
> The second attached log shows a successful upgrade in the presence of
> the menu package, which provides the install-menu binary.
> 
>     schroot -c chroot:stretch -u root -- \
>         sh -c "apt-get -y install menu rxvt && \
>                sed -i 's/stretch/testing/g' /etc/apt/sources.list && \
>                apt-get update && apt-get -y dist-upgrade" 2>&1 | \
>         tee stretch-buster-menu.log


Thanks for your quick reply! Sorry for the spam, was frustrated by the broken
upgrade.

> 
> On Sun, Jun 23, 2019 at 03:38:29PM -0400, Jacob Adams wrote:
>> Preparing to unpack .../rxvt_1%3a2.7.10-7.1+urxvt9.22-6_all.deb ...
>> Unable to open file "/menu.h".
>> install-menu: /etc/menu-methods/rxvt: aborting
>> dpkg: error processing archive 
>> /var/cache/apt/archives/rxvt_1%3a2.7.10-7.1+urxvt9.22-6_all.deb (--unpack):
>>  new rxvt package pre-installation script subprocess returned error exit 
>> status 1
> 
> The only place install-menu gets called is from the rxvt.preinst file:
> 
> 10          if [ -f /etc/menu-methods/rxvt ]; then
> 11              chmod a-x /etc/menu-methods/rxvt
> 12              if which install-menu > /dev/null; then
> 13                  install-menu --remove /etc/menu-methods/rxvt
> 14              fi
> 15          fi
> 
> On Sun, Jun 23, 2019 at 05:10:51PM -0400, Jacob Adams wrote:
>> Turns out that this was an issue with menu not being fully upgraded
>> before installing the new rxvt
> 

> 
>> Seems like this is actually a bug in menu, or possibly dpkg?
>>
>> Somehow the order of dependencies was wrong, though it doesn't look
>> like rxvt directly depends on menu.
> 
> I'll look into where the change should be made. The test on line 12 is
> meant to check whether or not install-menu is available, but doesn't
> account for the fact that the installation is broken. Looking at the
> menu manual, it looks like a more idiomatic approach is what
> dh_installmenu produces,
> 
>  if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi 
> 
> but this too would be impacted by a broken menu installation.

Looks like the broken menu system is the root cause of this. I'll try to
reproduce that breakage over the next couple days. I think menu must've simply
been in a half-upgraded state, which then broke rxvt as apt didn't know that it
used it when present. I'm not sure what could be done about that.


> This was my guess: that you had a corrupt menu installation. (Though I
> was unable to reproduce even by deleting /etc/menu-methods/menu.h and
> then upgrading).

Huh strange.


I think given the above and that it's not the fault of rxvt, it should be 
closed.

If I can find some way to reproduce it, I'll reopen (and reassign to whatever
ends up being at fault) but that seems unlikely given the tests you did.

Thanks,
Jacob

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to