This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Update failing to apply u2d-sys-9.505004-506002.tgz.gpg

Having issues updating UTM 9

Package download ok, upon installation I get the error below.

2018:07:21-10:13:46 sophos auisys[28596]: Not installing optional kernel-smp 2018:07:21-10:13:47 sophos auisys[28596]: Not installing optional kernel-smp64 2018:07:21-10:13:47 sophos auisys[28596]: Creating automatic configuration backup 2018:07:21-10:13:48 sophos auisys[28596]: Starting up2date package installation 2018:07:21-10:13:48 sophos auisys[28596]: >========================================================================= 2018:07:21-10:13:48 sophos auisys[28596]: Failed testing RPM installation (command: 'rpm --test -U --nodeps /var/up2date/sys-install/u2d-sys-9.506002/rpms/libopenssl1_0_0-1.0.2j-4.1.0.273786758.g4b4a1fb.rb11.i686.rpm') 2018:07:21-10:13:48 sophos auisys[28596]: 2018:07:21-10:13:48 sophos auisys[28596]: 1. Modules::Logging::msg:46() /</sbin/auisys.plx>Modules/Logging.pm 2018:07:21-10:13:48 sophos auisys[28596]: 2. Modules::Auisys::Legacy::Systemstep::real_installation:1232() /</sbin/auisys.plx>Modules/Auisys/Legacy/Systemstep.pm 2018:07:21-10:13:48 sophos auisys[28596]: 3. Modules::Auisys::Installer::Systemstep::install:227() /</sbin/auisys.plx>Modules/Auisys/Installer/Systemstep.pm 2018:07:21-10:13:48 sophos auisys[28596]: 4. Modules::Auisys::Up2DatePackages::install:143() /</sbin/auisys.plx>Modules/Auisys/Up2DatePackages.pm 2018:07:21-10:13:48 sophos auisys[28596]: 5. Modules::Auisys::QueueIterator::process_qfiles:81() /</sbin/auisys.plx>Modules/Auisys/QueueIterator.pm 2018:07:21-10:13:48 sophos auisys[28596]: 6. main::main:298() auisys.pl 2018:07:21-10:13:48 sophos auisys[28596]: 7. main::top-level:35() auisys.pl 2018:07:21-10:13:48 sophos auisys[28596]: |========================================================================= 2018:07:21-10:13:48 sophos auisys[28596]: Error details: 2018:07:21-10:13:48 sophos auisys[28596]: (stdout):$VAR1 = []; 2018:07:21-10:13:48 sophos auisys[28596]: (stderr):$VAR1 = [ 2018:07:21-10:13:48 sophos auisys[28596]: 'error: cannot open Packages database in /var/lib/rpm 2018:07:21-10:13:48 sophos auisys[28596]: ' 2018:07:21-10:13:48 sophos auisys[28596]: ]; 2018:07:21-10:13:48 sophos auisys[28596]: 2018:07:21-10:13:48 sophos auisys[28596]: 1. Modules::Logging::msg:46() /</sbin/auisys.plx>Modules/Logging.pm 2018:07:21-10:13:48 sophos auisys[28596]: 2. Modules::Auisys::Legacy::Systemstep::real_installation:1233() /</sbin/auisys.plx>Modules/Auisys/Legacy/Systemstep.pm 2018:07:21-10:13:48 sophos auisys[28596]: 3. Modules::Auisys::Installer::Systemstep::install:227() /</sbin/auisys.plx>Modules/Auisys/Installer/Systemstep.pm 2018:07:21-10:13:48 sophos auisys[28596]: 4. Modules::Auisys::Up2DatePackages::install:143() /</sbin/auisys.plx>Modules/Auisys/Up2DatePackages.pm 2018:07:21-10:13:48 sophos auisys[28596]: 5. Modules::Auisys::QueueIterator::process_qfiles:81() /</sbin/auisys.plx>Modules/Auisys/QueueIterator.pm 2018:07:21-10:13:48 sophos auisys[28596]: 6. main::main:298() auisys.pl 2018:07:21-10:13:48 sophos auisys[28596]: 7. main::top-level:35() auisys.pl 2018:07:21-10:13:48 sophos auisys[28596]: |========================================================================= 2018:07:21-10:13:48 sophos auisys[28596]: id="371O" severity="error" sys="system" sub="up2date" name="Fatal: Up2Date package installation failed: An error occured during the RPM pre-installation test (1)" status="failed" action="install" code="1" package="sys" 2018:07:21-10:13:48 sophos auisys[28596]: 2018:07:21-10:13:48 sophos auisys[28596]: 1. Modules::Logging::alf:100() /</sbin/auisys.plx>Modules/Logging.pm 2018:07:21-10:13:48 sophos auisys[28596]: 2. Modules::Auisys::Installer::Systemstep::install:246() /</sbin/auisys.plx>Modules/Auisys/Installer/Systemstep.pm 2018:07:21-10:13:48 sophos auisys[28596]: 3. Modules::Auisys::Up2DatePackages::install:143() /</sbin/auisys.plx>Modules/Auisys/Up2DatePackages.pm 2018:07:21-10:13:48 sophos auisys[28596]: 4. Modules::Auisys::QueueIterator::process_qfiles:81() /</sbin/auisys.plx>Modules/Auisys/QueueIterator.pm 2018:07:21-10:13:48 sophos auisys[28596]: 5. main::main:298() auisys.pl 2018:07:21-10:13:48 sophos auisys[28596]: 6. main::top-level:35() auisys.pl 2018:07:21-10:13:48 sophos auisys[28596]: [CRIT-311] Firmware Up2Date installation failed 2018:07:21-10:14:10 sophos auisys[28596]: |========================================================================= 2018:07:21-10:14:10 sophos auisys[28596]: A serious error occured during installation! (70) 2018:07:21-10:14:10 sophos auisys[28596]: 2018:07:21-10:14:10 sophos auisys[28596]: 1. Modules::Logging::msg:46() /</sbin/auisys.plx>Modules/Logging.pm 2018:07:21-10:14:10 sophos auisys[28596]: 2. main::main:308() auisys.pl 2018:07:21-10:14:10 sophos auisys[28596]: 3. main::top-level:35() auisys.pl


ran "auisys.plx --verbose --rpmargs --force rpmreinstall"


.....

Not installing optional kernel-smp
Not installing optional kernel-smp64
Creating automatic configuration backup
Starting up2date package installation
Testing install package: libopenssl1_0_0-1.0.2j-4.1.0.273786758.g4b4a1fb.rb11.i686.rpm Failed!
Failed testing RPM installation (command: 'rpm --test -U --nodeps --force /var/up2date/sys-install/u2d-sys-9.506002/rpms/libopenssl1_0_0-1.0.2j-4.1.0.273786758.g4b4a1fb.rb11.i686.rpm')
Error details:
(stdout):$VAR1 = [];
(stderr):$VAR1 = [
'error: cannot open Packages database in /var/lib/rpm
'
];
A serious error occured during installation! (70)

sudo rpm --rebuilddb

error: can't create transaction lock on /

Thoughts?




This thread was automatically locked due to age.
  • Maybe faster way is a reinstall from iso and restore settings from backup.

    I know it’s only a workaround. But you should be faster than other ways.

    Best

    Alex

    -

  • Hi Paul and welcome to the UTM Community!

    Before trying to rebuild the database, try:

    rm -f /var/lib/rpm/__db*

    If that doesn't work, try the following and then get a new version of the Up2Date:

    rm /var/up2date/sys/*

    Any luck with either of those?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • No luck

    sophos:/home/login # rm -f /var/lib/rpm/__db*
    sophos:/home/login # rpm --rebuilddb
    error: can't create transaction lock on /
    sophos:/home/login #

    then

    sophos:/home/login # rm /var/up2date/sys/*
    rm: cannot remove `/var/up2date/sys/*': No such file or directory
    sophos:/home/login #

    Tried

    sophos:/var/lib/rpm # ls-l
    total 17100
    -rw-r--r-- 1 root root 1441792 May 10 14:30 Basenames
    -rw-r--r-- 1 root root 12288 Oct 6 2017 Conflictname
    -rw-r--r-- 1 root root 520192 May 10 14:30 Dirnames
    -rw-r--r-- 1 root root 2613248 May 10 14:30 Filemd5s
    -rw-r--r-- 1 root root 28672 May 10 14:30 Group
    -rw-r--r-- 1 root root 20480 May 10 14:30 Installtid
    -rw-r--r-- 1 root root 49152 May 10 14:30 Name
    -rw-r--r-- 1 root root 11304960 May 10 14:30 Packages
    -rw-r--r-- 1 root root 1331200 May 10 14:30 Providename
    -rw-r--r-- 1 root root 778240 May 10 14:30 Provideversion
    -rw-r--r-- 1 root root 225280 May 10 14:30 Requirename
    -rw-r--r-- 1 root root 131072 May 10 14:30 Requireversion
    -rw-r--r-- 1 root root 81920 May 10 14:30 Sha1header
    -rw-r--r-- 1 root root 49152 May 10 14:30 Sigmd5
    -rw-r--r-- 1 root root 12288 Oct 6 2017 Triggername
    sophos:/var/lib/rpm #

  • Paul, did you su - to become the root user instead of the loginuser before you tried those commands?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA