linux-surface / linux-surface

Linux Kernel for Surface Devices
4.61k stars 201 forks source link

Manjaro Pamac stops working after surface linux is added to pacman conf file #1379

Open MiguelNiblock opened 3 months ago

MiguelNiblock commented 3 months ago

after following the instructions for arch, while using manjaro, (https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup#arch), the manjaro package manager pamac no longer can update packages.

specifically, adding the repository to the conf file for pacman, causes the problem, and when I remove it, pamac starts working again.

[linux-surface]
Server = https://pkg.surfacelinux.com/arch/

and this is the result of pamac update:

Preparing...
Synchronizing package databases...
Error: linux-surface: signature from "linux-surface" is invalid
Refreshing linux-surface.db...                                                                                                        
Error: linux-surface.db: linux-surface: signature from "linux-surface" is invalid                                                     
invalid or corrupted database (PGP signature)
Failed to synchronize databases

this is the result of pacman -Syu. this confirms the key is correct as seen from there. it is only considered invalid from the manjaro pamac side of things.

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 linux-surface is up to date
:: Starting full system upgrade...
 there is nothing to do

I also tried running again the command to add the key. after i do this, pamac worked the first time i ran pamac update, but started failing again after the 2nd time the command pamac update was run.

curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
    | sudo pacman-key --add -

Environment

[    0.000000] microcode: updated early: 0xec -> 0xf4, date = 2023-02-23
[    0.000000] Linux version 6.4.12-arch1-1-surface (linux-surface@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Fri, 25 Aug 2023 20:46:28 +0000
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux-surface root=UUID=134c18e7-02c2-4539-b86d-0c3cb0879e23 rw quiet splash udev.log_priority=3
ManuelBoe14 commented 3 months ago

I had the same problem on my sgo1.

Apparently the PGP signature has expired.

qzed commented 2 months ago

Apparently the PGP signature has expired.

Our PGP key doesn't have any expiration date set. Maybe that's the issue?

rommeswi commented 1 month ago

I kept having the same issues and ended up not using pamac. yay is not quite as convenient but gets the job done, too.