Errors ! shoud i worry about this erorrs

First try removing the lock and repeat the update.
Should the garuda-update not work, I think you could consider restoring the latest working snapshot.

1 Like
sudo rm  /var/lib/pacman/db.lck
1 Like
位 garuda-inxi
System:
  Kernel: 5.16.4-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=8bfcf774-c5c9-4179-ab67-bfcfb7eabc23 rw [email protected]
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
  Desktop: Qtile 0.20.0 wm: LG3D vt: 1 dm: SDDM Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: Z370 Gaming K6
    serial: <superuser required> UEFI: American Megatrends v: P1.20
    date: 10/26/2017
CPU:
  Info: model: Intel Core i7-8700K bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xEA
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 835 high: 1223 min/max: 800/4700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 1223
    bogomips: 88796
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: Micro-Star MSI
    driver: nvidia v: 495.46 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
    chip-ID: 10de:1b80 class-ID: 0300
  Display: x11 server: X.Org 1.21.1.3 compositor: picom v: git-c4107
    driver: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 81 s-size: 602x343mm (23.7x13.5")
    s-diag: 693mm (27.3")
  Monitor-1: DP-4 res: 1920x1080 hz: 60 dpi: 82
    size: 595x336mm (23.4x13.2") diag: 683mm (26.9")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA GP104 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f0
    class-ID: 0403
  Device-3: Creative Sound BlasterX H7 type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-3.1:4 chip-ID: 041e:3242
    class-ID: 0300 serial: <filter>
  Sound Server-1: ALSA v: k5.16.4-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.44 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASRock driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    port: c000 bus-ID: 05:00.0 chip-ID: 8086:1539 class-ID: 0200
  IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.38 TiB used: 7.3 GiB (0.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB512HAJQ-000H1 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EXA72H1Q temp: 37.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD10EZRZ-00HTKB0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A01 scheme: GPT
Partition:
  ID-1: / raw-size: 200 GiB size: 200 GiB (100.00%) used: 7.3 GiB (3.6%)
    fs: btrfs dev: /dev/sda1 maj-min: 8:1
  ID-2: /boot/efi raw-size: 513 MiB size: 512 MiB (99.80%)
    used: 576 KiB (0.1%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 200 GiB size: 200 GiB (100.00%)
    used: 7.3 GiB (3.6%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
  ID-4: /var/log raw-size: 200 GiB size: 200 GiB (100.00%)
    used: 7.3 GiB (3.6%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
  ID-5: /var/tmp raw-size: 200 GiB size: 200 GiB (100.00%)
    used: 7.3 GiB (3.6%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.54 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 31.0 C mobo: N/A gpu: nvidia temp: 52 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 271 Uptime: 17m wakeups: 0 Memory: 15.54 GiB
  used: 2.01 GiB (12.9%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 Packages: pacman: 1086 lib: 276 Shell: fish v: 3.3.1
  default: Bash v: 5.1.16 running-in: alacritty inxi: 3.3.12
error: duplicated database entry 'expat'
Garuda (2.5.3-1):
  System install date:     2022-02-07
  Last full system update: 2022-02-07
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            bluetooth-autoconnect.service

 [email protected] in ~ took 1s
 位
1 Like
位 garuda-update
[sudo] password for saibot:
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck

--> Refreshing mirrorlists using rate-mirrors, please be patient..
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)

Failed to update mirrorlist
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck

--> Applying keyring updates before starting full system update..
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
  if you're sure a package manager is not already
  running, you can remove /var/lib/pacman/db.lck

 [email protected] in ~ as 馃 took 37s
[馃敶] 脳

im new user i star using linux recently so take it easy for me pls

Type

in terminal. Enter.
Then garuda-update.

2 Likes
[email protected] in ~
 位 sudo rm  /var/lib/pacman/db.lck
[sudo] password for saibot:

 [email protected] in ~ as 馃 took 3s
 位 garuda-update
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 chaotic-aur                             1776.8 KiB   584 KiB/s 00:03 [--------------------------------------] 100%
error: duplicated database entry 'expat'
resolving dependencies...
looking for conflicting packages...

Packages (1) garuda-update-1.9.2-1

Total Installed Size:  0.01 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(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) Performing snapper pre snapshots for the following configurations...
snapper snapshots skipped
:: Processing package changes...
(1/1) upgrading garuda-update                                         [--------------------------------------] 100%
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Foreign/AUR package notification
error: duplicated database entry 'expat'
=> No foreign/AUR packages found.
(3/6) Orphaned package notification...
error: duplicated database entry 'expat'
=> No orphans found.
(4/6) Checking for .pacnew and .pacsave files...
(5/6) Performing snapper post snapshots for the following configurations...
snapper snapshots skipped
(6/6) Syncing all file systems...

--> Refreshing mirrorlists using rate-mirrors, please be patient..
:: Synchronizing package databases...
 core                                     136.9 KiB  72.6 KiB/s 00:02 [--------------------------------------] 100%
 extra                                   1554.2 KiB   286 KiB/s 00:05 [--------------------------------------] 100%
 community                                  6.1 MiB   478 KiB/s 00:13 [--------------------------------------] 100%
 multilib                                 148.9 KiB   138 KiB/s 00:01 [--------------------------------------] 100%
 chaotic-aur                             1776.9 KiB   446 KiB/s 00:04 [--------------------------------------] 100%

--> Applying keyring updates before starting full system update..
error: duplicated database entry 'expat'
warning: archlinux-keyring-20220125-1 is up to date -- skipping
warning: chaotic-keyring-20220130-1 is up to date -- skipping
resolving dependencies...
looking for conflicting packages...

Packages (1) garuda-hotfixes-1.1.1-1

Total Installed Size:  0.00 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(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) Performing snapper pre snapshots for the following configurations...
snapper snapshots skipped
:: Processing package changes...
(1/1) upgrading garuda-hotfixes                                       [--------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Reloading system manager configuration...
(2/7) Arming ConditionNeedsUpdate...
(3/7) Foreign/AUR package notification
error: duplicated database entry 'expat'
=> No foreign/AUR packages found.
(4/7) Orphaned package notification...
error: duplicated database entry 'expat'
=> No orphans found.
(5/7) Checking for .pacnew and .pacsave files...
(6/7) Performing snapper post snapshots for the following configurations...
snapper snapshots skipped
(7/7) Syncing all file systems...
:: Starting full system upgrade...
error: duplicated database entry 'expat'
resolving dependencies...
looking for conflicting packages...

Packages (84) acl-2.3.1-2  alsa-card-profiles-1:0.3.45-1  attr-2.5.1-2  audit-3.0.7-1  btrfs-progs-5.16.1-1
              ca-certificates-mozilla-3.75-1  cryptsetup-2.4.3-2  dosfstools-4.2-2  e2fsprogs-1.46.5-2
              elfutils-0.186-4  expat-2.4.4-1  fftw-3.3.10-2  findutils-4.9.0-1  firedragon-96.0.3-2
              flameshot-11.0.0-4  fontconfig-2:2.13.96-1  fwupd-1.7.5-1  garuda-common-settings-2.5.4-2
              garuda-libs-1.1.0-2  garuda-migrations-1.4.0-1  garuda-qtile-settings-3.1.0-1
              gst-plugin-pipewire-1:0.3.45-1  gtk-update-icon-cache-1:4.6.0-3  harfbuzz-3.3.2-1
              harfbuzz-icu-3.3.2-1  imagemagick-7.1.0.23-1  imlib2-1.8.0-1  json-c-0.15-3  kmod-29-2
              lcms2-2.13.1-1  lib32-libelf-0.186-3  lib32-libxcrypt-4.4.28-1  lib32-nvidia-utils-510.47.03-1
              lib32-opencl-nvidia-510.47.03-1  lib32-readline-8.1.002-1  libarchive-3.5.2-3  libcap-2.63-2
              libcap-ng-0.8.2-7  libelf-0.186-4  libical-3.0.14-1  libnsl-2.0.0-2  libpcap-1.10.1-2
              libusb-1.0.25-2  libxcrypt-4.4.28-1  libxkbcommon-1.4.0-1  libxkbcommon-x11-1.4.0-1
              libxnvctrl-510.47.03-1  linux-zen-5.16.7.zen1-1  linux-zen-headers-5.16.7.zen1-1  man-db-2.10.0-1
              mercurial-6.0.2-1  mesa-demos-8.4.0-7  ncurses-6.3-2  nss-3.75-1  nvidia-dkms-510.47.03-3
              nvidia-settings-510.47.03-1  nvidia-utils-510.47.03-3  opencl-nvidia-510.47.03-3
              perl-http-message-6.36-1  pipewire-1:0.3.45-1  pipewire-alsa-1:0.3.45-1  pipewire-jack-1:0.3.45-1
              pipewire-pulse-1:0.3.45-1  pipewire-v4l2-1:0.3.45-1  pipewire-zeroconf-1:0.3.45-1  popt-1.18-3
              python-fonttools-4.29.1-1  python-numpy-1.22.2-1  python-pillow-9.0.1-1  qt5-base-5.15.2+kde+r297-1
              qt5-declarative-5.15.2+kde+r45-1  qt5-quickcontrols2-5.15.2+kde+r11-2  qt5-wayland-5.15.2+kde+r48-1
              qt6-base-6.2.3-4  readline-8.1.002-1  sddm-0.19.0-8  shadow-4.11.1-1  smbclient-4.15.5-1
              starship-1.3.0-1  sudo-1.9.9-2  systemd-oomd-defaults-249.7-1  upower-0.99.14-1  util-linux-2.37.3-2
              util-linux-libs-2.37.3-2

Total Installed Size:  1694.37 MiB
Net Upgrade Size:         7.99 MiB

:: Proceed with installation? [Y/n]

yes or no

and i have this warning in terminal

thank you for your reply i really appreciate it really
you don't know what i'm going through this week just to find a good distro for me and i lost all my data
because i ask questions in linux community and people just dont give a *

:: Proceed with installation? [Y/n] y
(84/84) checking keys in keyring                                      [--------------------------------------] 100%
(84/84) checking package integrity                                    [--------------------------------------] 100%
(84/84) loading package files                                         [--------------------------------------] 100%
(84/84) checking for file conflicts                                   [--------------------------------------] 100%
error: failed to commit transaction (conflicting files)
expat: /usr/lib/cmake/expat-2.4.4/expat-config-version.cmake exists in filesystem
expat: /usr/lib/cmake/expat-2.4.4/expat-config.cmake exists in filesystem
expat: /usr/lib/cmake/expat-2.4.4/expat-none.cmake exists in filesystem
expat: /usr/lib/cmake/expat-2.4.4/expat.cmake exists in filesystem
expat: /usr/lib/libexpat.so.1.8.4 exists in filesystem
Errors occurred, no packages were upgraded.

 [email protected] in ~ as 馃 took 2m34s
[馃敶] 脳

As said before, if this is not a new installation, i.e. you have a previous snapshot, I'd restore it.

If you don't have a previous snapshot, could you please check the following?

ls /var/lib/pacman/local/ | grep expat
1 Like

actually it's a new installation and i think update successful from garuda repository i don't know why or how !!! it show me 3 errors after to tell me restart ?

[email protected] in ~
 位 yay -Syu
[sudo] password for saibot:
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                  6.1 MiB   883 KiB/s 00:07 [--------------------------------------] 100%
 multilib is up to date
 chaotic-aur is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Looking for AUR upgrades
:: Looking for devel upgrades
 there is nothing to do

 [email protected] in ~ as 馃 took 10s
 位

but i still have this warning in terminal
https://forum.garudalinux.org/uploads/default/original/2X/f/f3d101fd57fc12efeb5a8762cc068329928bae13.png

That's a different topic.
Anyway, just check e.g. here

1 Like

Yes.

sudo pacman -Syu --overwrite '*'

???

Where are the errors?

1 Like

i think i fail again :frowning_face:

You shouldn't correct it in the original place, but move opacity higher in the file, in the window: section.
E.g. similar to here

2 Likes

i did exactly as you said and i was worry about this errors

error: duplicated database entry 'expat'

then i ask yes or no

Total Installed Size:  1694.37 MiB
Net Upgrade Size:         7.99 MiB

:: Proceed with installation? [Y/n]

i wait you then i go with yes

:: Proceed with installation? [Y/n] y
(84/84) checking keys in keyring                                      [--------------------------------------] 100%
(84/84) checking package integrity                                    [--------------------------------------] 100%
(84/84) loading package files                                         [--------------------------------------] 100%
(84/84) checking for file conflicts                                   [--------------------------------------] 100%
error: failed to commit transaction (conflicting files)
expat: /usr/lib/cmake/expat-2.4.4/expat-config-version.cmake exists in filesystem
expat: /usr/lib/cmake/expat-2.4.4/expat-config.cmake exists in filesystem
expat: /usr/lib/cmake/expat-2.4.4/expat-none.cmake exists in filesystem
expat: /usr/lib/cmake/expat-2.4.4/expat.cmake exists in filesystem
expat: /usr/lib/libexpat.so.1.8.4 exists in filesystem
Errors occurred, no packages were upgraded.

 [email protected] in ~ as 馃 took 2m34s

it was the same it wont update

then i try from the repository it works when it completes it shows me 3 errors after telling me to restart?
i didn't bother myself to read them because i thought i fail again and I was ready to go try again garuda bspwm

it was a mistake when I try garuda Linux really I can't use any other distro now
The first time I use garuda bspwm I have a problem with keybinding a ask her and things go as always

I was waiting for a reply from you wait and wait and I feel upset and disappointed because you are one of garuda team and you can help me :sweat_smile: sorry :innocent: I didn't see BluishHumility reply
I back to windows, the day after I try it again, and I was really surprised how fast and responsive it is, start, restart and shutdown in everything I install Openbox when i log in there is no sound which means I cant configure Openbox by myself I was planning to follow some tutorial fail again
I do some research I find this distro Nixos, I really like what I read about it especially for someone noob like me but it was really hard to install for me I try again and again and again and again and again on my main machine and that's the funniest thing people usually use virtual machine I didn't sleep that day I swear I watch videos and read tutorials how to install it I learn every step finally I make it and guess what I forget the password I set or I set it wrong the root pass too because I use azerty keyboard always get confused between letters I try again for the last 2 worthless time I was sure I'm doing everything correctly so I move to another distro at least I learn something about config files and how to use nano and vim, later I realize that the issue was from the iso that I'm using :face_exhaling:
I do some research again and I find this disto Clair Linux everybody says its the fastest Linux distro they ever try and it performs very very very well people talk about benchmarking and bla bla bla I read some articles too about it even someone like me doesn't know almost anything about Linux understand that intel doing a good job for how they run things on their distro
I don't like gnome but I go download it and I have an issue with the installation like always and I ask on thire forum and like always no one care, not even 1 reply evrybody just read or want to know what is the isses are and go out no one give a shit, and beacuse evryone sad that is really a fast distro and good stuff I did somthing really stupid the safe installation didnt work for me I try the destractive installation I give it all the disk and let it erase all my data on that 1t disk and it work and guess what garuda fast*3 I swear and don't mention lagging and freezing and how it hard to use for a new user at least if it was fast like they sad ill stick with here and try to learn slowly every day but it wasn't the only one he sad it's normal is brandon from TechHut, can you imagine how I feel that mement :rage: :face_with_symbols_over_mouth: stupid and dump I know but I learn evry day somthing new about linux slowly but learn and I think dont make the same mistake twice

the first distro I use was Manjaro KDE and it's the best arch-based distro for new users and beginners without a doubt everything works great out of the box but it has a bad community too and I'm not going to use it again if it was the only Linux distro out there because someone admin on their community I don't how to describe the word I feel he try to make fun on me for every time I ask something
EndeavourOS wok well for me always and they have really the best community I've seen so far especially those from the EndeavrourOS team really respect them
the beautiful distro I used so far is Archcraft it was my first experience with the window manager and I love it really that's why I'm trying to use window manager but it has issues and no one car either in discord and late reply on Reddit I would like to try Arcolinux to learn Linux but I can install it on my machine I just don't know why I download the iso and try to install it many times I feel shame when I ask Erik and I don't use his distro I try other distros too...I was planning to go back to EndeavourOS
but the worst thing I do is I try garuda :grimacing: :grimacing: :grimacing: it's really the fastest distro out there zen karnel and btrfs great I love it and I wish they put iso for Openbox
so pls pls pls help new users SORRY FOR MY BAD ENGLISH, I'm not good enough with English that's why I ask too much
sorry I make this too long and you don't know how much time It takes me to write all this and correct some world with Grammarly extension :flushed: :flushed: :flushed:

This means the expat package exists twice in your package database, which probably indicates something has become corrupted.

This means a file in a package you're trying to install already exists on disk:

Garuda is not, and never has been, a "distro for noobs", "newbie friendly", or "intended for new Linux users".

4 Likes

Did you ever get around to running this command?:

3 Likes

Ok I know it's not easy in the beginning and that's why I'll count on you and I鈥檓 thankful for your support and understanding all of you really tanks for your reply I really appreciate it :innocent:

No, but I think everything is ok now

 [email protected] in ~ took 30ms
 位 ls /var/lib/pacman/local/ | grep expat
expat-2.4.4-1
lib32-expat-2.4.4-1

 [email protected] in ~ took 450ms
 位

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.