Closed gdha closed 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
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
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.
If
rear-2.2+dfsg-2
was already present updating rear fails: