Hi,
i'm trying to re-install nav on debian 9 system, this machine has just been upgraded in place from jessie to stretch during the upgrade nav 4.6.x, that was installed, got discarded for the same error reported below: dependencies unmet, older versions seem required.
This is the problem that i can't solve:
----------------------------------------------------------
root@nav:~# aptitude install nav The following NEW packages will be installed: django-filter{a} fonts-lyx{a} libbluetooth3{a} libbytes-random-secure-perl{a} libcrypt-passwdmd5-perl{a} libcrypt-random-seed-perl{a} libgammu-i18n{a} libgammu8{a} libgsmsd8{a} libjim0.76{a} libmariadbclient18{a} libmath-random-isaac-perl{a} libmath-random-isaac-xs-perl{a} libodbc1{a} libtidy5{a} makepasswd{a} mysql-common{a} nav{b} nbtscan{a} postgresql{a} postgresql-contrib{a} python-asciitree{a} python-configparser{a} python-crispy-forms-foundation{a} python-cycler{a} python-dateutil{a} python-django-crispy-forms{a} python-django-filters{a} python-django-guardian{a} python-django-hstore{a} python-djangorestframework{a} python-dnspython{a} python-feedparser{a} python-functools32{a} python-gammu{a} python-imaging{a} python-ipy{a} python-iso8601{a} python-libxml2{a} python-matplotlib{a} python-matplotlib-data{a} python-networkx{a} python-pygraphviz{a} python-pynetsnmp-2{a} python-pyrad{a} python-scipy{a} python-subprocess32{a} python-utidylib{a} python-xmpp{a} rrdtool{a} rsync{a} samba-common{a} samba-common-bin{a} usb-modeswitch{a} usb-modeswitch-data{a} wwwconfig-common{a} 0 packages upgraded, 56 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/26.9 MB of archives. After unpacking 125 MB will be used. The following packages have unmet dependencies: nav : Depends: django-filter (< 0.8) but 0.13.0-1 is to be installed Depends: python-django (< 1.8) but 1:1.10.7-2 is installed Depends: python-django-crispy-forms (< 1.5.0) but 1.6.1-1 is to be installed Depends: python-djangorestframework (< 2.5) but 3.4.0-2 is to be installed The following actions will resolve these dependencies:
Keep the following packages at their current version: 1) nav [Not Installed]
Accept this solution? [Y/n/q/?]
-------------------------------------------------
and nothing gets installed.
Can i get any hint about how to fix this situation?
Thanks and reguards, Marco Barbieri.
On Tue, 6 Feb 2018 09:04:29 +0100 Marco Barbieri marco.barbieri@unimore.it wrote:
Hi,
Hi Marco,
i'm trying to re-install nav on debian 9 system, this machine has just been upgraded in place from jessie to stretch during the upgrade nav 4.6.x, that was installed, got discarded for the same error reported below: dependencies unmet, older versions seem required.
Did you read the installation instructions for Debian 9 at https://nav.uninett.no/install-instructions/#debian ?
As the instructions say:
| There are several software packages that NAV depend on, which are not | provided by Debian 9, or are provided in newer versions that are | backwards-incompatible (such as Django and related software). The APT | repository at nav.uninett.no provides these packages in the required | versions, but since some of the packages are available in newer | versions from Debian Stretch, you will experience problems with having | apt installing all the correct dependecies.
| This is the reason for the apt-pinning rule in the above recipe. It | will ensure that packages provided by nav.uninett.no will be preferred | over newer versions from Debian.
| By doing this, you will lose the benefits of Debian security patches | to these packages, and you may have issues installing other Debian | packages that depend on python-django. Proceeed at your own risk.
Which means you will need to give packages from nav.uninett.no priority in your APT configuration, as detailed in the instructions:
| sudo /bin/sh -c "cat > /etc/apt/preferences.d/nav.pref" <<EOF | # Give packages from nav.uninett.no higher priority, at your own risk | Package: * | Pin: origin nav.uninett.no | Pin-Priority: 600 | EOF | sudo apt-get update
Hi,
thank you for answering, actually i did but i guess the pinning got ignored at some point, the two files are still in their place btw.
I think i'll dump the db and start from scratch.
Best reguards, Marco Barbieri.
On 08/02/2018 09:30, Morten Brekkevold wrote:
On Tue, 6 Feb 2018 09:04:29 +0100 Marco Barbieri marco.barbieri@unimore.it wrote:
Hi,
Hi Marco,
i'm trying to re-install nav on debian 9 system, this machine has just been upgraded in place from jessie to stretch during the upgrade nav 4.6.x, that was installed, got discarded for the same error reported below: dependencies unmet, older versions seem required.
Did you read the installation instructions for Debian 9 at https://nav.uninett.no/install-instructions/#debian ?
As the instructions say:
| There are several software packages that NAV depend on, which are not | provided by Debian 9, or are provided in newer versions that are | backwards-incompatible (such as Django and related software). The APT | repository at nav.uninett.no provides these packages in the required | versions, but since some of the packages are available in newer | versions from Debian Stretch, you will experience problems with having | apt installing all the correct dependecies.
| This is the reason for the apt-pinning rule in the above recipe. It | will ensure that packages provided by nav.uninett.no will be preferred | over newer versions from Debian.
| By doing this, you will lose the benefits of Debian security patches | to these packages, and you may have issues installing other Debian | packages that depend on python-django. Proceeed at your own risk.
Which means you will need to give packages from nav.uninett.no priority in your APT configuration, as detailed in the instructions:
| sudo /bin/sh -c "cat > /etc/apt/preferences.d/nav.pref" <<EOF | # Give packages from nav.uninett.no higher priority, at your own risk | Package: * | Pin: origin nav.uninett.no | Pin-Priority: 600 | EOF | sudo apt-get update