Mailinglist Archive: opensuse-factory (1324 mails)

< Previous Next >
[opensuse-factory] [Leap 42.1] zyper dup fails on grub update because can't find awk.
  • From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
  • Date: Fri, 2 Oct 2015 11:58:58 +0200 (CEST)
  • Message-id: <alpine.LSU.2.20.1510021144490.16747@Grypbagne.inyvabe>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Copied error message from /var/log/zypper.log

2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Perl-Bootloader: 2015-10-02 10:58:25 <3>
pbl-1617.2 Core::RunCommand.1658: Error: '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg'
failed with exit code 127, output:
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94
<<<<<<<<<<<<<<<<
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Generating grub configuration file ...
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found theme:
/boot/grub2/themes/openSUSE/theme.txt
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found linux image:
/boot/vmlinuz-4.1.6-9-desktop
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found initrd image:
/boot/initrd-4.1.6-9-desktop
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found linux image:
/boot/vmlinuz-4.1.3-2-desktop
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found initrd image:
/boot/initrd-4.1.3-2-desktop
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found linux image:
/boot/vmlinuz-4.1.2-5-desktop
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Found initrd image:
/boot/initrd-4.1.2-5-desktop
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 /etc/grub.d/90_persistent: line 36: awk:
command not found
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++] RpmPostTransCollector.cc(executeScripts):94
>>>>>>>>>>>>>>>>
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp::posttrans++]
RpmPostTransCollector.cc(executeScripts):94 Updating bootloader failed
2015-10-02 10:58:25 <1> Eleanor-421(1610) [zypp++]
ExternalProgram.cc(checkStatus):506 Pid 15881 exited with status 1
2015-10-02 10:58:25 <2> Eleanor-421(1610) [zypp::posttrans]
RpmPostTransCollector.cc(executeScripts):116 ucode-amd-20140807git-3.4.noarch.rpm
%posttrans script failed (returned 1)


Certainly, 'awk' is missing. From my 13.1 install, I know that 'awk' comes from package 'gawk', but this one is installed:

Eleanor-421:~ # rpm -q gawk
gawk-4.1.0-2.9.x86_64
Eleanor-421:~ #

Eleanor-421:~ # rpm -ql gawk | grep bin/
/bin/awk
/bin/gawk
/usr/bin/awk
/usr/bin/gawk
/usr/bin/igawk
Eleanor-421:~ #
Eleanor-421:~ # awk
If 'awk' is not a typo you can use command-not-found to lookup the package that
contains it, like this:
cnf awk
Eleanor-421:~ #

Eleanor-421:~ # which awk
which: no awk in
(/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games)
Eleanor-421:~ #
Eleanor-421:~ # l /usr/bin/awk
lrwxrwxrwx 1 root root 29 Sep 8 21:40 /usr/bin/awk ->
/etc/alternatives/usr-bin-awk
Eleanor-421:~ # l /etc/alternatives/usr-bin-awk
ls: cannot access /etc/alternatives/usr-bin-awk: No such file or directory
Eleanor-421:~ #


What should provide "/etc/alternatives/usr-bin-awk"? Or should /usr/bin/awk point to something else?

And why is this broken now?



In 13.1:

cer@Telcontar:~> l /etc/alternatives/usr-bin-awk
lrwxrwxrwx 1 root root 9 Aug 12 2012 /etc/alternatives/usr-bin-awk ->
/bin/gawk*


- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlYOVWkACgkQtTMYHG2NR9XhtQCeK1oRU0PzJoLX6mxbbO6YL9Uk
qRUAn1HB/zm/3xK1uFvUHLIrB5+/11SC
=CKF5
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >