kernel fixing

Hi,
Ok I have 2 kernels installed on my system 4.9.0rc6 & 4.8.11 with no repository installed because they were deleted. The system was doing an update to a previous kernel and now my system cannot boot. How would I delete the kernel and stay with the default. Default 4.9.0 rc6.
Also mentioning how could I install the lastest kernel repository since the current one was deleted. I think if I just upgrade my kernel it would fix the problem. Am I correct?

Hi
Select the advanced option in grub and select the previous kernel, or if using btrfs, rollback to an earlier snapshot…

You must have had Kernel:Head repo for 4.9.x and Kernel:stable for 4.8.11.

To add them back;


zypper ar -f -g -n "repo-Kernel:HEAD" http://download.opensuse.org/repositories/Kernel:/HEAD/standard/ "repo-Kernel:HEAD"
zypper ar -f -g -n "repo-Kernel:stable" http://download.opensuse.org/repositories/Kernel:/stable/standard/ "repo-Kernel:stable"

ok their added.

It askes me to run “snapper rollback”.
How would I do that?

fixed.
THANK YOU VERY MUCH!

Oh wait one thing.
When I reboot the bootloader pops up again.
To prevent this I would just have to just update?
Zypper dup?

Hi
Yes, depending on what kernel your wanting? then use zypper dup --from <repo> to switch it to the repo you want.

# zypper dup --f http://download.opensuse.org/repositories/Kernel:/HEAD/standard/
Loading repository data...
Reading installed packages...
Computing distribution upgrade...

The following 5 NEW packages are going to be installed:
  kernel-default-4.9.rc6-2.1.g526bb3c kernel-default-devel-4.9.rc6-2.1.g526bb3c
  kernel-devel-4.9.rc6-2.1.g526bb3c kernel-source-4.9.rc6-2.1.g526bb3c
  kernel-syms-4.9.rc6-2.1.g526bb3c

The following package is going to be upgraded:
  kernel-macros

1 package to upgrade, 5 new.
Overall download size: 103.7 MiB. Already cached: 52.0 MiB. After the operation,
additional 863.6 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package kernel-macros-4.9.rc6-2.1.g526bb3c.noarch
                                                   (1/6), 588.0 KiB (  6.3 KiB unpacked)
Retrieving: kernel-macros-4.9.rc6-2.1.g526bb3c.noarch.rpm ..........[done (503.9 KiB/s)]
In cache kernel-default-4.9.rc6-2.1.g526bb3c.x86_64.rpm
                                                   (2/6),  52.0 MiB (240.0 MiB unpacked)
Retrieving package kernel-devel-4.9.rc6-2.1.g526bb3c.noarch
                                                   (3/6),  11.2 MiB ( 54.1 MiB unpacked)
Retrieving: kernel-devel-4.9.rc6-2.1.g526bb3c.noarch.rpm ...........[done (775.4 KiB/s)]
Retrieving package kernel-default-devel-4.9.rc6-2.1.g526bb3c.x86_64
                                                   (4/6),   3.0 MiB (  3.8 MiB unpacked)
Retrieving: kernel-default-devel-4.9.rc6-2.1.g526bb3c.x86_64.rpm ...[done (745.9 KiB/s)]
Retrieving package kernel-source-4.9.rc6-2.1.g526bb3c.noarch
                                                   (5/6),  88.4 MiB (565.7 MiB unpacked)
Retrieving: kernel-source-4.9.rc6-2.1.g526bb3c.noarch.rpm ..........[done (777.2 KiB/s)]
Retrieving package kernel-syms-4.9.rc6-2.1.g526bb3c.x86_64
                                                   (6/6), 585.9 KiB (  345   B unpacked)
Retrieving: kernel-syms-4.9.rc6-2.1.g526bb3c.x86_64.rpm ............[done (646.7 KiB/s)]
Checking for file conflicts: .....................................................[done]
(1/6) Installing: kernel-macros-4.9.rc6-2.1.g526bb3c.noarch .....................[error]
Installation of kernel-macros-4.9.rc6-2.1.g526bb3c.noarch failed:
Error: Subprocess failed. Error: RPM failed: error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Read-only file system)

?

Hi
Ahh, so you booted from a snapshot? If so run the command snapper rollback <number you booted from> and reboot…