Q4.0 Fedora-26 -> Fedora-28 python3.6 errors

227 views
Skip to first unread message

john

unread,
May 15, 2018, 11:11:06 PM5/15/18
to qubes...@googlegroups.com
Hello Qubes Group.

I happened to notice the instruction now available, while wondering why
my VM Manager Fedora-26 green arrow wouldn't disappear. and have
proceeded to go from 26->28

https://www.qubes-os.org/doc/template/fedora/upgrade-27-to-28/#qubes-40-instructions

I did *note the caveat

---
To work around this error:

Upgrade while excluding the problematic packages by using -x
python2-xcffib -x qubes-gui-vm -x qubes-gui-agent.
Upgrade python2-xcffib using sudo dnf swap python-xcffib
python2-xcffib. (This should automatically upgrade the other excluded
packages too.)
---


which I assume means
---
sudo dnf --releasever=28 distro-sync --best --allowerasing -x
python2-xcffib -x qubes-gui-vm -x qubes-gui-agent ??
---

seeing they were python errors, I assumed it might be this and did do:
--
sudo dnf swap python-xcffib python2-xcffib
--

However, then I see:
--
The downloaded packages were saved in cache until the next successful
transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
Curl error (7): Couldn't connect to server for
https://mirrors.fedoraproject.org/metalink?repo=fedora-28&arch=x86_64
[Failed to connect to 127.0.0.1 port 8082: Connection refused]
--

*Then examine the initial error closer I note that these seem to be
different python errors


I get these errors:

-------
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 99, in
_main
return cli_run(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 123, in
cli_run
ret = resolving(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 154, in
resolving
base.do_transaction(display=displays)
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 238, in
do_transaction
display = [output.CliTransactionDisplay()] + list(display)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 784, in
do_transaction
return ret
File "/usr/lib/python3.6/site-packages/dnf/plugin.py", line 96, in fn
dnf.util.mapall(operator.methodcaller(method), self.plugins)
File "/usr/lib/python3.6/site-packages/dnf/util.py", line 223, in mapall
return wrapper
File "/usr/lib/python3.6/site-packages/dnf-plugins/qubes-hooks.py",
line 45, in transaction
if config.getboolean('main', 'notify-updates'):
File "/usr/lib/python3.6/site-packages/iniparse/compat.py", line 146,
in getboolean
v = self.get(section, option)
File "/usr/lib/python3.6/site-packages/iniparse/compat.py", line 219,
in get
raise NoSectionError(section)
---------

so am I too try :

sudo dnf --releasever=28 distro-sync --best --allowerasing -x dnf -x
iniparse



I'd rather not guess, and have a broken template to build on , or
create some kind of holes , etc


cheers


--
john <yrebstv-sGOZH3h...@public.gmane.org>

john

unread,
May 15, 2018, 11:16:28 PM5/15/18
to qubes...@googlegroups.com
I should add as an addendum, that the install seems to have otherwise
finished successfully, so maybe I just ignore the errors that
appeared after the 2000 packages were verified and continue ?




john

unread,
May 15, 2018, 11:27:49 PM5/15/18
to qubes...@googlegroups.com
On 05/15/18 17:10, john wrote:
actually if I base an AppVM on the Fedora-28 Template the qvm-start
<foo> won't start and killing it I get various python errors
........so guess need to resolve the upgrade errors .....

Blaumeer

unread,
May 16, 2018, 10:16:11 AM5/16/18
to qubes-users
Similar situation, different error. Did upgrade to 28 with the python exclusions:

[user@fedora-28 ~]$ sudo dnf --releasever=28 --setopt=cachedir=/mnt/removable --best --allowerasing distro-sync -x python2-xcffib -x qubes-gui-vm -x qubes-gui-agent

Then:

[user@fedora-28 ~]$ sudo dnf swap python-xcffib python2-xcffib
Error: Failed to synchronize cache for repo 'updates'

john

unread,
May 16, 2018, 4:45:56 PM5/16/18
to qubes...@googlegroups.com
interestingly, I just qvm-remove fedora-28 and started over and the
2nd time I got the xcffib error and then redid the install
with -x xcffib or so .......and got one error

Error: Transaction check error:
file /etc/dconf/profile/user from install of
dconf-0.28.0-1.fc28.x86_64 conflicts with file from package
qubes-core-agent-4.0.24-1.fc26.x86_64


AND then:

Error Summary
-------------

[user@fedora-28 ~]$ sudo dnf swap python-xcffib python2-xcffib
Last metadata expiration check: 0:51:25 ago on Wed May 16 09:52:22 2018.
No match for argument: python2-xcffib
Error: Unable to find a match




but, again no idea how to fix it or if it matters

john

unread,
May 17, 2018, 1:52:20 AM5/17/18
to qubes...@googlegroups.com
......qvm-remove fedora-28 ; and again start from scratch, no errors,
maybe there really is something to the 3rd time "being the charm" lol...

that, or maybe I was a bit early in the release of the Fed28 templates ..


mission complete

jhsd...@gmail.com

unread,
May 20, 2018, 2:00:12 PM5/20/18
to qubes-users
How you did it? I have similar problem.

sudo dnf --releasever=28 --setopt=cachedir=/mnt/removable--best --allowerasing distro-sync -x python2-xcffib -x qubes-gui-vm -x qubes-gui-agent

Sergio Matta

unread,
May 20, 2018, 2:28:30 PM5/20/18
to qubes-users
I did in fedora-27 terminal template:
sudo dnf clean all;
sudo dnf --releasever=28 --allowerasing --best -x python2-xcffib -x qubes-gui-vm -x qubes-gui-agent -x dconf;
sudo dnf swap python-xcffib python2-xcffib;
sudo dnf update --allowerasing --best enablerepo=qubes-vm*-current-testing;

No errors!

john

unread,
May 20, 2018, 6:41:21 PM5/20/18
to qubes...@googlegroups.com
$ sudo dnf --releasever=28 distro-sync --best --allowerasing
--enablerepo=qubes-vm*current-testing -x python2-xcffib -x qubes-gui-vm
-x qubes-gui-agent

then the

sudo dnf swap python-xcffib python2-xcffib



I guess my starting template was a clone of Fedora-27 ; if your
clone is Fedora-26 ......YMMV as they say ( my initial post was
with a Fed26 clone - 28


cooloutac

unread,
May 21, 2018, 12:50:57 AM5/21/18
to qubes-users

I had issues too going to fedora 27. I tried to do it off my clone didn't work. couldn't. find where to install it from testing repos either. but installing fedora 26 default vm and cloning and updating that worked fine.

also green arrow wouldn't go away for me since i'm using google chrome and use whonix to update the vm and would get failed to synchronize cache errors. had to change fedora repos to use https. then realized have to do same thing for google chrome repo.

jhsd...@gmail.com

unread,
May 21, 2018, 3:38:44 AM5/21/18
to qubes-users
Thank you ! Get 'em :) Finaly installed fedora-28, whonix-14 and buster.

Need to fix

https://www.qubes-os.org/doc/template/fedora/upgrade-27-to-28/

"-x python2-xcffib -x qubes-gui-vm -x qubes-gui-agent" to
Reply all
Reply to author
Forward
0 new messages