Installation is failing

I am trying to install the Pritunl in Ubuntu 22.04
Its failing because of size issue. The size is not matching in the packages.
I have installed pritunl before it works out of box, but this lime looks like some build got messed up.

1 Like

I tried installing in Ubuntu 24, 22, Debian 12, Debian 11,
None of these works.

I have it installed (1.32.3805.95-0ubuntu1~jammy) (Ubuntu 22.04) and now get: (When trying to update)

Err:1 http://repo.pritunl.com/stable/apt jammy/main amd64 pritunl amd64 1.32.3897.75-0ubuntu1~jammy
  404  Not Found

And it is not there so 404 makes sense… Index of /stable/apt/pool/main/p/pritunl/

So it looks to be missing?

Get:5 https://repo.pritunl.com/stable/apt jammy InRelease [2,419 B]
Get:6 https://repo.pritunl.com/stable/apt jammy/main amd64 Packages [1,880 B]
Err:6 https://repo.pritunl.com/stable/apt jammy/main amd64 Packages
  File has unexpected size (2118 != 1880). Mirror sync in progress? [IP: 2606:4700:20::ac43:48f8 443]
  Hashes of expected file:
   - Filesize:1880 [weak]
   - SHA256:a0a8a49b347d58e68836e3a4c501ac0b1c8669d7931b2453f31453549aacede0
   - SHA1:6225dd206492158231a710230b9d8d0d866c54a8 [weak]
   - MD5Sum:87a00a4e02770f4be1226cc928704376 [weak]
  Release file created at: Wed, 24 Jul 2024 23:04:07 +0000
Fetched 2,419 B in 1s (3,124 B/s)
Reading package lists... Done
E: Failed to fetch https://repo.pritunl.com/stable/apt/dists/jammy/main/binary-amd64/Packages.gz  File has unexpected size (2118 != 1880). Mirror sync in progress? [IP: 2606:4700:20::ac43:48f8 443]
   Hashes of expected file:
    - Filesize:1880 [weak]
    - SHA256:a0a8a49b347d58e68836e3a4c501ac0b1c8669d7931b2453f31453549aacede0
    - SHA1:6225dd206492158231a710230b9d8d0d866c54a8 [weak]
    - MD5Sum:87a00a4e02770f4be1226cc928704376 [weak]
   Release file created at: Wed, 24 Jul 2024 23:04:07 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

I have the same issue on Amazon Linux 2.
It seems that repomd is old, probably not updated;

3c3ed15190f0e166916bf5ddcf542a2ae0c99e4d0e7bf7a..> 25-Jul-2024 21:58             5386014
52dab0b974dd7c7d5a2ed2d7de16fed5f743e4f87af1d07..> 25-Jul-2024 21:58               19394
5b3a3c654311b2779bef9b23ff2b0fd33db53b17c93efae..> 25-Jul-2024 21:58                5967
78bf6ca953074e63393f5d95bf37efada0a17e3e81a2d6b..> 25-Jul-2024 21:58                7545
9d3f321eb5a707bf763d6bb1d6705812fa3e9ced514ff86..> 25-Jul-2024 21:58             4804980
d45e9f0fe0f6089f2e6684e03e5ab81369ba8fb76202b1b..> 25-Jul-2024 21:58               85252
repomd.xml                                         24-Jul-2024 23:04                3095

We’ve had problems deploying on Rocky Linux all day, this was working fine in the 3 or so weeks it’s taken to develop, today we got these errors:

[MIRROR] pritunl-1.32.3805.95-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f86f81f1acf93f05dced619d99107b1712c7e515e5f9cf99749f8c706f21d5e3(sha256)  Expected: e56edc5f2b2b6765f6d14070d94da48e4d87b7552b809618e81e6541166d969c(sha256) 
[MIRROR] pritunl-1.32.3805.95-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f86f81f1acf93f05dced619d99107b1712c7e515e5f9cf99749f8c706f21d5e3(sha256)  Expected: e56edc5f2b2b6765f6d14070d94da48e4d87b7552b809618e81e6541166d969c(sha256) 
[MIRROR] pritunl-1.32.3805.95-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f86f81f1acf93f05dced619d99107b1712c7e515e5f9cf99749f8c706f21d5e3(sha256)  Expected: e56edc5f2b2b6765f6d14070d94da48e4d87b7552b809618e81e6541166d969c(sha256) 
[MIRROR] pritunl-1.32.3805.95-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f86f81f1acf93f05dced619d99107b1712c7e515e5f9cf99749f8c706f21d5e3(sha256)  Expected: e56edc5f2b2b6765f6d14070d94da48e4d87b7552b809618e81e6541166d969c(sha256) 
[FAILED] pritunl-1.32.3805.95-1.el8.oraclelinux.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success

[MIRROR] pritunl-openvpn-2.6.8-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f325d96bfe695cca7468b5dae913d9fccafd34f3349ae08567cb1eb50664ffd7(sha256)  Expected: 76247b72d51a620b2b25d062e3f8b2851d368c76ffc60268067416bdd290c815(sha256) 
[MIRROR] pritunl-openvpn-2.6.8-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f325d96bfe695cca7468b5dae913d9fccafd34f3349ae08567cb1eb50664ffd7(sha256)  Expected: 76247b72d51a620b2b25d062e3f8b2851d368c76ffc60268067416bdd290c815(sha256) 
[MIRROR] pritunl-openvpn-2.6.8-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f325d96bfe695cca7468b5dae913d9fccafd34f3349ae08567cb1eb50664ffd7(sha256)  Expected: 76247b72d51a620b2b25d062e3f8b2851d368c76ffc60268067416bdd290c815(sha256) 
[MIRROR] pritunl-openvpn-2.6.8-1.el8.oraclelinux.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: f325d96bfe695cca7468b5dae913d9fccafd34f3349ae08567cb1eb50664ffd7(sha256)  Expected: 76247b72d51a620b2b25d062e3f8b2851d368c76ffc60268067416bdd290c815(sha256) 
[FAILED] pritunl-openvpn-2.6.8-1.el8.oraclelinux.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success

The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Error downloading packages:
  pritunl-openvpn-2.6.8-1.el8.oraclelinux.x86_64: Cannot download, all mirrors were already tried without success

Same here. Setting up Ubuntu 24 for work. Been having trouble all day.

sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://gb.archive.ubuntu.com/ubuntu noble-backports InRelease
Get:5 https://repo.pritunl.com/stable/apt noble InRelease [2,416 B]
Get:6 https://repo.pritunl.com/stable/apt noble/main amd64 Packages [876 B]
Err:6 https://repo.pritunl.com/stable/apt noble/main amd64 Packages
  File has unexpected size (618 != 876). Mirror sync in progress? [IP: 104.26.14.194 443]
  Hashes of expected file:
   - Filesize:876 [weak]
   - SHA256:807ac8e70a0e3637a3e8f019d7f0ee0b60c0e68c79142991d2937558ade1f1b1
   - SHA1:822fa9955fa834abb91099e91c6a1a6a496a0b4b [weak]
   - MD5Sum:8452b9a2d21433774b68a1198b32a460 [weak]
  Release file created at: Wed, 24 Jul 2024 23:04:16 +0000
Reading package lists... Done
E: Failed to fetch https://repo.pritunl.com/stable/apt/dists/noble/main/binary-amd64/Packages.gz  File has unexpected size (618 != 876). Mirror sync in progress? [IP: 104.26.14.194 443]
   Hashes of expected file:
    - Filesize:876 [weak]
    - SHA256:807ac8e70a0e3637a3e8f019d7f0ee0b60c0e68c79142991d2937558ade1f1b1
    - SHA1:822fa9955fa834abb91099e91c6a1a6a496a0b4b [weak]
    - MD5Sum:8452b9a2d21433774b68a1198b32a460 [weak]
   Release file created at: Wed, 24 Jul 2024 23:04:16 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

The unstable repository was accidentally uploaded to the stable repository. This was reverted and the stable was re-uploaded but it appears some files either got cached or left inconsistent. It should be working now.

The commands below will need to be run to clear the local repository cache.

# yum
sudo yum clean all
# debian
sudo apt-get clean
1 Like

Thanks, it’s working now for me at least.

Hello, on ubuntu problem persist

E: Failed to fetch http://repo.pritunl.com/stable/apt/pool/main/p/pritunl/pritunl_1.32.3897.75-0ubuntu1~focal_amd64.deb 404 Not Found [IP: 104.26.15.194 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

and looking on repo file 1.32.3897 is not present

1 Like

It is still loading from the cache, v1.32.3897.75 is only in the unstable repository. That is remaining from the cache of the unstable data in the stable repository. Run sudo apt-get clean.

I’ve alreay tryed to clean cache, but not work.
Here the full cmd:

ubuntua@ubuntu:~$ sudo apt-get clean

ubuntu@ubuntu:~$ sudo apt-get update
...
Fetched 3,586 kB in 1s (3,581 kB/s)
Reading package lists... Done
ubuntu@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  cloud-init landscape-common pritunl snapd thermald tzdata ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n
9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 165 MB of archives.
After this operation, 1,125 MB disk space will be freed.
Do you want to continue? [Y/n] Y
...
Err:7 http://repo.pritunl.com/stable/apt focal/main amd64 pritunl amd64 1.32.3897.75-0ubuntu1~focal
  404  Not Found [IP: 104.26.14.194 80]
...
E: Failed to fetch http://repo.pritunl.com/stable/apt/pool/main/p/pritunl/pritunl_1.32.3897.75-0ubuntu1~focal_amd64.deb  404  Not Found [IP: 104.26.14.194 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@ubuntu:~$
1 Like

Run the commands below.

sudo apt clean
sudo rm -rf /var/cache/apt/archives/
sudo apt update
sudo apt install pritunl

not work, same result

...
sudo apt clean
sudo rm -rf /var/cache/apt/archives/
sudo apt update
...
ubuntu@ubuntu:~$ sudo apt install pritunl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  pritunl
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 139 MB of archives.
After this operation, 1,125 MB disk space will be freed.
Err:1 http://repo.pritunl.com/stable/apt focal/main amd64 pritunl amd64 1.32.3897.75-0ubuntu1~focal
  404  Not Found [IP: 172.67.72.248 80]
E: Failed to fetch http://repo.pritunl.com/stable/apt/pool/main/p/pritunl/pritunl_1.32.3897.75-0ubuntu1~focal_amd64.deb  404  Not Found [IP: 172.67.72.248 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

1 Like

finally resolved:

-comment the row in /etc/apt/sources.list.d/pritunl.list (the repository)
-sudo apt-get update
-sudo apt-get upgrade
-remove comment in /etc/apt/sources.list.d/pritunl.list the repository
-sudo apt-get update

All ok

1 Like

I also had to comment the row in /etc/apt/sources.list.d/pritunl.list, then do an sudo apt-get update

sudo apt clean
sudo rm -rf /var/cache/apt/archives/
sudo apt update

did not work

Another solution could be specifying the region URL https://repo-east.pritunl.com/ or https://repo-west.pritunl.com/ in the repository configuration.

1 Like

I had to move the pritunl.list, update, and then move the pritunl.list again for it to stop with the 404:

mv /etc/apt/sources.list.d/pritunl.list /etc/apt/sources.list.d/pritunl.list.old
apt update
mv /etc/apt/sources.list.d/pritunl.list.old /etc/apt/sources.list.d/pritunl.list

Same here!

ok this worked for me.

adding this to pritunl list: deb https:// repo-east.pritunl.com /stable / apt focal main

Then, sudo apt upgrade