New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update dom0 kernel #2945

Closed
taoeffect opened this Issue Jul 30, 2017 · 21 comments

Comments

@taoeffect

taoeffect commented Jul 30, 2017

Qubes OS version (e.g., R3.2):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

fedora-23


While trying to get some other screen resolution other than 800x600 on an ASUS Q325 thin laptop thing by following these instructions, it all fails.

Expected behavior:

I follow "Kernel Upgrade" instructions here by running sudo qubes-dom0-update --enablerepo=qubes-dom0-unstable kernel kernel-qubes-vm, and it does whatever it's supposed to.

Actual behavior:

It runs the command on sys-firewall, there's a red error message that says xrandr: Failed to get size of gamma for output default, followed by a Traceback (manually typed out, hope you appreciate the effort I'm going into for this):

Traceback (most recent call last):
  File "/bin/qvm-run", line 222, in <module>
    main()
  File "/bin/qvm-run", line 217, in main
    r = vm_run_cmd(vm, cmdstr, options)
  File "/bin/qvm-run", line 66, in vm_run_cmd
    gui = options.gui, filter_esc = options.filter_esc)
  File "/usr/lib64/python2.7/site-packages/qubes/modules/000QubesVm.py", line 1645, in run
     self.start_guid(verbose = verbose, notify_function = notify_function)
  File "/usr/lib64/python2.7/site-packages/qubes/modules000QubesVm.py", line 1821, in start_guid
    monitor_layout = qubes.monitorlayoutnotify.get_monitor_layout()
  File "/usr/lib64/python2.7/site-packages/qubes/monitorlayoutnotify.py", line 65, in get_monitor_layout
    int(output_params['width_mm']) / 10)
ZeroDivisionError: integer division or modulo by zero

That part was in white.

On the very next line, in red:

sed: can't read /var/lib/qubes/dom0-updates/etc/yum.conf: No such file or directory
Config error: Can not read configuration: /var/lib/qubes/dom0-updates/etc/yum.conf

Steps to reproduce the behavior:

Err, what I said above.

General notes:

I think I got it to "work" yesterday by opening up a package manager thing in thing in the sys-firewall vm and doing an update check, and then running the update command above again, but it did not seem to update the kernel, and the additional instructions of running sudo grub2-mkconfig -o /boot/grub2/grub.cfg are impossible to follow because grub2-mkconfig is not a command that exists in dom0.


Related issues:

@taoeffect

This comment has been minimized.

Show comment
Hide comment
@taoeffect

taoeffect Jul 30, 2017

This is so strange, if I simply run the command a second time it starts doing things and saying: "Package kernel-1000:4.4.14-11.pvops.qubes.x86_64 is already installed, skipping" yada yada,

Then it says a bunch more stuff, then:

Install 2 Packages

Total download size: 85 M
Installed size: 85 M
Downloading Packages:

And it sits there for a while... too long.

Don't think I've got time to wait for it to finish as I've gotta run, but if I remember correctly the last time it did this it ended with "nothing to be done" or something like that, and after rebooting it still didn't show any other resolution other than 800x600 in the Display prefs, and I don't think it updated the kernel.

uname -a currently says Linux dom0 4.4.14-11.. etc

If when I get back it does anything different than it did last time I got it to get to this point, then I'll update or close the issue. But I'm pretty sure it won't.

This is so strange, if I simply run the command a second time it starts doing things and saying: "Package kernel-1000:4.4.14-11.pvops.qubes.x86_64 is already installed, skipping" yada yada,

Then it says a bunch more stuff, then:

Install 2 Packages

Total download size: 85 M
Installed size: 85 M
Downloading Packages:

And it sits there for a while... too long.

Don't think I've got time to wait for it to finish as I've gotta run, but if I remember correctly the last time it did this it ended with "nothing to be done" or something like that, and after rebooting it still didn't show any other resolution other than 800x600 in the Display prefs, and I don't think it updated the kernel.

uname -a currently says Linux dom0 4.4.14-11.. etc

If when I get back it does anything different than it did last time I got it to get to this point, then I'll update or close the issue. But I'm pretty sure it won't.

@taoeffect

This comment has been minimized.

Show comment
Hide comment
@taoeffect

taoeffect Jul 30, 2017

Oh, it just finished, with error:

Error: Error downloading packages:
   Cannot download rpm/kernel-4.8.12-12.pvops.qubes.x86_64.rpm: All mirrors were tried

Which doesn't make sense because the machine is connected to the Internet and I can load websites.

taoeffect commented Jul 30, 2017

Oh, it just finished, with error:

Error: Error downloading packages:
   Cannot download rpm/kernel-4.8.12-12.pvops.qubes.x86_64.rpm: All mirrors were tried

Which doesn't make sense because the machine is connected to the Internet and I can load websites.

@0spinboson

This comment has been minimized.

Show comment
Hide comment
@0spinboson

0spinboson Jul 30, 2017

Try current-testing rather than unstable, contains 4.9 kernel. Not sure what the errors are about, sorry.

0spinboson commented Jul 30, 2017

Try current-testing rather than unstable, contains 4.9 kernel. Not sure what the errors are about, sorry.

@taoeffect

This comment has been minimized.

Show comment
Hide comment
@taoeffect

taoeffect Aug 1, 2017

OK, good news, but first: trying current-testing didn't help, I just got the same bizarre error about it being unable to download the packages after trying all mirrors.

So I simply tried on a different connection (with the original command to fetch unstable) and magically it worked!

Sorta, it told me that I had to run the command with additional flags that were not mentionedi n the documentation: --best --allowerasing

So the final command that worked (on a different connection) was:

sudo qubes-dom0-update --enablerepo=qubes-dom0-unstable kernel kernel-qubes-vm --best --allowerasing

Upon rebooting the display automatically picked the highest resolution and I breathed a sigh of relief. I updated the template VM to the latest fedora as well and now the command connections to the repositories on even the original connection. Again, bizarre, don't know what's going on with that.

So I'm not going to close this issue because it seems that I ran into various bugs along the way; I'll leave this open so that the various problems that I ran into (code, documentation, and otherwise) can be addressed hopefully in a future update, and also just to document all the weirdness I ran into.

taoeffect commented Aug 1, 2017

OK, good news, but first: trying current-testing didn't help, I just got the same bizarre error about it being unable to download the packages after trying all mirrors.

So I simply tried on a different connection (with the original command to fetch unstable) and magically it worked!

Sorta, it told me that I had to run the command with additional flags that were not mentionedi n the documentation: --best --allowerasing

So the final command that worked (on a different connection) was:

sudo qubes-dom0-update --enablerepo=qubes-dom0-unstable kernel kernel-qubes-vm --best --allowerasing

Upon rebooting the display automatically picked the highest resolution and I breathed a sigh of relief. I updated the template VM to the latest fedora as well and now the command connections to the repositories on even the original connection. Again, bizarre, don't know what's going on with that.

So I'm not going to close this issue because it seems that I ran into various bugs along the way; I'll leave this open so that the various problems that I ran into (code, documentation, and otherwise) can be addressed hopefully in a future update, and also just to document all the weirdness I ran into.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Aug 1, 2017

Member

Regarding original issue, looks like #2348, which was fixed long time ago. Maybe you haven't installed updates?

Member

marmarek commented Aug 1, 2017

Regarding original issue, looks like #2348, which was fixed long time ago. Maybe you haven't installed updates?

@taoeffect

This comment has been minimized.

Show comment
Hide comment
@taoeffect

taoeffect Aug 2, 2017

Regarding original issue, looks like #2348, which was fixed long time ago. Maybe you haven't installed updates?

I think I ran that after I updated dom0, so no, I don't think it's been fixed, and even supposing it were, it still shouldn't happen in the released version that's on the website.

There's also:

  • the issue of updating the docs to add --best --allowerasing
  • the bizarre issue with it failing to download the update from all mirrors
  • having to run the command twice because the first time generates sed: can't read /var/lib/qubes/dom0-updates/etc/yum.conf: No such file or directory

taoeffect commented Aug 2, 2017

Regarding original issue, looks like #2348, which was fixed long time ago. Maybe you haven't installed updates?

I think I ran that after I updated dom0, so no, I don't think it's been fixed, and even supposing it were, it still shouldn't happen in the released version that's on the website.

There's also:

  • the issue of updating the docs to add --best --allowerasing
  • the bizarre issue with it failing to download the update from all mirrors
  • having to run the command twice because the first time generates sed: can't read /var/lib/qubes/dom0-updates/etc/yum.conf: No such file or directory
@PsychicCat

This comment has been minimized.

Show comment
Hide comment
@PsychicCat

PsychicCat Sep 3, 2017

had the exact same problem with 3.2, fixed it thanks to you @taoeffect!

had the exact same problem with 3.2, fixed it thanks to you @taoeffect!

marmarek added a commit to marmarek/old-qubes-core-agent-linux that referenced this issue Sep 3, 2017

dom0-updates: do not modify yum.conf
Few reasons for this:
1. new templates use dnf to download packages, so yum.conf is unused
2. dom0 in Qubes 4.0 don't have this file at all (so sed fails here)
3. $OPTS already contains --setopt=reposdir=...

Fixes QubesOS/qubes-issues#2945

@marmarek marmarek referenced this issue in QubesOS/qubes-core-agent-linux Sep 3, 2017

Merged

dom0-updates: do not modify yum.conf #49

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 3, 2017

Member

the issue of updating the docs to add --best --allowerasing

No, the correct things is to add --action=update.

Member

marmarek commented Sep 3, 2017

the issue of updating the docs to add --best --allowerasing

No, the correct things is to add --action=update.

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Sep 15, 2017

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.8-1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.8-1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Sep 15, 2017

Closed

core-agent-linux v4.0.8 (r4.0) #216

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Sep 15, 2017

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.8-1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.8-1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Sep 15, 2017

Automated announcement from builder-github

The package qubes-core-agent_4.0.8-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_4.0.8-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Sep 15, 2017

Automated announcement from builder-github

The package qubes-core-agent_4.0.8-1+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_4.0.8-1+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 17, 2017

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.11-1.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.11-1.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 17, 2017

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.11-1.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Automated announcement from builder-github

The package python2-dnf-plugins-qubes-hooks-4.0.11-1.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 17, 2017

Automated announcement from builder-github

The package qubes-core-agent_4.0.11-1+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_4.0.11-1+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 17, 2017

Automated announcement from builder-github

The package qubes-core-agent_4.0.11-1+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_4.0.11-1+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

marmarek added a commit to QubesOS/qubes-core-agent-linux that referenced this issue May 7, 2018

dom0-updates: do not modify yum.conf
Few reasons for this:
1. new templates use dnf to download packages, so yum.conf is unused
2. dom0 in Qubes 4.0 don't have this file at all (so sed fails here)
3. $OPTS already contains --setopt=reposdir=...

Fixes QubesOS/qubes-issues#2945

(cherry picked from commit 49b70f0)
@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot May 7, 2018

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r3.2 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r3.2-current-testing

Changes included in this update

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r3.2 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r3.2-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot May 7, 2018

Automated announcement from builder-github

The component core-agent-linux (including package python2-dnf-plugins-qubes-hooks-3.2.29-1.fc26) has been pushed to the r3.2 testing repository for the Fedora template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r3.2-current-testing

Changes included in this update

Automated announcement from builder-github

The component core-agent-linux (including package python2-dnf-plugins-qubes-hooks-3.2.29-1.fc26) has been pushed to the r3.2 testing repository for the Fedora template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r3.2-current-testing

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot May 7, 2018

Automated announcement from builder-github

The package qubes-core-agent_3.2.30-1+deb9u1 has been pushed to the r3.2 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_3.2.30-1+deb9u1 has been pushed to the r3.2 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot May 14, 2018

Automated announcement from builder-github

The package qubes-core-agent_3.2.30-1+deb9u1 has been pushed to the r3.2 stable repository for the Debian template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Automated announcement from builder-github

The package qubes-core-agent_3.2.30-1+deb9u1 has been pushed to the r3.2 stable repository for the Debian template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot May 14, 2018

Automated announcement from builder-github

The component core-agent-linux (including package python2-dnf-plugins-qubes-hooks-3.2.30-1.fc26) has been pushed to the r3.2 stable repository for the Fedora template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Automated announcement from builder-github

The component core-agent-linux (including package python2-dnf-plugins-qubes-hooks-3.2.30-1.fc26) has been pushed to the r3.2 stable repository for the Fedora template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment