Hi,
I'm trying to upgrade from 27 -> 28.
Yesterday I was running `sudo dnf system-upgrade download --releasever=28` when I had a power failure.
After I got power back, I tried to run it again I get the trace below.
I have tried repeating the process again from `sudo dnf upgrade --refresh` and removing and reinstalling system-upgrade, but I still get the same message.
Any suggestions on how to get round this?
Cheers,
Ewan
[ewan@headcrash ~]$ sudo dnf system-upgrade download --releasever=28 Traceback (most recent call last): File "/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main errcode = main(args) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 95, in _main cli.configure(list(map(ucd, args)), option_parser()) File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 860, in configure self._parse_commands(opts, args) File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 783, in _parse_commands self.command = command_cls(self) File "/usr/lib/python3.6/site-packages/dnf-plugins/system_upgrade.py", line 292, in __init__ self.state = State() File "/usr/lib/python3.6/site-packages/dnf-plugins/system_upgrade.py", line 109, in __init__ self._read() File "/usr/lib/python3.6/site-packages/dnf-plugins/system_upgrade.py", line 114, in _read self._data = json.load(fp) File "/usr/lib64/python3.6/json/__init__.py", line 299, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Ewan Slater writes:
Hi,
I'm trying to upgrade from 27 -> 28.
Yesterday I was running `sudo dnf system-upgrade download --releasever=28` when I had a power failure.
After I got power back, I tried to run it again I get the trace below.
I have tried repeating the process again from `sudo dnf upgrade --refresh` and removing and reinstalling system-upgrade, but I still get the same message.
Any suggestions on how to get round this?
Try dnf system-upgrade clean
That helped after a few goes.
The full story was:
1. sudo dnf remove system-upgrade 2. rm -rf /var/lib/dnf/system-upgrade* 3. dnf clean all 4. reboot 5. start again
It needed the reboot.
It's running now (fingers crossed).
Many thanks :-)
On 12/7/18 3:15 AM, Ewan Slater wrote:
I'm trying to upgrade from 27 -> 28.
Yesterday I was running `sudo dnf system-upgrade download --releasever=28` when I had a power failure.
After I got power back, I tried to run it again I get the trace below.
I have tried repeating the process again from `sudo dnf upgrade --refresh` and removing and reinstalling system-upgrade, but I still get the same message.
Any suggestions on how to get round this?
Try deleting everything in /var/lib/dnf/system-upgrade or just start with any json files you find in there to save the packages you have already downloaded.
On Fri, Dec 07, 2018 at 11:15:13AM -0000, Ewan Slater wrote:
I have tried repeating the process again from `sudo dnf upgrade --refresh` and removing and reinstalling system-upgrade, but I still get the same message. Any suggestions on how to get round this?
What does `dnf check` return?