Latest update fails!

But do I still have to wait until the mirror have been updated after doing this command in terminal ?

If the first part is successful, you should been using another mirror, which should be up to date.

1 Like

Yeah ! Now the update went smooth and fine !

Thanks xabbu and everyone for helping me !

$ sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syu

:: Proceed with installation? [Y/n] y

But now I think that my mirrorlist has many more mirrors in it:

$ sudo pacman-mirrors
[sudo] password for philip: 
Pacman-mirrors version 4.23.2
Local mirror status for stable branch
Mirror #1   OK  01:36   Norway          http://mirror.terrahost.no/linux/manjaro/
Mirror #2   OK  03:48   Sweden          https://ftpmirror1.infania.net/mirror/manjaro/
Mirror #3   --  00:08   United_States   https://ask4.mm.fcix.net/manjaro/
Mirror #4   OK  01:37   Sweden          https://ftp.lysator.liu.se/pub/manjaro/
Mirror #5   OK  03:16   Germany         https://ftp.halifax.rwth-aachen.de/manjaro/
Mirror #6   OK  03:16   Netherlands     http://ftp.snt.utwente.nl/pub/linux/manjaro/
Mirror #7   OK  02:16   Netherlands     https://manjaro.mirror.wearetriple.com/
Mirror #8   OK  00:16   Global          https://mirrors.manjaro.org/repo/
Mirror #9   OK  00:06   Germany         https://mirror.alpix.eu/manjaro/
Mirror #10  OK  03:16   Germany         https://mirror.23m.com/manjaro/
Mirror #11  OK  00:15   Finland         https://manjaro.kyberorg.fi/
Mirror #12  OK  02:18   United_Kingdom  https://www.mirrorservice.org/sites/repo.manjaro.org/repos/
Mirror #13  OK  00:44   Belgium         https://mirror.futureweb.be/manjaro/
Mirror #14  OK  03:17   Russia          https://mirror.yandex.ru/mirrors/manjaro/
Mirror #15  OK  00:59   Switzerland     https://mirror.init7.net/manjaro/
Mirror #16  OK  02:18   United_Kingdom  https://mirrors.gethosted.online/manjaro/repos/
Mirror #17  OK  00:14   Austria         https://mirror.easyname.at/manjaro/
Mirror #18  OK  01:46   Netherlands     https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/
Mirror #19  OK  00:48   United_Kingdom  http://manjaro.mirrors.uk2.net/
Mirror #20  OK  00:06   Germany         https://ftp.gwdg.de/pub/linux/manjaro/
Mirror #21  OK  00:38   Netherlands     https://manjaro.mirrors.lavatech.top/
Mirror #22  OK  00:46   Hungary         https://quantum-mirror.hu/mirrors/pub/manjaro/
Mirror #23  OK  00:15   France          https://mirror.ibakerserver.pt/manjaro/
Mirror #24  OK  01:37   Poland          https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/
Mirror #25  OK  00:18   United_States   https://forksystems.mm.fcix.net/manjaro/
Mirror #26  OK  03:14   Belarus         http://mirror.datacenter.by/pub/mirrors/manjaro/
Mirror #27  OK  00:54   Armenia         http://manjaro.ucom.am/
Mirror #28  OK  00:18   United_States   https://nnenix.mm.fcix.net/manjaro/
Mirror #29  OK  00:18   United_States   https://coresite.mm.fcix.net/manjaro/
Mirror #30  --  00:08   United_States   https://nocix.mm.fcix.net/manjaro/
Mirror #31  OK  00:18   United_States   https://mnvoip.mm.fcix.net/manjaro/
Mirror #32  OK  03:16   Georgia         http://manjaro.grena.ge/
Mirror #33  OK  00:18   United_States   https://uvermont.mm.fcix.net/manjaro/
Mirror #34  OK  00:38   United_States   https://mirror.math.princeton.edu/pub/manjaro/
Mirror #35  OK  01:16   India           https://mirror.albony.xyz/manjaro/
Mirror #36  OK  03:18   Spain           https://ftp.caliu.cat/pub/distribucions/manjaro/
Mirror #37  --  00:08   United_States   https://southfront.mm.fcix.net/manjaro/
Mirror #38  OK  03:18   Ukraine         https://manjaro.astra.in.ua/
Mirror #39  --  00:08   United_States   https://volico.mm.fcix.net/manjaro/
Mirror #40  OK  02:14   Bulgaria        https://mirror.telepoint.bg/manjaro/
Mirror #41  OK  00:18   United_States   https://ziply.mm.fcix.net/manjaro/
Mirror #42  OK  00:18   United_States   https://codingflyboy.mm.fcix.net/manjaro/
Mirror #43  OK  01:44   Canada          https://mirror.xenyth.net/manjaro/
Mirror #44  OK  00:18   United_States   http://mirror.fcix.net/manjaro/
Mirror #45  OK  01:48   United_States   https://mirror2.sandyriver.net/pub/manjaro/
Mirror #46  OK  00:18   United_States   https://repo.ialab.dsu.edu/manjaro/
Mirror #47  OK  01:38   United_States   https://mirrors.gigenet.com/manjaro/
Mirror #48  OK  00:15   Colombia        https://edgeuno-bog2.mm.fcix.net/manjaro/
Mirror #49  --  00:08   United_States   https://opencolo.mm.fcix.net/manjaro/
Mirror #50  --  00:08   United_States   https://ohioix.mm.fcix.net/manjaro/
Mirror #51  OK  00:18   United_States   https://irltoolkit.mm.fcix.net/manjaro/
Mirror #52  OK  02:17   Spain           https://mirrors.ft.uam.es/manjaro/
Mirror #53  OK  03:15   Czechia         https://mirrors.nic.cz/manjaro/
Mirror #54  OK  03:17   Poland          https://ftp.psnc.pl/linux/manjaro/
Mirror #55  OK  01:07   Poland          https://repo.skni.umcs.pl/manjaro/
Mirror #56  OK  03:16   India           https://mirrors.vishnetwork.in/manjaro/
Mirror #57  OK  01:17   Singapore       https://mirror.freedif.org/Manjaro/
Mirror #58  OK  01:07   Russia          https://mirror.truenetwork.ru/manjaro/
Mirror #59  OK  00:37   Portugal        https://mirrors.up.pt/pub/manjaro/
Mirror #60  OK  03:16   Mauritius       https://manjarolinux-mirror.cloud.mu/
Mirror #61  OK  01:17   South_Korea     https://mirror.funami.tech/manjaro/
Mirror #62  OK  00:14   Australia       https://gsl-syd.mm.fcix.net/manjaro/
Mirror #63  OK  02:14   Canada          https://mirror.csclub.uwaterloo.ca/manjaro/
Mirror #64  OK  03:18   United_States   https://mirrors.sonic.net/manjaro/
Mirror #65  OK  02:16   Chile           https://mirror1.cl.netactuate.com/manjaro/
Mirror #66  OK  00:28   Taiwan          https://mirror.archlinux.tw/Manjaro/
Mirror #67  OK  01:44   Brazil          https://mirror.ufam.edu.br/manjaro/
Mirror #68  OK  00:38   United_States   https://mirrors.ocf.berkeley.edu/manjaro/
Mirror #69  OK  00:16   New_Zealand     http://manjaro.mirrors.theom.nz/manjaro/
Mirror #70  OK  00:34   Brazil          https://manjaro.c3sl.ufpr.br/
Mirror #71  OK  03:15   China           https://mirrors.jlu.edu.cn/manjaro/
Mirror #72  OK  01:44   Chile           https://mirror.ufro.cl/manjaro/
Mirror #73  OK  00:47   South_Africa    http://mirror.is.co.za/mirrors/manjaro.org/
Mirror #74  OK  03:14   Brazil          https://linorg.usp.br/manjaro/
Mirror #75  OK  01:16   Japan           http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
Mirror #76  OK  00:06   Bulgaria        https://manjaro.ipacct.com/manjaro/
Mirror #77  OK  02:14   Bangladesh      https://bd.mirror.vanehost.com/Manjaro/

But I don’t think it matters if I have several mirrors instead of just one.

Why put all your eggs in one basket? :wink:

Exactly my point. :blush:

When you change mirrors you need to use -Syyu

Having several mirrors is not a problem.

Please follow the instructions in Post
3 @Aragorn

1 Like
$ sudo pacman -Syyu
[sudo] password for philip: 
:: Synchronizing package databases...
 core                                                                                  143,6 KiB   210 KiB/s 00:01 [####################################################################] 100%
 extra                                                                                1636,9 KiB  1819 KiB/s 00:01 [####################################################################] 100%
 community                                                                               7,0 MiB  4,52 MiB/s 00:02 [####################################################################] 100%
 multilib                                                                              145,2 KiB  2,49 MiB/s 00:00 [####################################################################] 100%
:: Starting full system upgrade...
warning: manjaro-hello: local (0.7.0-6) is newer than extra (0.7.0-5)
 there is nothing to do

Done !

A mirror list with several mirrors is not a problem. It might even be a good thing.

You can but usually you don’t need to do yy even after a mirror change.
The Manajro wiki also don’t use yy and it will work fine.

2 Likes

Good to know !

Nope, I followed this all ā€œliveā€ and played around with choosing only sweden, denmark and norway, and if I didn’t use yy I got the ā€œnot authorizedā€ error. Running sudo pacman-mirrors --country Sweden,Norway,Denmark && sudo pacman -Syyu fixed it.

I also got very confused since there is zero mention of this in the wiki article.

What kind of error is that? There is not http error status code called ā€œnot authorizedā€, there is ā€œUnauthorizedā€ but this is a strange one with mirrors.

Anyway, if you switch mirrors form a not up to date mirror to an up to date mirror, there is no need for yy . If you play around you might need to use yy and of course if you switch branches you need to use yy.

Seriously?? :clown_face:

I can just tell you what happened.
The aur broke without using yy.

I have played around a little more to learn how pacman and list work, and it seems it sometimes also updates above what manjaro has, but a sudo pacman -Syyuu downgrades back to stable if anybody bumps into that problem as well.

The AUR has nothing to do with pacman

2 Likes

Really?

sudo pacman-mirrors --country Sweden,Norway,Denmark && sudo pacman -Syu                                                                                                                            4 ✘ 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.211 Denmark        : https://mirrors.dotsrc.org/manjaro/
  0.197 Norway         : http://mirror.terrahost.no/linux/manjaro/
  0.176 Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
  0.162 Sweden         : https://mirror.zetup.net/manjaro/
  0.183 Sweden         : https://ftpmirror1.infania.net/mirror/manjaro/
::INFO Writing mirror list
::Sweden          : https://mirror.zetup.net/manjaro/stable/$repo/$arch
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch
::Sweden          : https://ftpmirror1.infania.net/mirror/manjaro/stable/$repo/$arch
::Norway          : http://mirror.terrahost.no/linux/manjaro/stable/$repo/$arch
::Denmark         : https://mirrors.dotsrc.org/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
::INFO To reset custom mirrorlist 'sudo pacman-mirrors -id'
::INFO To remove custom config run  'sudo pacman-mirrors -c all'
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
pamac upgrade -a                                                                                                                                                                                     āœ” 
Preparing...
Synchronizing package databases...
Refreshing core.db...                                                                                                                                                                                               
Refreshing extra.db...                                                                                                                                                                                              
Refreshing AUR...                                                                                                                                                                                                   
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/core.db': Permission denied                                                                                                                                 
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/extra.db': Permission denied
Warning: linux515: local (5.15.114-2) is newer than core (5.15.114-1)
Warning: linux515-headers: local (5.15.114-2) is newer than core (5.15.114-1)
Nothing to do.
Transaction successfully finished.
sudo pacman-mirrors --country Sweden,Norway,Denmark && sudo pacman -Syyu                                                                                                                           2 ✘ 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.182 Denmark        : https://mirrors.dotsrc.org/manjaro/
  0.278 Norway         : http://mirror.terrahost.no/linux/manjaro/
  0.193 Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
  0.181 Sweden         : https://mirror.zetup.net/manjaro/
  0.247 Sweden         : https://ftpmirror1.infania.net/mirror/manjaro/
::INFO Writing mirror list
::Sweden          : https://mirror.zetup.net/manjaro/stable/$repo/$arch
::Denmark         : https://mirrors.dotsrc.org/manjaro/stable/$repo/$arch
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch
::Sweden          : https://ftpmirror1.infania.net/mirror/manjaro/stable/$repo/$arch
::Norway          : http://mirror.terrahost.no/linux/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
::INFO To reset custom mirrorlist 'sudo pacman-mirrors -id'
::INFO To remove custom config run  'sudo pacman-mirrors -c all'
:: Synchronizing package databases...
 core                                                                                               143.6 KiB   957 KiB/s 00:00 [#############################################################################] 100%
 extra                                                                                             1636.9 KiB  1266 KiB/s 00:01 [#############################################################################] 100%
 community                                                                                            7.0 MiB  1255 KiB/s 00:06 [#############################################################################] 100%
 multilib                                                                                           145.2 KiB  1320 KiB/s 00:00 [#############################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) manjaro-kde-settings-20230529-1

Total Download Size:   0.03 MiB
Total Installed Size:  0.04 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 manjaro-kde-settings-20230529-1-any                                                                 33.1 KiB   381 KiB/s 00:00 [#############################################################################] 100%
(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%
(1/1) checking available disk space                                                                                             [#############################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
Using system disk as snapshot device for creating snapshots in BTRFS mode
Mounted '/dev/sda7' at '/run/timeshift/5632/backup'
btrfs: Quotas are not enabled
Creating new backup...(BTRFS)
Saving to device: /dev/sda7, mounted at path: /run/timeshift/5632/backup
Created directory: /run/timeshift/5632/backup/timeshift-btrfs/snapshots/2023-06-04_20-15-17
Created subvolume snapshot: /run/timeshift/5632/backup/timeshift-btrfs/snapshots/2023-06-04_20-15-17/@
Created control file: /run/timeshift/5632/backup/timeshift-btrfs/snapshots/2023-06-04_20-15-17/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2023-06-04_20-15-17': ondemand
------------------------------------------------------------------------------
Mounted '/dev/sda7' at '/run/timeshift/5782/backup'
btrfs: Quotas are not enabled
------------------------------------------------------------------------------
Removing snapshot: 2023-06-04_12-53-51
Deleting subvolume: @ (Id:348)
Deleted subvolume: @ (Id:348)

Deleted directory: /run/timeshift/5782/backup/timeshift-btrfs/snapshots/2023-06-04_12-53-51
Removed snapshot: 2023-06-04_12-53-51
------------------------------------------------------------------------------
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2023-06-04 20:15:17 | timeshift-btrfs/snapshots/2023-06-04_20-15-17/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2023-06-04 18:54:42 | timeshift-btrfs/snapshots/2023-06-04_18-54-42/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2023-06-04 17:00:01 | timeshift-btrfs/snapshots/2023-06-04_17-00-01/@ | daily          | N/A                                           |
Found snapshot: 2023-06-04 13:06:17 | timeshift-btrfs/snapshots/2023-06-04_13-06-17/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2023-06-03 17:00:02 | timeshift-btrfs/snapshots/2023-06-03_17-00-02/@ | daily          | N/A                                           |
Found snapshot: 2023-06-02 17:00:01 | timeshift-btrfs/snapshots/2023-06-02_17-00-01/@ | daily          | N/A                                           |
Found snapshot: 2023-06-01 17:00:02 | timeshift-btrfs/snapshots/2023-06-01_17-00-02/@ | daily          | N/A                                           |
Found snapshot: 2023-05-31 17:00:02 | timeshift-btrfs/snapshots/2023-05-31_17-00-02/@ | daily          | N/A                                           |
Found snapshot: 2023-05-30 17:00:01 | timeshift-btrfs/snapshots/2023-05-30_17-00-01/@ | weekly         | N/A                                           |
Found snapshot: 2023-05-30 14:28:02 | timeshift-btrfs/snapshots/2023-05-30_14-28-02/@ | ondemand daily | N/A                                           |
Found snapshot: 2023-05-29 14:00:01 | timeshift-btrfs/snapshots/2023-05-29_14-00-01/@ | daily          | N/A                                           |
Found snapshot: 2023-05-29 01:58:22 | timeshift-btrfs/snapshots/2023-05-29_01-58-22/@ | ondemand       | N/A                                           |
Found snapshot: 2023-05-29 00:48:57 | timeshift-btrfs/snapshots/2023-05-29_00-48-57/@ | ondemand       | N/A                                           |
Found snapshot: 2023-05-25 20:54:40 | timeshift-btrfs/snapshots/2023-05-25_20-54-40/@ | ondemand       | N/A                                           |
Found snapshot: 2023-05-23 17:00:01 | timeshift-btrfs/snapshots/2023-05-23_17-00-01/@ | weekly         | N/A                                           |
Found snapshot: 2023-05-16 15:00:01 | timeshift-btrfs/snapshots/2023-05-16_15-00-01/@ | weekly         | N/A                                           |
Found snapshot: 2023-05-09 15:00:01 | timeshift-btrfs/snapshots/2023-05-09_15-00-01/@ | weekly         | N/A                                           |
Found snapshot: 2023-05-05 23:00:02 | timeshift-btrfs/snapshots/2023-05-05_23-00-02/@ | monthly        | N/A                                           |
Found 18 snapshot(s)
Unmount /tmp/grub-btrfs.MXgdd40tEC .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi
done
:: Processing package changes...
(1/1) upgrading manjaro-kde-settings                                                                                            [#############################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
pamac upgrade -a                                                                                                                                                                             āœ”  35s  
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                                                                                                                                                   
Nothing to do.                                                                                                                                                                                                      
Transaction successfully finished.

Edit. I never used --branch because I was in stable the whole time according to pacman-mirrors -G

This is not pacman .

You have not the correct permissions the write this file. It is as simple as that. But this has nothing to do with pacman .

2 Likes

sure, it just ā€œmagicallyā€ stops working if I redo the exact same procedure, breaking aur, then when I use yy it MAGICALLY starts working again.

I’m not going to argue, I was hoping for some info on why this is happening so I can learn.

Have a good day sir.

Well, I sorry but this is just fundamentally wrong. You might say braeking pamac, but this is also not correct, since pamac finished successfully.

You seems to misunderstood the output you get from pamac.

Everything is fine, refreshing the AUR worked, nothing is brocken.

Not related to the AUR. The problem is that the pamac process has not the correct permissions the write the new normal Mirror DB’s the a tmp place. I don’t know why pamac this needs, but it is also not a fatal error.

2 Likes

Perhaps bedna needs to start his own thread about the Pamac problem ?

3 Likes

I’m not saying it breaks pamac, I say it breaks the connection to the AUR mirror, pamac is only the tool I use to update.

Yes, after I ran the command using Suyy instead of Suy.

All I’m saying and posted the direct output from terminal, is that pamac upgrade -a gets an ERROR MESSAGE WHEN TRYING TO UPDATE AUR, if I update the lists with sudo pacman-mirrors --country Sweden,Norway,Denmark && sudo pacman -Syu.
If I update my lists with sudo pacman-mirrors --country Sweden,Norway,Denmark && sudo pacman -Syyu it not only changes packages on my computer, after that pamac upgrade -a completes successfully.

I went against my priciples responding to this, but it seems you don’t understand and mix up the order I posted the terminal output.

Would still love to know why, otherwise I see no point in discussing.

I don’t have a problem, I posted how to ā€œsolve itā€, I WANT TO LEARN. But sure, lets not instead. xD

I think that we don’t understand your problem bedna and you need to be more specific with your question .

You need to start a new thread.

This forum is all about learning about Manjaro and Linux and I am very grateful for it.