Need to use update pamac command twice because waiting for another package manager

the PATH is /etc/pacman.conf
not etc/pacman.config

Perhaps you mistyped.

Use kate (if you can) as @Ben advised

You very likely also still have
/etc/pacman.conf.pacnew
which you can open and save as:
/etc/pacman.conf
in case you really accidentally deleted the original file

Thanks Nachlese and Ben

Yikes! I don’t have kate and when I try open /etc/pacman.config.pacnew nothing is there. I think /etc/ is gone but not sure?

I just corrected my post - I typed the name of the file wrong
it’s /etc/pacman.conf
not
/etc/pacman.config

The output in nano for /etc.pacman.conf.pacnew:

# /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
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
                [ File '/etc/pacman.conf.pacnew' is unwritable ]
^G Help      ^O Write Out ^F Where Is  ^K Cut       ^T Execute   ^C Location
^X Exit      ^R Read File ^\ Replace   ^U Paste     ^J Justify   ^/ Go To Line

That is the beginning of the file - not all of it.
scroll down to see the rest

Save it as /etc/pacman.conf and you should be good.

Ah all there. Thank you.

I know this is quite a question even for a noob, but how do I save it in nano now? File doesn’t have a Save As . Thanks for being patient.

Then do it another way - instead of with the editor

sudo cp /etc/pacman.conf /etc/pacman.conf.original
sudo cp /etc/pacman.conf.pacnew /etc/pacman.conf

first command is to save the original if it’s still there
second is to overwrite the original with the contents of the .pacnew
you’ll need to confirm the overwrite, probably

The editor will ask you under which name you want to save it - you have just overlooked that …

2 Likes

This the current default configuration of repositories in pacman.conf

pacman.conf ¡ master ¡ Packages / core / pacman ¡ GitLab

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

[extra]
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]
Include = /etc/pacman.d/mirrorlist

Great! So both commands entered and there was no prompting about confirming the overwrite.

[manupc@manupc-2 ~]$ sudo cp /etc/pacman.conf /etc/pacman.conf.original
[sudo] password for manupc: 
[manupc@manupc-2 ~]$ sudo cp /etc/pacman.conf.pacnew /etc/pacman.conf
[manupc@manupc-2 ~]$

Should I try update the system again?

sudo pacman-mirrors -f
before you do

Amazing stuff, it’s fixed. Thank you so much for your help and your patience.

… tend to .pacnew files when and as soon as you are made aware of their presence

There will be other things breaking in the future if you don’t - and they won’t be this obvious to pin down - which is always the precondition to fixing issues

Thank you for the advice. Will keep an eye out for forum announcements about.pacnew files.

This is not a reliable way.
There are tools to check - pacdiff is one of them, I believe

I just read the output during updates … and you can also just list /etc and look for files with this suffix

for example:
ls -al /etc/*.pacnew

OK. Thanks for showing me.

[Stable Update] 2025-03-05 - Kernels, Plasma 6.3, Cosmic a6, LibreOffice - #2 by philm

Known issues and solutions

Please RTFT (Read This Fine Thread) first before reporting the same issues over and over again!

Note: Do not forget to review your .pacnew files:

1 Like

For future reference.

Ctrl + S to save
Ctrl + X to exit

or

Ctrl + X then Y then Enter

Hi nikgnomic

Thank you, yes, I will manage pacnew files going forward,

Hi dmt,

Thank you, those are important to remember.

A handy thing to remember is to use @ when mentioning another Member’s username – this allows you to select them rather than typing them – go on, try it. :wink:

Regards.

1 Like