Error: failed to update DEB_Arch_Extra (no servers configured for repository)

Hello devs I’m not able to do anything in my system. It shows the title error everywhere. I have updated mirrors to but still not working. Here’s the details of my system and yes Desktop icons are not showing too.

System:
  Kernel: 5.10.36-2-MANJARO x86_64  (ManjaroLinux 21.0.5 Ornara) bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=1c73dafe-605f-4e26-90b8-0e0a04930257 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: N/A wm: xfwm4 vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux 
  base: Arch Linux 

Machine:
  Type: Laptop System: Hewlett-Packard product: HP Notebook 
  v: Type1ProductConfigId serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Hewlett-Packard model: 80C2 v: 96.51 serial: <filter> UEFI: Insyde 
  v: F.28 date: 11/21/2018 

Currently running: 5.10.36-2-MANJARO (linux510)
The following kernels are installed in your system:
   * linux510
   * linux54

  OS: Manjaro 21.0.5 Ornara
      Kernel: x86_64 Linux 5.10.36-2-MANJARO
     Uptime: 1h 56m
     Packages: 1410
     Shell: bash 5.1.8
     Resolution: 1366x768
     DE: Xfce4
     WM: Xfwm4
     WM Theme: Matcha-sea
     GTK Theme: Matcha-dark-aliz [GTK2]
     Icon Theme: Papirus
     Font: Noto Sans 10
     Disk: 868G / 922G (99%)
     CPU: Intel Core i5-5200U @ 4x 2.7GHz [77.0°C]
     GPU: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
     RAM: 4801MiB / 7874MiB

 [jignesh@jignesh-manjaro ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
error: failed to update DEB_Arch_Extra (no servers configured for repository)
error: failed to synchronize all databases

That repo is not part of manjaro. It is fully your choice to use that. Any error regarding that have nothing to do with the Manjaro devs. Remove it or deal with the problems.

DEB_Arch_Extra is already commented.

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg      = pacman glibc manjaro-system
# If upgrades are available for these packages they will be asked for first
SyncFirst    = manjaro-system archlinux-keyring manjaro-keyring
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

#IgnorePkg   =
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
# We cannot check disk space from within a chroot environment
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Manjaro Linux
# packagers with `pacman-key --populate archlinux manjaro`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional DatabaseOptional
#Server = file:///home/custompkgs

###REPO for MEGA###
#[DEB_Arch_Extra]
#SigLevel = Required DatabaseOptional
#Server = https ://mega.nz/linux/MEGAsync/Arch_Extra/$arch
###END REPO for MEGA###

Okay! I thought it is related to manjaro.

I changed.
pacman -Syu

(1184/1184) checking keys in keyring               [######################] 100%
downloading required keys...
:: Import PGP key 9D4C5AA15426DA0A, "Frederik Schwan <freswa@archlinux.org>"? [Y/n] Y
:: Import PGP key 94657AB20F2A092B, "Andreas Radke <andyrtr@archlinux.org>"? [Y/n] y
:: Import PGP key C06086337C50773E, "Jelle van der Waa <jelle@archlinux.org>"? [Y/n] y

error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

And that happens when you didn’t do any updates more than 2 months… :man_facepalming:

:arrow_down:

Workaround:

# update mirrors
sudo pacman-mirrors -c Germany # or any other Country
sudo pacman-mirrors -f 5
# remove gnupg and re-init it
sudo rm -rv /etc/pacman.d/gnupg
sudo pacman-key --init
# remove pacman cache
sudo rm -Rf /var/cache/pacman/pkg/*
# download the newest packages which contains the gpg keys
sudo mkdir -pv $HOME/.cache/pkg/ 
# !!! Don't import keys here... so type "n" if asking. !!!
sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/
# remove the signatures
sudo rm -f $HOME/.cache/pkg/*.sig
# Install the packages
sudo pacman -U $HOME/.cache/pkg/*.tar.zst
# clear the cache
sudo pacman -Sc
# Remove the downloaded packages again
sudo rm -Rf $HOME/.cache/pkg/
[jignesh-manjaro jignesh]# sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...

Packages (2) archlinux-keyring-20220927-1  manjaro-keyring-20221028-4

Total Download Size:  0.00 MiB

:: Proceed with download? [Y/n] Y
(2/2) checking keys in keyring                     [######################] 100%
downloading required keys...
:: Import PGP key CAA6A59611C7F07E, "Philip Müller <philm@manjaro.org>"? [Y/n] n
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] n
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
[jignesh-manjaro jignesh]#

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

Dear @Jigs07 … There is a full list of all commands in the right order… when you skip it and just run one command, then I cannot help. Help yourself by doing what is advised.

I Followed serial wise sir. I only posted this one that showing error. Honestly!

That command should ONLY download the packages which contains the needed keys… obviously that error appear, since it is not installed yet.

Since there is:

You didn’t delete the cache. Therefore I assumed you just skipped everything before.

Not able to post links here nor pictures.

[jignesh-manjaro jignesh]# sudo rm -rv /etc/pacman.d/gnupg
removed '/etc/pacman.d/gnupg/secring.gpg'
removed '/etc/pacman.d/gnupg/.gpg-v21-migrated'
removed '/etc/pacman.d/gnupg/S.gpg-agent.extra'
removed '/etc/pacman.d/gnupg/S.gpg-agent.ssh'
removed '/etc/pacman.d/gnupg/pubring.gpg'
removed '/etc/pacman.d/gnupg/gpg-agent.conf'
removed '/etc/pacman.d/gnupg/S.gpg-agent.browser'
removed '/etc/pacman.d/gnupg/openpgp-revocs.d/95BAC6CAFF181B26E6BD042A9FC4944B0E89677C.rev'
removed directory '/etc/pacman.d/gnupg/openpgp-revocs.d'
removed '/etc/pacman.d/gnupg/pubring.gpg~'
removed '/etc/pacman.d/gnupg/gpg.conf'
removed '/etc/pacman.d/gnupg/S.gpg-agent'
removed '/etc/pacman.d/gnupg/private-keys-v1.d/A8452DCA824954AFA79E8D9400D539B4E26A9F7D.key'
removed directory '/etc/pacman.d/gnupg/private-keys-v1.d'
removed '/etc/pacman.d/gnupg/trustdb.gpg'
removed directory '/etc/pacman.d/gnupg'
[jignesh-manjaro jignesh]# sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key C7A0D0957FECDCD7 marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/1B660E312596D5C3CE9FEF24C7A0D0957FECDCD7.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
[jignesh-manjaro jignesh]# sudo rm -Rf /var/cache/pacman/pkg/*
[jignesh-manjaro jignesh]# sudo mkdir -pv $HOME/.cache/pkg/ 
mkdir: created directory '/root/.cache/pkg/'
[jignesh-manjaro jignesh]# sudo pacman -Syw archlinux-keyring manjaro-keyring --cachedir $HOME/.cache/pkg/
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...

Packages (2) archlinux-keyring-20220927-1  manjaro-keyring-20221028-4

Total Download Size:  1.64 MiB

:: Proceed with download? [Y/n] Y
:: Retrieving packages...
 manjaro-keyring-20...   541.6 KiB   785 KiB/s 00:01 [###########################] 100%
 archlinux-keyring-...  1136.1 KiB  4.37 MiB/s 00:00 [###########################] 100%
(2/2) checking keys in keyring                       [###########################] 100%
downloading required keys...
:: Import PGP key CAA6A59611C7F07E, "Philip Müller <philm@manjaro.org>"? [Y/n] n
:: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] n
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
[jignesh-manjaro jignesh]#

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

Ok output is correct. Go ahead :wink:

[jignesh-manjaro jignesh]# sudo rm -f $HOME/.cache/pkg/.sig
[jignesh-manjaro jignesh]# sudo pacman -U $HOME/.cache/pkg/
.tar.zst
loading packages…
resolving dependencies…
looking for conflicting packages…

Packages (1) archlinux-keyring-20220927-1

Total Installed Size: 1.57 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
archlinux-keyring: /usr/share/pacman/keyrings/archlinux-revoked exists in filesystem
archlinux-keyring: /usr/share/pacman/keyrings/archlinux-trusted exists in filesystem
archlinux-keyring: /usr/share/pacman/keyrings/archlinux.gpg exists in filesystem
Errors occurred, no packages were upgraded.

The Asterisk * is a catch all placeholder. Please don’t ignore that:

To moderator editing: don’t forget to edit 4th post. Bet he’ll learn after that. :smiley: