lesnoh
June 27, 2019, 7:14am
1
Hi!
I followed the instructions at https://privacyidea.readthedocs.io/en/latest/installation/ubuntu.html#install-ubuntu to install privacyIDEA 3.0.
However, apt install privacyidea-apache2 fails with the error message:
Err:1 http://lancelot.netknights.it/community/bionic/stable bionic/main amd64 privacyidea-apache2 all 3.0.2-2-1bionic
404 Not Found [IP: 192.168.182.25 8080]
Shouldn’t this work, or am I missing something?
Hello lesnoh,
welcome to the privacyIDEA community.
I think we might have wrecked this very version in the repository.
You can try http://lancelot.netknights.it/community/bionic/devel
.
I think this contains the very same version 3.0.2.
You can check with
apt-cache poolicy privacyidea-apache2
before installing.
Kind regards
Cornelius
lesnoh
June 27, 2019, 11:28am
3
Hi Corenelius,
thank you for the fast reply.
Changing the repo url to devel worked and I could install the packages succesfully.
1 Like
Hi Cornelius,
the correct command is (poolicy → policy):
The stable repo is still broken, but devel works. But the web ui on the bottom left
says it is “3.0.1”.
Jochen
Hi Jochen,
The privacyIDEAVersionNumber is filled here:
It comes from here in the javascript
$scope.pin_change = data.detail.pin_change;
$scope.next_pin_change = data.detail.next_pin_change;
if ($scope.next_pin_change && !$scope.pin_change_serial) {
inform.add(gettextCatalog.getString("Your OTP pin expires on ")
+ $scope.next_pin_change,
{type: "warning", ttl: 5000, html: true});
}
}
$scope.backend_log_level = data.result.value.log_level;
$scope.backend_debug_passwords = data.result.value.debug_passwords;
$scope.privacyideaVersionNumber = data.versionnumber;
var lang = gettextCatalog.getCurrentLanguage();
$scope.privacyideaSupportLink = "https://netknights.it/" + lang + "/support-link-" + data.result.value.role;
$scope.loggedInUser = AuthFactory.getUser();
$scope.token_wizard = data.result.value.token_wizard;
$scope.token_wizard_2nd = data.result.value.token_wizard_2nd;
$scope.dialogNoToken = data.result.value.dialog_no_token;
if ($scope.dialogNoToken) {
$('#dialogNoToken').modal("show");
}
$scope.token_page_size = data.result.value.token_page_size;
prepare_result
here is a central part to add the base skeleton to JSON responses, like the version number which is read from get_version_number
…
…which actually reads the version number from the installed package (from setup.py) here
So if you are still seeing 3.0.1 either you are a missing a restart of the webserver or you have some caching issues. It should be 3.0.2.
Regards
Cornelius
Hi Cornelius,
you are right, there is still a 3.0.1 package installed:
jochen@athene:~$ dpkg -l "*privacyidea*"
||/ Name Version
+++-=============================
ii privacyidea 3.0.1-1bionic
That’s the only release in my sources:
jochen@athene:~$ apt policy privacyidea
privacyidea:
Installiert: 3.0.1-1bionic
Installationskandidat: 3.0.1-1bionic
Versionstabelle:
*** 3.0.1-1bionic 500
500 http://lancelot.netknights.it/community/bionic/devel bionic/main amd64 Packages
100 /var/lib/dpkg/status