First update not working after installing fresh from the live environment

Hey guys, I just got Manjaro running for my friend here. I got the latest plasma ISO and flashed a drive, which we then put on his SSD.

That all works fine, until I go to run sudo pacman -Syyu in the console. For some reason the console seems to be getting stuck on core. I can’t even determine easily if it’s downloading anything.

I’m not sure what to do. There was some talk online about checking the pacman download mirrors, which I tried, but I’ve had no luck fixing the issue with that advice.

The console looks like this:

sudo pacman -Syyu
[sudo] password for inevitable:
:: Synchronizing package databases…

Ensure you run a mirror check - then update

sudo pacman-mirrors -c all && sudo pacman -Syyu

Following this advice now. Thanking you kindly. It’s running the mirror check now.

Hey linux-aarhus, after running that command and updating the Mirror list, it doesn’t appear to have solved the issue. It is exhibiting the same behavior as before. Any other ideas?

Run instead:
sudo pacman-mirrors -f5 && pamac upgrade
Is that behaving different?

Trying now will let you know.

The two commands functionally equal and provides the same end result - only difference is the time taken creating the mirrorlist.

If one doesn’t work - the second won’t either - unless the cause is network related and that is a completely different kind of troubleshooting.

Provide the the text from the output - copy/paste - no screenshots or photo’s - the text wrapped in a code fence

 $ sudo pacman -Syyu
:: Synchronizing package databases...
 core                  165,6 KiB  1656 KiB/s 00:00 [-------------------] 100%
 extra                1845,6 KiB  6,83 MiB/s 00:00 [-------------------] 100%
 community               7,4 MiB  29,7 MiB/s 00:00 [-------------------] 100%
 sublime-text         1841,0   B  4,38 KiB/s 00:00 [-------------------] 100%
:: Starting full system upgrade...
 there is nothing to do

sudo pacman -Syyu                                                                       ✔  5s  
[sudo] password for inevitable: 
:: Synchronizing package databases...

No luck unfortunately. It updated the mirror list similarly to before. When I did pamac upgrade it responded with:

pamac upgrade                                                                       ✔  1m 10s  
Synchronizing package databases...
unable to lock database
Failed to synchronize databases
Nothing to do.
Transaction successfully finished.

Then afterwards I ran sudo pacman -Syyu and it got stuck on core again like before.

please provide the output from

cat /etc/pacman.d/mirrorlist
cat /etc/pacman.conf

The databases are not available thus failing

Please stay with pacman - this is the native package manager.

cat /etc/pacman.d/mirrorlist                                                        INT ✘  6s  
## Manjaro Linux default mirrorlist
## Generated on 2022-10-23 05:52
## Please use 'pacman-mirrors -f [NUMBER] [NUMBER]' to modify mirrorlist
## (Use 0 for all mirrors)

## Country : Australia
Server =$repo/$arch

## Country : South_Korea
Server =$repo/$arch

## Country : Germany
Server =$repo/$arch

## Country : United_States
Server =$repo/$arch

## Country : Brazil
Server =$repo/$arch
cat /etc/pacman.conf                                                                           ✔ 
# /etc/pacman.conf
# See the pacman.conf(5) manpage for option and repository directives

# 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
# If upgrades are available for these packages they will be asked for first
SyncFirst    = manjaro-system archlinux-keyring manjaro-keyring
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
# We cannot check disk space from within a chroot environment
#ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Manjaro Linux
# packagers with `pacman-key --populate archlinux manjaro`.

#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

SigLevel = PackageRequired
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.

SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

There is no anomalies with the files.

Which is your country of origin?

I live in Victoria, Australia. Just south-west of Melbourne.

We will try setting a specific mirror - this is a very fast responsive mirror

sudo pacman-mirrors -aU

Then force database first - we can always update

sudo pacman -Syy
    ~  sudo pacman-mirrors -aU                                        ✔ 
[sudo] password for inevitable: 
::INFO Writing mirror list
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
    ~  sudo pacman -Syy                                                                               ✔ 
:: Synchronizing package databases...
 core.db failed to download
error: failed retrieving file 'core.db' from : Resolving timed out after 10000 milliseconds
error: failed to synchronize all databases (download library error)

Looks like we got a bit more to go on this time

This is very strange - can you open this link?

It loads, but only the html. No javascript. It certainly doesn’t look like much. Does it use javascript or is it meant to look like that?

Yes - It isn’t much - just a folder listing - but it is proving you have no network issues

Ah ok yes it loads fine then in that case.

Leaving this here as it seems the db.lck is created in two places now …

what is the result of

 curl -O

Something like this is expected

 $ curl -O
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  162k  100  162k    0     0  1806k      0 --:--:-- --:--:-- --:--:-- 1830k

it will download the core.db to the folder - you can remove it

rm core.db