Can not install several packages (such as, google-chrome) with yay, or paru

google-chrome still has problem

yay -S google-chrome
AUR Explicit (1): google-chrome-123.0.6312.58-1
:: (1/1) Downloaded PKGBUILD: google-chrome
  1 google-chrome                    (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 google-chrome                    (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: google-chrome 123.0.6312.58-1 (Fri 22 Mar 2024 05:39:12 PM EDT)
==> Retrieving sources...
  -> Downloading google-chrome-stable_123.0.6312.58-1_amd64.deb...
  -> Found eula_text.html
  -> Found google-chrome-stable.sh
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    google-chrome-stable_123.0.6312.58-1_amd64.deb ... Passed
    eula_text.html ... Passed
    google-chrome-stable.sh ... Passed
:: (1/1) Parsing SRCINFO: google-chrome
==> Making package: google-chrome 123.0.6312.58-1 (Fri 22 Mar 2024 05:39:29 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found google-chrome-stable_123.0.6312.58-1_amd64.deb
  -> Found eula_text.html
  -> Found google-chrome-stable.sh
==> Validating source files with sha512sums...
    google-chrome-stable_123.0.6312.58-1_amd64.deb ... Passed
    eula_text.html ... Passed
    google-chrome-stable.sh ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting google-chrome-stable_123.0.6312.58-1_amd64.deb with bsdtar
==> Sources are ready.
 -> error making: google-chrome-cannot find package name: []
 -> Failed to install the following packages. Manual intervention is required:
google-chrome - cannot find package name: []

These are expected. You need to remove all these packages. They are left over from the kde 5 to kde 6 update.

Would it be OK for you to install chromium instead? That’s in the repos, so yay is not needed.

1 Like

I mentioned above that I can install chrome using makepkg -si

But, I have problem with installing several other packages (such as visual-studio-code, extra-cmake-modules-git,…)

I afraid that I would have something wrong with my system and I would like to know the solution or at least to know what is the problem I have. (when it seems that I’m the only one has this problem, Google search shows no result)

There may be several issues, but I’d suggest

  • remove ~/.cache/yay
  • run: sudo pacman -Syyu
  • try using repo packages instead of AUR software since they are better supported
  • I have tried yay -Scc, that removes the cache, right?

  • I also run sudo pacman -Syyu.

  • Did you mean Arch’s official repository or user’s binary repository such as blackarch? (I haven’t used it, I just read about it).

no clue what went wrong for you, but reinstalling the OS is not needed if you know it is always the same outcome.

Could be some sort of locale // keymap issue with yay… as you say makepkg works just fine.

Could this be an issue with makepkg.conf?

Show it:
cat /etc/makepkg.conf | eos-sendlog

cat /etc/makepkg.conf | eos-sendlog

Here is the output:
https://0x0.st/XrdC.bin

When I run reflector-simple right after install the OS, the program did not run and show errors about locale values.

To fix it I ran:

locale-gen

And add LC_ALL=en_US.UTF-8 to /etc/locale.conf

1 Like

Is the url correct? it has bin in the end.,. usually it is txt

why that?

usually you would add en_US.UTF-8 to /etc/locale.gen (uncomment the line) and rerun locale-gen to add a language.

LC_ALL=en_US.UTF-8 is ignored by the system. I recently discussed this with great difficulty.

Show once:

locale -a
localectl

I double checked it, and it’s a text file.

Here is the content:

#!/hint/bash
# shellcheck disable=2034

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
          'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::breezy'
            'fossil::fossil'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection \
        -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
         -Wl,-z,pack-relative-relocs"
LTOFLAGS="-flto=auto"
RUSTFLAGS="-Cforce-frame-pointers=yes"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
DEBUG_RUSTFLAGS="-C debuginfo=2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#-- lto:        Add compile flags for building with link time optimization
#-- autodeps:   Automatically add depends/provides
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug lto)

#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"
#-- Prefix and directories for library autodeps
LIB_DIRS=('lib:usr/lib' 'lib32:usr/lib32')

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -T0 --ultra -20 -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'

#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=()
# vim: set ft=sh ts=2 sw=2 et:

It’s uncommented when I open the file.
And I also executed local-gen but still have error about LC_ALL.
I read a solution (if I remember, on endeavouros forum, and also about reflector-simple) that said manually edit /etc/locale.conf, and add “those missing entries”.

locale -a
C
C.utf8
en_US
en_US.iso88591
en_US.utf8
POSIX
localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: us
   X11 Layout: us

The file “/etc/locale.conf” could also be empty and everything would still work.
You can view the file as a log file. Entries that you change or write in there (if empty) will overwrite the default settings.
Since en-us is automatically present and seems to be what you need, you can safely run this command. Locale.conf should be overwritten.

sudo localectl set-locale LANG=en_US.utf8
1 Like

About locale problem, it worked, thanks.

I switch to pikaur and it works.

use this one instead:

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)

will shorten builds and disable debug package build

I still have problem with yay after modifying /etc/makepkg.conf