Warning: local package is newer than repo package

My system said I needed an update which was like 500MBs in size. I don’t know what happened I switched the kernel from Linux 4.19.175-1 to Linux 5.4.97-1 my bluetooth stopped working. To fix this I switched back to linux419 and still bluetooth was not fixed. Me an intellectual went and did this from an old arch linux forum

# point mirrorlist to the archive specifying date to rollback to e.g. to return to 5th April:

echo 'Server=https://archive.archlinux.org/repos/2021/02/17/$repo/os/$arch' > /etc/pacman.d/mirrorlist      #(I InvincibleKnigght changed the date here) 


# do a full system upgrade (double 'y' refreshes your package database, double 'u' allows pacman to downgrade packages)
pacman -Syyuu

after which pacman has been facing issues like:(Out put when I run sudo pacman -Syu:) paste[dot]ubuntu[dot]com/p/gjYc5T3h63/
Please help me I am scared as hell. Thank you!

Hi,

That mirror is for Archlinux and not Manjaro.

Have you checked the Manjaro wiki for generating a mirrorlist?
At the wiki (I cannot post with the url to the wiki):

  • Pacman-mirrors
  • 2.2 Commands using defaults

That should help you correct the mirrorlist configuration.

Well for one… don’t just apply random things to your computer without looking into it.

That is obviously Arch Linux, and not Manjaro. Manjaro =/= Arch Linux. You have updated all your packages with the newer packages from Arch Linux now.

You can go into /etc/pacman.d/mirrorlist and delete that line.

Then run:

sudo pacman-mirrors -f 5 #this will update and rank the mirrorlist by speed, up to 5 mirrors
sudo pacman -Syyuu #this will sync, refresh mirrors, downgrade packages to repo version, and update

I cannot promise that your computer will not run into problems after downgrading everything.

This is similar to going to Manjaro Unstable (Arch Stable), then switching back to Manjaro Stable, and trying to revert all your packages to the versions in Stable repo. Some packages don’t play well with the downgrade from my experience, but you might be lucky.

2 Likes

Hey, I will definitely keep in mind not to run random commands.

I am getting the following outputs:

  $ sudo pacman-mirrors -f 5
 ::INFO Downloading mirrors from repo.manjaro.org
 ::INFO Using default mirror file
 ::INFO Querying mirrors - This may take some time
  ..... South_Korea    : https://mirror.krmir.org/manjaro/
 1.152 South_Korea    : http://mirror.krmir.org/manjaro/
 1.627 South_Korea    : ftp://mirror.krmir.org/manjaro/
  3.169 Iceland        : https://mirrors.opensource.is/manjaro/
  1.576 Iceland        : http://mirrors.opensource.is/manjaro/
  ..... Iceland        : ftp://mirrors.opensource.is/manjaro/
   
::ERROR ftp error: error_perm('550 Failed to change directory.') 'ftp://mirrors.opensource.is/manjaro/'

  1.814 Bulgaria       : https://manjaro.ipacct.com/manjaro/
  ..... Austria        : http://mirror.easyname.at/manjaro/
  1.751 Austria        : ftp://mirror.easyname.at/manjaro/
  0.608 France         : http://kibo.remi.lu/
::INFO Writing mirror list
::France          : http://kibo.remi.lu/stable
::South_Korea     : https://mirror.krmir.org/manjaro/stable
::Austria         : http://mirror.easyname.at/manjaro/stable
::Bulgaria        : https://manjaro.ipacct.com/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

and the other command:

$ sudo pacman -Syyuu
:: Synchronizing package databases...
core                                                            166.6 KiB  3.25 MiB/s 00:00 [#############################################################################################] 100%
extra                                                          2002.3 KiB  7.82 MiB/s 00:00 [#############################################################################################] 100%
community                                                         6.5 MiB  13.0 MiB/s 00:01 [#############################################################################################] 100%
multilib                                                        181.3 KiB  8.85 MiB/s 00:00 [#############################################################################################] 100%
:: Starting full system upgrade...
there is nothing to do

Is my system back to normal? Thank you!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.