You are not logged in.

#1 2024-01-04 09:17:21

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

[Solved] Error when updating

error: could not parse package description file 'haskell-hls-cabal-plugin-0.1.0.0-112/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 2048 bytes, only 0 available))
error: could not parse package description file 'haskell-hls-cabal-plugin-0.1.0.0-112/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 2048 bytes, only 0 available))
error: could not parse package description file 'haskell-hls-cabal-plugin-0.1.0.0-112/desc' from db 'extra'
error: could not read db 'extra' (Truncated input file (needed 2048 bytes, only 0 available))

this keep going on infinitely when I do a sudo pacman -Syyu
I tried cleaning caches and updating the mirrors and archlinux-keyring. None of them worked, I dont have any haskell or related packages installed

Last edited by Xx_RiK_xX (2024-01-05 09:09:42)

Offline

#2 2024-01-04 09:28:48

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

"when I do a sudo pacman -Syyu" what most likely got you into that situation itfp
Read the pacman manpage about what the second "y" does, then stop using it unless you really. RAEALLY. mean to.

The problem isn't anything haskell, the problem is that you shredded the package database for at least the extra repo.

And post the entire pacman output.

pacman -Syuv --debug 2>&1 | tee /tmp/pacman.stuff
cat /tmp/pacman.stuff | curl -F 'file=@-' 0x0.st

Online

#3 2024-01-04 10:20:43

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

The first command went on forever and never terminated.
this is the output of the second command http://0x0.st/H6VM.txt
Since nothing was working, so I tried once with yy I generally dont.
Thanks!

Offline

#4 2024-01-04 10:38:06

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

debug: adding new server URL to database 'core': http://in-mirror.garudalinux.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'extra': http://in-mirror.garudalinux.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'multilib': http://in-mirror.garudalinux.org/archlinux/multilib/os/x86_64
debug: chaotic-aur.db.sig: url is https://cf-builds.garudalinux.org/repos/chaotic-aur/x86_64/chaotic-aur.db.sig

Is this garuda linux?

debug: extra.db: url is https://in.mirrors.cicku.me/archlinux/extra/os/x86_64/extra.db
debug: extra.db: maxsize 134217728
debug: extra.db: using time condition 1704338665
debug: extra.db: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: extra.db: curl returned result 0 from transfer
debug: extra.db: response code 304
debug: extra.db.sig: url is https://in.mirrors.cicku.me/archlinux/extra/os/x86_64/extra.db.sig
debug: extra.db.sig: maxsize 16384
debug: extra.db.sig: opened tempfile for download: /var/lib/pacman/sync/extra.db.sig.part (wb)
debug: extra.db: file met time condition
du -h /var/lib/pacman/sync/extra*
file /var/lib/pacman/sync/extra*

Online

#5 2024-01-04 10:50:39

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,275
Website

Re: [Solved] Error when updating

seth wrote:
debug: adding new server URL to database 'core': http://in-mirror.garudalinux.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'extra': http://in-mirror.garudalinux.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'multilib': http://in-mirror.garudalinux.org/archlinux/multilib/os/x86_64
debug: chaotic-aur.db.sig: url is https://cf-builds.garudalinux.org/repos/chaotic-aur/x86_64/chaotic-aur.db.sig

Is this garuda linux?

Not necessarily. This is an official Arch Linux mirror: https://archlinux.org/mirrors/garudalinux.org/


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#6 2024-01-04 11:03:47

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

We're exploitng garuda resources smile

Online

#7 2024-01-04 11:50:53

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

No its not Garuda, its arch

du -h /var/lib/pacman/sync/extra*
8.3M    /var/lib/pacman/sync/extra.db
  rik   ~  file /var/lib/pacman/sync/extra*
/var/lib/pacman/sync/extra.db: gzip compressed data, from Unix, original size modulo 2^32 33126400

Last edited by Xx_RiK_xX (2024-01-04 11:51:57)

Offline

#8 2024-01-04 15:42:41

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

extra.db looks ok

zgrep -a haskell-hls-cabal-plugin /var/lib/pacman/sync/extra.db

In doubt, remove the file to hve it re-downloaded if some bit flipped.

Online

#9 2024-01-04 17:03:21

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

zgrep -a haskell-hls-cabal-plugin /var/lib/pacman/sync/extra.db
haskell-hls-cabal-plugin-0.1.0.0-112/000755 002106 001731 00000000000 14543313772 017557 5ustar00alerqueusers000000 000000 haskell-hls-cabal-plugin-0.1.0.0-112/desc000644 002106 001731 00000003037 14543313772 020423 0ustar00alerqueusers000000 000000 %FILENAME%
haskell-hls-cabal-plugin-0.1.0.0-112-x86_64.pkg.tar.zst
haskell-hls-cabal-plugin
haskell-hls-cabal-plugin

gzip: /var/lib/pacman/sync/extra.db: invalid compressed data--format violated

and when I run pacman -Su, or: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)

Offline

#10 2024-01-04 17:51:12

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

Did you try to simple replace the file?
Edit: and in case that doesn't help, change the mirror - it might be corrupted there.

Last edited by seth (2024-01-04 17:51:46)

Online

#11 2024-01-04 18:27:01

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

replace with what?
changed the mirrors again though

Offline

#12 2024-01-04 18:29:15

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

Fresh copy from the mirror - remove the file and let pacman re-download it.

Last edited by seth (2024-01-04 18:29:31)

Online

#13 2024-01-04 18:29:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,837

Re: [Solved] Error when updating

Use pacman -Syyu to force it to download a new copy (one of the only times using yy makes sense).

Offline

#14 2024-01-04 19:08:20

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

deleted it and ran pacman -Syy
and -Su and same error
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)
error: could not read db 'extra' (gzip decompression failed)

Offline

#15 2024-01-04 21:31:00

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

cat /var/lib/pacman/sync/extra.db | curl -F 'file=@-' 0x0.st
sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'

Online

#16 2024-01-05 04:27:42

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

http://0x0.st/H6wH.bin
and the second command keeps going like this
rses: /usr/share/man/man3/wgetnstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wgetparent.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wgetscrreg.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wgetstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/whline.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/whline_set.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/win_wch.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/win_wchnstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/win_wchstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winch.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winchnstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winchstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winnstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winnwstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wins_nwstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wins_wch.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wins_wstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winsch.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winsdelln.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winsertln.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winsnstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winsstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/winwstr.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wmouse_trafo.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wmove.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wnoutrefresh.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wprintw.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wredrawln.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wrefresh.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wresize.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wscanw.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wscrl.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wsetscrreg.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wstandend.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wstandout.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wsyncdown.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wsyncup.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wtimeout.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wtouchln.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wunctrl.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wunctrl_sp.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wvline.3x.gz (No such file or directory)
warning: ncurses: /usr/share/man/man3/wvline_set.3x.gz (No such file or directory)
warning: neon: /usr/share/man/man3/ne_add_request_header.3.gz (No such file or directory)
warning: neon: /usr/share/man/man3/ne_addr_destroy.3.gz (No such file or directory)
warning: neon: /usr/share/man/man3/ne_addr_error.3.gz (No such file or directory)
warning: neon: /usr/share/man/man3/ne_addr_first.3.gz (No such file or directory

Offline

#17 2024-01-05 05:39:45

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

its fixed today all of a sudden. Thanks all of you. I updated without issues

Offline

#18 2024-01-05 05:40:41

Xx_RiK_xX
Member
Registered: 2023-03-25
Posts: 24

Re: [Solved] Error when updating

how to mark it solved?

Offline

#19 2024-01-05 08:05:33

seth
Member
Registered: 2012-09-03
Posts: 65,067

Re: [Solved] Error when updating

Please use [code][/code] tags. Edit your post in this regard.

Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

The file you uploladed is indeed corrupt => https://archlinux.org/packages/extra/any/reflector/

You've manpages in your NoExtract list??
You could have grepped that away w/ "… | grep -v ', 0 altered files' | grep -v 'usr/share/man'"

Online

Board footer

Powered by FluxBB