BlackArch / blackarch

An ArchLinux based distribution for penetration testers and security researchers.
https://www.blackarch.org
Other
2.78k stars 552 forks source link

Pacman database issues #3341

Closed kotuk6547 closed 2 years ago

kotuk6547 commented 2 years ago

When I want to update pacman or apply make to a package downloaded from aur, pacman gives an error

sudo pacman -Sy sublime-text
:: Synchronizing package databases...
 core                  611.4 KiB  1412 KiB/s 00:00 [######################] 100%
error: failed retrieving file 'extra.db' from mirrors.evowise.com : 
 extra is up to date
 community             611.4 KiB  1132 KiB/s 00:01 [######################] 100%
 multilib is up to date  0.0   B  0.00   B/s 00:00 [----------------------]   0%
 blackarch is up to date
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: target not found: sublime-text

and

sudo pacman -Syu
[sudo] password for gospodin: 
:: Synchronizing package databases...
 core                  611.4 KiB   728 KiB/s 00:01 [######################] 100%
error: failed retrieving file 'extra.db' from mirrors.evowise.com : 
 extra is up to date
 community             611.4 KiB  1086 KiB/s 00:01 [######################] 100%
error: failed retrieving file 'multilib.db' from mirrors.evowise.com : 
 multilib is up to date
 blackarch is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
warning: bladerf: local (2.2.1-4) is newer than blackarch (0.9.0-5)
warning: gsocket: local (207.44f3981-1) is newer than blackarch (1.4.33-1)
warning: hamlib: local (3.3-9) is newer than blackarch (3.3-2)
warning: mbelib: local (1.3.0-2) is newer than blackarch (1.3.0-1)
warning: mdk4: local (29.002f64a-3) is newer than blackarch (4.2-1)
warning: osm-gps-map: local (1.2.0-1) is newer than blackarch (1.1.0-3)
warning: perl-task-weaken: local (1.06-3) is newer than blackarch (1.06-2)
warning: perl-yaml-libyaml: local (0.75-5) is newer than blackarch (0.63-1)
warning: python-crc16: local (0.1.1-6) is newer than blackarch (0.1.1-3)
:: Replace python-dbus with extra/dbus-python? [Y/n] y
:: Replace python-dbus-common with extra/dbus-python? [Y/n] y
warning: python-flask-socketio: local (5.0.1-1) is newer than blackarch (4.2.1-2)
warning: python-jinja-time: local (0.2.0-5) is newer than blackarch (0.2.0-4)
warning: python-poyo: local (0.5.0-4) is newer than blackarch (0.5.0-3)
warning: python-ptrace: local (0.9.7-3) is newer than blackarch (0.9.3-2)
warning: python-pypugjs: local (5.9.8-1) is newer than blackarch (5.9.4-3)
ywarning: python-ropper: local (1.13.5-2) is newer than blackarch (1.9.10-1)
:: Replace python-sgmllib with extra/python-sgmllib3k? [Y/n] 
warning: python2-ujson: local (2.0.3-1) is newer than blackarch (1.35-1)
:: Replace qca with extra/qca-qt5? [Y/n] y
:: Replace r2cutter with blackarch/iaito? [Y/n] y
:: Replace reaver with blackarch/reaver-wps-fork-t6x? [Y/n] y
:: Replace ruby-ctf-party with blackarch/ctf-party? [Y/n] y
warning: ssh-audit: local (1:v2.3.1.r29.g1b7cfbe-1) is newer than blackarch (2.5.0-2)
warning: sslsplit: local (0.5.2-3) is newer than blackarch (0.5.2-1)
y:: Replace volatility with blackarch/volatility3? [Y/n] 
error: failed to prepare transaction (invalid or corrupted database)
ikstream commented 2 years ago

Most likely you have to remove evowise from your mirrorlist and try to update again.

noptrix commented 2 years ago

@kotuk6547 dddo what @ikstream said. change mirror. closing here. feel free to re-open this issue in case it didn't help...