AslanPAPA
AslanPAPA

Reputation: 131

Can't install pgAdmin4 in Linux (Debian 12)?

I'm trying to install pgAdmin4 on Debian Bookworm, but I'm encountering a "Hash Sum Mismatch" error during the apt update process. Here are the steps I followed and the error I'm getting:

  1. I added the pgAdmin4 repository and key using the following commands:
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
  1. When I run sudo apt update, I get the following error:
E: Failed to fetch https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bookworm/dists/pgadmin4/main/binary-amd64/Packages.gz  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:7934 [weak]
    - SHA512:29babed371c0aedcde589452191cba80d22c1f4320a583e0cfa0a48e1493e629ca272be5c2863a397ffafdd7469700a03ca1f740e08cbd56426e83f528a3a589
    - SHA256:90e8bf105558a6d79db75ed543960bd8244d746de9d365eeb13aff963543e3c3
    - SHA1:c400719598641c1eff3699dfecc08b6770cd4e56 [weak]
    - MD5Sum:d6513cf38ae26c6d697ba578868a3783 [weak]
   Hashes of received file:
    - SHA512:7b4056bcf0833b98c13f9a7097e4687ea419c433eba2792d05def0ee6d0e67e58956d1d271fcd888a876028e572555ca5b60a0a09bbd8dad2570dccf11a0e30c
    - SHA256:7c926536f213102c7fcc468eda7d8db48118fffe7b48501de2de556502e211d9
    - SHA1:019981a0f1288fbc67662636be3d38f489dd3850 [weak]
    - MD5Sum:5fb9f7351c8db93997f5e54f2b9380ad [weak]
    - Filesize:7934 [weak]
   Last modification reported: Fri, 28 Feb 2025 16:44:49 +0000
   Release file created at: Fri, 28 Feb 2025 10:51:11 +0000
E: Failed to fetch https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/bookworm/dists/pgadmin4/main/binary-all/Packages.gz  
E: Some index files failed to download. They have been ignored, or old ones used instead.

As a result, I cannot install pgAdmin4 using sudo apt install pgadmin4.

Upvotes: -1

Views: 21

Answers (0)

Related Questions