Re: cannot update ntopng due to incorrect version of pfring

Emanuele Faranda <[email protected]> Wed, 16 May 2018 10:20:27 +0200
Newsgroups gmane.linux.ntop.general
Message-ID <[email protected]>
Hello,

You can get a list of pinned packages (packages sticked to a particular 
version) with the following command:

     apt-mark showhold

Please post the output of the command above and also the output of:

     apt-cache policy ntopng
     apt-cache policy pfring

Emanuele


On 05/16/2018 02:02 AM, It Manager wrote:
> Hi Emanuele,
>
> thanks for the response.  Unfortunately, I don't know what "pinned" 
> means with those packages, and I gather I've already gone past the 
> required package.  I have only ever updated via apt update && apt 
> upgrade, which always worked up until recently.
>
> Given I already have -1888, how would you recommend I proceed from here?
>
> Cheers,
> Chris.
>
> On 15 May 2018 at 19:08, Emanuele Faranda <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hello,
>
>     On ubuntu 16 I can successfully install ntopng:
>
>     apt-cache policy ntopng
>     ntopng:
>       Installed: 3.4.180511-4407
>       Candidate: 3.4.180511-4407
>       Version table:
>      *** 3.4.180511-4407 500
>             500 http://packages.ntop.org/apt-stable/16.04
>     <http://packages.ntop.org/apt-stable/16.04> x64/ Packages
>             100 /var/lib/dpkg/status
>          2.2+dfsg1-1build1 500
>             500 http://it.archive.ubuntu.com/ubuntu
>     <http://it.archive.ubuntu.com/ubuntu> xenial/universe amd64 Packages
>
>     apt-cache policy pfring
>
>     pfring:
>       Installed: 7.0.0-1927
>       Candidate: 7.0.0-1927
>       Version table:
>      *** 7.0.0-1927 500
>             500 http://packages.ntop.org/apt-stable/16.04
>     <http://packages.ntop.org/apt-stable/16.04> x64/ Packages
>             100 /var/lib/dpkg/status
>
>
>     ntopng depends on pfring 7.0.0-1927, not on 7.0.0-1887 . Please
>     check if you have pinned the ntopng/pf_ring packages.
>
>     Emanuele
>
>
>     On 05/15/2018 10:40 AM, It Manager wrote:
>>     Hi Simone,
>>
>>     thanks for the reply.  Unfortunately, I always use apt update &&
>>     apt upgrade and that is where I get the error.
>>
>>     I only tried the single update as a last resort.
>>
>>     When I run apt update & apt upgrade I get the original error
>>     message listed in my first email...
>>
>>     > The following packages have unmet dependencies:
>>
>>     > ntopng : Depends: pfring (= 7.0.0-1887) but 7.0.0-1888 is installed
>>
>>
>>     Cheers,
>>     Chris.
>>
>>     On 15 May 2018 at 18:13, Simone Mainardi <[email protected]
>>     <mailto:[email protected]>> wrote:
>>
>>         Hi,
>>
>>>         On 14 May 2018, at 23:47, It Manager
>>>         <[email protected]
>>>         <mailto:[email protected]>> wrote:
>>>
>>>         Hi Simone,
>>>
>>>         I'm not sure about Centos, but I am on Ubuntu 16.04.4 LTS. I
>>>         have always updated with
>>>         sudo apt update && sudo apt upgrade
>>>
>>>         The error I get is
>>>
>>>         The following packages have unmet dependencies:
>>>           ntopng: Depends:  pfring (=7.0.0-1887) but 7.0.0-1888 is
>>>         installed
>>>
>>>
>>>         Just for fun, i thought I'd try to update just pfring so ran
>>>         sudo apt install --only-upgrade pfring
>>>
>>>         This is what I got.
>>>
>>>         Reading package lists... Done
>>>         Building dependency tree
>>>         Reading state information... Done
>>>         You might want to run 'apt-get -f install' to correct these:
>>>         The following packages have unmet dependencies:
>>>          cento : Depends: pfring (= 7.0.0-1888) but 7.0.0-1927 is to
>>>         be installed
>>>          n2disk : Depends: pfring (= 7.0.0-1888) but 7.0.0-1927 is
>>>         to be installed
>>>                   Recommends: pfring-dkms (= 7.0.0-1888) but 7.0.0
>>>         is to be installed
>>>          nprobe : Depends: pfring (= 7.0.0-1888) but 7.0.0-1927 is
>>>         to be installed
>>>          ntopng : Depends: pfring (= 7.0.0-1887) but 7.0.0-1927 is
>>>         to be installed
>>>         E: Unmet dependencies. Try 'apt-get -f install' with no
>>>         packages (or specify a solution).
>>
>>         This makes sense to me. You are trying to upgrade only pfring
>>         and the package manager complains because this will break
>>         dependencies of other installed packages. Indeed, installed
>>         packages depend on an older pfring version but they are not
>>         going to be updated. The following should work:
>>
>>         apt-get update && apt-get upgrade
>>
>>
>>         Simone
>>
>>>
>>>
>>>         Cheers,
>>>         Chris.
>>>
>>>         On 12 May 2018 at 02:06, Simone Mainardi <[email protected]
>>>         <mailto:[email protected]>> wrote:
>>>
>>>
>>>
>>>>             On 10 May 2018, at 00:19, David Hansen
>>>>             <[email protected]
>>>>             <mailto:[email protected]>> wrote:
>>>>
>>>>             I have the same problem on centos, can’t seem to get
>>>>             around it.
>>>
>>>             what is the centos version you are using? are you using
>>>             the stable rpms? can you please post the full command
>>>             and output you are getting?
>>>
>>>>             *From:*[email protected]
>>>>             <mailto:[email protected]>
>>>>             [mailto:[email protected]
>>>>             <mailto:[email protected]>]*On Behalf
>>>>             Of*It Manager
>>>>             *Sent:*Wednesday, May 9, 2018 5:02 PM
>>>>             *To:*[email protected] <mailto:[email protected]>
>>>>             *Subject:*Re: [Ntop] cannot update ntopng due to
>>>>             incorrect version of pfring
>>>>             Hello Support,
>>>>             I'm wondering if there's any update to this issue?  I'm
>>>>             still unable to update my installation.
>>>>             Cheers,
>>>>             Chris.
>>>>             On 5 May 2018 at 19:59, It Manager
>>>>             <[email protected]
>>>>             <mailto:[email protected]>> wrote:
>>>>
>>>>                 Hi Luca,
>>>>                 thanks for the response.  I am getting the same error.
>>>>                 You might want to run 'apt-get -f install' to
>>>>                 correct these.
>>>>                 The following packages have unmet dependencies:
>>>>                  ntopng : Depends: pfring (= 7.0.0-1887) but
>>>>                 7.0.0-1888 is installed
>>>>                 E: Unmet dependencies. Try using -f.
>>>>                 Should I try the apt-get -f install ?
>>>>                 Cheers,
>>>>                 Chris.
>>>>                 On 5 May 2018 at 18:13, Luca Deri <[email protected]
>>>>                 <mailto:[email protected]>> wrote:
>>>>
>>>>                     Chris,
>>>>                     please do apt-get update and try again
>>>>                     Luca
>>>>
>>>>
>>>>                         On 4 May 2018, at 22:38, It Manager
>>>>                         <[email protected]
>>>>                         <mailto:[email protected]>>
>>>>                         wrote:
>>>>                         Hi All,
>>>>                         I am running ntopng on a ubuntu server. 
>>>>                         I’m trying to update via apt update /
>>>>                         upgrade, and am getting the message
>>>>                         The following packages have unmet dependencies:
>>>>                         ntopng : Depends: pfring (= 7.0.0-1887) but
>>>>                         7.0.0-1888 is installed
>>>>                         This seems strange as I always update this
>>>>                         machine via apt update / upgrade.  How
>>>>                         should I resolve this problem?
>>>>                         Cheers,
>>>>                         Chris.
>>>>                         _______________________________________________
>>>>                         Ntop mailing list
>>>>                         [email protected]
>>>>                         <mailto:[email protected]>
>>>>                         http://listgateway.unipi.it/mailman/listinfo/ntop
>>>>                         <http://listgateway.unipi.it/mailman/listinfo/ntop>
>>>>
>>>>
>>>>                     _______________________________________________
>>>>                     Ntop mailing list
>>>>                     [email protected]
>>>>                     <mailto:[email protected]>
>>>>                     http://listgateway.unipi.it/mailman/listinfo/ntop
>>>>                     <http://listgateway.unipi.it/mailman/listinfo/ntop>
>>>>
>>>>             _______________________________________________
>>>>             Ntop mailing list
>>>>             [email protected]
>>>>             <mailto:[email protected]>
>>>>             http://listgateway.unipi.it/mailman/listinfo/ntop
>>>>             <http://listgateway.unipi.it/mailman/listinfo/ntop>
>>>
>>>
>>>             _______________________________________________
>>>             Ntop mailing list
>>>             [email protected] <mailto:[email protected]>
>>>             http://listgateway.unipi.it/mailman/listinfo/ntop
>>>             <http://listgateway.unipi.it/mailman/listinfo/ntop>
>>>
>>>
>>>         _______________________________________________
>>>         Ntop mailing list
>>>         [email protected] <mailto:[email protected]>
>>>         http://listgateway.unipi.it/mailman/listinfo/ntop
>>>         <http://listgateway.unipi.it/mailman/listinfo/ntop>
>>
>>
>>         _______________________________________________
>>         Ntop mailing list
>>         [email protected] <mailto:[email protected]>
>>         http://listgateway.unipi.it/mailman/listinfo/ntop
>>         <http://listgateway.unipi.it/mailman/listinfo/ntop>
>>
>>
>>
>>
>>     _______________________________________________
>>     Ntop mailing list
>>     [email protected] <mailto:[email protected]>
>>     http://listgateway.unipi.it/mailman/listinfo/ntop
>>     <http://listgateway.unipi.it/mailman/listinfo/ntop>
>
>
>     _______________________________________________
>     Ntop mailing list
>     [email protected] <mailto:[email protected]>
>     http://listgateway.unipi.it/mailman/listinfo/ntop
>     <http://listgateway.unipi.it/mailman/listinfo/ntop>
>
>
>
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop