gdha / rear-automated-testing

Relax-and-Recover Automated Testing
https://gdha.github.io/rear-automated-testing/
GNU General Public License v3.0
10 stars 2 forks source link

ubuntu16.04: rear update to the most recent git release fails #30

Closed gdha closed 6 years ago

gdha commented 7 years ago

If rear-2.2+dfsg-2 was already present updating rear fails:

Update rear on the VM client
Warning: Permanently added '192.168.33.10' (ECDSA) to the list of known hosts.
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://ppa.launchpad.net/ansible/ansible/ubuntu xenial InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Ign:5 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ InRelease
Ign:6 http://download.bareos.org/bareos/release/latest/xUbuntu_16.04 ./ InRelease
Get:7 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ Release [1,046 B]
Get:8 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ Release.gpg [189 B]
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:10 http://download.bareos.org/bareos/release/latest/xUbuntu_16.04 ./ Release
Get:11 http://download.bareos.org/bareos/release/latest/xUbuntu_16.04 ./ Release.gpg [827 B]
Ign:8 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ Release.gpg
Hit:12 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ Packages
Ign:11 http://download.bareos.org/bareos/release/latest/xUbuntu_16.04 ./ Release.gpg
Fetched 308 kB in 0s (583 kB/s)
Reading package lists...
W: GPG error: http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B7485DB725A0C43
W: The repository 'http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ Release' is not signed.
W: GPG error: http://download.bareos.org/bareos/release/latest/xUbuntu_16.04 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F93C028C093BFBA2
W: The repository 'http://download.bareos.org/bareos/release/latest/xUbuntu_16.04 ./ Release' is not signed.
Warning: Permanently added '192.168.33.10' (ECDSA) to the list of known hosts.
Reading package lists...
Building dependency tree...
Reading state information...
rear is already the newest version (2.2+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gdha commented 6 years ago

Perhaps a work-around could be to remove the previous version of ReaR before updating to the latest version? With this technique we could jump from a snapshot to a stable release of any kind. Might consider this seriously

gdha commented 6 years ago

Test with remove and re-install seems to work well on ubintu16.04:

# apt install rear
Reading package lists... Done
Building dependency tree       
Reading state information... Done
rear is already the newest version (2.2-0git.0.e425913.unknown.changed).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# apt -y remove rear
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  rear
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2,537 kB disk space will be freed.
(Reading database ... 43645 files and directories currently installed.)
Removing rear (2.2-0git.0.e425913.unknown.changed) ...
Processing triggers for man-db (2.7.5-1) ...

# ls /etc/rear
local.conf  local.conf.saved

# apt -y install rear
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rear
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 327 kB of archives.
After this operation, 2,543 kB of additional disk space will be used.
Get:1 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ rear 2.2-0git.0.39e3103.unknown.changed [327 kB]
Fetched 327 kB in 0s (419 kB/s)
Selecting previously unselected package rear.
(Reading database ... 42350 files and directories currently installed.)
Preparing to unpack .../rear_2.2-0git.0.39e3103.unknown.changed_amd64.deb ...
Unpacking rear (2.2-0git.0.39e3103.unknown.changed) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up rear (2.2-0git.0.39e3103.unknown.changed) ...

# rear -V
Relax-and-Recover 2.2-git.0.39e3103.unknown.changed / 2017-11-10
gdha commented 6 years ago

Fixing the apt-key task in ansible seemed to have fixed this upgrade problem in ubuntu

The following packages will be upgraded:
  rear
1 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
Need to get 328 kB of archives.
After this operation, 13.3 kB of additional disk space will be used.
Get:1 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/xUbuntu_16.04 ./ rear 2.2-0git.0.c6d5398.unknown.changed [328 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 328 kB in 0s (422 kB/s)
(Reading database ... 43645 files and directories currently installed.)
Preparing to unpack .../rear_2.2-0git.0.c6d5398.unknown.changed_amd64.deb ...
Unpacking rear (2.2-0git.0.c6d5398.unknown.changed) over (2.2-0git.0.39e3103.unknown.changed) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up rear (2.2-0git.0.c6d5398.unknown.changed) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.