When updating with yay “yay -Syyu --noconfirm --devel” I get this error:
:: (1/1) Analizando SRCINFO: balena-etcher
/usr/share/makepkg/util/util.sh: línea 108: /etc/makepkg.conf.d/rust: No existe el fichero o el directorio
==> ERROR: Hubo fallos al obtener la fuente /etc/makepkg.conf.d/rust
-> error compilando: archlinux-tweak-tool-git-exit status 6
/usr/share/makepkg/util/util.sh: línea 108: /etc/makepkg.conf.d/rust: No existe el fichero o el directorio
==> ERROR: Hubo fallos al obtener la fuente /etc/makepkg.conf.d/rust
-> error compilando: balena-etcher-exit status 6
-> Ha fallado al instalar los siguientes paquetes. Una intervención manual es requerida:
archlinux-tweak-tool-git - exit status 6
balena-etcher - exit status 6
I use kde plasma and I have not modified any of the files referred to in the error:
This happens to me after doing the last major update. I treated the pacnew files that were in the last major update as always, backup and then replace them with the new files, because I have never modified those files and therefore I understand that I can put them as they come.
That is not correct - at least some of them cannot be simply replaced
There might be still be differences to what you had.
It might be important to at least see and know what the differences are.
This seems to say that the file/directory doesn’t exist.
But it should exist.
I’d think that reinstalling pacman will “fix” that.
LANG=C pacman -F /etc/makepkg.conf.d/rust.conf
etc/makepkg.conf.d/rust.conf is owned by core/pacman 6.1.0-7
and:
why are you using -Syuu and --noconfirm and --devel ?
instead of simply: -Syu
or just: -S
make sure you are fully up to date before you try building from AUR
How could you come to the conclusion this would be a proper way to update? It is not.
Usually, first update Manjaro repos via
sudo pacman -Syu
If there is something to confirm, read and make an educated decision.
Only, if everything is done with the repo packages, incl. merging pacnews where needed and a successful reboot, focus on AUR packages.
If you want to use an AUR helper like yay, this is fine, buth then you should use for the second step:
yay -Sua --devel
as this will only focus on updating the AUR packages.
Thanks for your reply, I did what you told me: LANG=C pacman -F /etc/makepkg.conf.d/rust.conf prto I still get the same error.
As for why it updates with -Syyu I thought that to update aur applications it was updated the same way as when you update with pacman.
Thanks for answering me. To update the system I use pacman -Syyu and after updating the system and checking the pacnews files, in which I have never modified anything, so I understand that I can replace them directly, because the truth is that I look inside them, but I repeat I have never modified anything, if I think that the system needs to be restarted I do it and that is when I update the applications that I have installed from the aur repository.
That was just to tell you how I know that this file belongs to pacman.
That command doesn’t “do” anything - it just can tell you which file belongs to which package.
(LANG=C simply ensures that the output will be in english)
/etc/makepkg.conf.d/rust.conf is part of the package core/pacman
For some reason …, it is missing from your installation.
And that is the direct source of the error you got.
If you want to have it back - install pacman again.
To be perfectly clear this time: sudo pacman -Syu pacman
This should bring it back
and update the system as well.
But:
that is not how you are supposed to update with pacman.
It simply isn’t.
A recent update produced an /etc/makepkg.conf.d/rust.conf.pacnew file:
I wonder if the OP’s unusual method of dealing with pacnew files has somehow resulted in the deletion or incorrect naming of their rust.conf file (if the change has made it through to Stable branch)?
I reinstalled pacman as you told me, then I updated the system, but this time I did it with -Syu and then I ran “LANG=C pacman -F /etc/makepkg.conf.d/rust.conf” again and it returned "etc/makepkg.conf.d/rust.conf is contained in core/pacman 6.1.0-7
" then I ran “yay -Syu --noconfirm --devel” and the same error appeared again.
The file /etc/makepkg.conf.d/rust.conf
is there and this is the content:
#!/hint/bash
# shellcheck disable=2034
#
# /etc/makepkg.conf.d/rust.conf
#
#########################################################################
# RUST LANGUAGE SUPPORT
#########################################################################
# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
# linkman:rustc[1] for more details on the available flags.
RUSTFLAGS="-Cforce-frame-pointers=yes"
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
# more details on the available flags.
DEBUG_RUSTFLAGS="-C debuginfo=2"
But in my first post I already said that /etc/makepkg.conf.d/rust.conf
was present, in fact I said that I made a backup before changing /etc/makepkg.conf.d/rust.conf.pacnew to /etc/makepkg.conf.d/rust.conf and this is the content of the backup:
#!/hint/bash
#
# /etc/makepkg.conf.d/rust.conf
#
#########################################################################
# RUST LANGUAGE SUPPORT
#########################################################################
# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
# linkman:rustc[1] for more details on the available flags.
#RUSTFLAGS="-C opt-level=3"
# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
# more details on the available flags.
#DEBUG_RUSTFLAGS="-C debuginfo=2"
And I still use --noconfirm --devel out of laziness, but because of your insistence I understand that it is not good to use it since I have to read the messages that yay gives me and respond to them accordingly and not let yay respond to them for me.
Ha fallado al instalar los siguientes paquetes. Una intervención manual es requerida:
archlinux-tweak-tool-git - exit status 6
balena-etcher - exit status 6
Translates as:
You have failed to install the following packages. A manual intervention is required:
I do not use KDE or yay or --no-confirm option
IMO failure to install archlinux-tweak-tool-git is probably a good thing for system reliability
and failure to install balena-etcher might be good for protecting personal information