Ask Your Question
1

Cache for “updates” cannot be synchronized in f26 to f27 offline upgrade

asked 2017-11-16 07:31:07 -0500

Martin Ueding gravatar image

I ran dnf system-upgrade download --releasever=27 --allowerasing --refresh and then later on dnf systen-upgrade reboot. It then reboots, but it fails reproducible with the following:

Nov 16 14:22:15 martin-friese systemd[1]: Reached target System Initialization.
Nov 16 14:22:15 martin-friese systemd[1]: Starting System Upgrade using DNF...
Nov 16 14:22:15 martin-friese systemd[1]: Started Updates device firmware whilst offline.
Nov 16 14:22:15 martin-friese audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fwupd-offline-update comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 14:22:15 martin-friese systemd[1]: Listening on D-Bus System Message Bus Socket.
Nov 16 14:22:15 martin-friese systemd[1]: Starting Update the operating system whilst offline...
Nov 16 14:22:15 martin-friese pk-offline-update[1022]: another framework set up the trigger
Nov 16 14:22:15 martin-friese systemd[1]: Started Update the operating system whilst offline.
Nov 16 14:22:15 martin-friese audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=packagekit-offline-update comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 14:22:15 martin-friese audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=packagekit-offline-update comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 14:22:15 martin-friese audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fwupd-offline-update comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 14:22:17 martin-friese systemd[1]: Received SIGRTMIN+20 from PID 387 (plymouthd).
Nov 16 14:22:19 martin-friese audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 14:22:19 martin-friese kernel: kauditd_printk_skb: 70 callbacks suppressed
Nov 16 14:22:19 martin-friese kernel: audit: type=1131 audit(1510838539.176:94): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 16 14:22:23 martin-friese dnf[1020]: Fehler: Zwischenspeicher für Paketquelle »updates« konnte nicht synchronisiert werden
Nov 16 14:22:23 martin-friese systemd[1]: dnf-system-upgrade.service: Main process exited, code=exited, status=1/FAILURE
Nov 16 14:22:23 martin-friese systemd[1]: Failed to start System Upgrade using DNF.
Nov 16 14:22:23 martin-friese audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dnf-system-upgrade comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 16 14:22:23 martin-friese systemd[1]: dnf-system-upgrade.service: Unit entered failed state.
Nov 16 14:22:23 martin-friese systemd[1]: dnf-system-upgrade.service: Failed with result 'exit-code'.
Nov 16 14:22:23 martin-friese systemd[1 ...
(more)
edit retag flag offensive close merge delete

Comments

I have filed a bug for this.

Martin Ueding gravatar imageMartin Ueding ( 2017-11-18 04:30:06 -0500 )edit

Coming from problem-reboot-to-upgrade-from-26-to-27. May this be a kernel bug or actually hardware problems ? I remember having trouble installing fedora 26 because of my gpu (a gtx970), I had to do boot without graphical acceleration or I ran into a reboot.

btaillefer gravatar imagebtaillefer ( 2017-11-18 06:34:04 -0500 )edit

More like a DNF / system-upgrade bug. https://github.com/rpm-software-manag...

https://bugzilla.redhat.com/show_bug.... It helped me too, I commented (with #) line 931 in /lib/python3.6/site-packages/dnf/repo.py and upgrade went fine.

In case of issues with nvidia driver during upgrade, use RPMFusion's driver - it will provide newer, compatible version automatically.

ozeszty gravatar imageozeszty ( 2017-11-18 09:15:21 -0500 )edit

Commenting the line didn't worked for me and raise another error at line 636

dnf[703]:   File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 636, in _repomd_fn
dnf[703]:     return self.metadata._repomd_fn
dnf[703]: AttributeError: 'NoneType' object has no attribute '_repomd_fn'
btaillefer gravatar imagebtaillefer ( 2017-11-18 13:56:43 -0500 )edit

I have the same problem ...

EllePi gravatar imageEllePi ( 2017-11-21 09:40:01 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2017-11-21 11:33:02 -0500

btaillefer gravatar image

I was having the same problem, please try this, it worked for me.

What I did :

sudo dnf repolist sudo dnf config-manager --set-disabled [repo name without stars] sudo dnf repolist /!(check if only star repo)/!\ sudo dnf update

Then follow what's described in fedora magazine article for upgrading from 26 to 27.

Worked like a charm.

Don't forget to enable back your repos after update.

edit flag offensive delete link more

Comments

again, didn't work for me.

ceres2009 gravatar imageceres2009 ( 2017-11-27 02:11:35 -0500 )edit
0

answered 2017-11-29 05:50:14 -0500

ozeszty gravatar image

updated 2017-11-29 05:51:12 -0500

It seems that this bug is fixed in an upcoming update: https://bodhi.fedoraproject.org/updat...

So either update DNF or comment (using #) line 931 in /lib/python3.6/site-packages/dnf/repo.py (it worked for me on three computers) and retry upgrade process.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-16 07:31:07 -0500

Seen: 657 times

Last updated: Nov 29 '17