<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Colin,</div>
<div><br>
</div>
<div>On Sun, 2016-06-05 at 08:13 +0100, Colin Law wrote:</div>
<blockquote type="cite">
<pre>On 5 June 2016 at 06:32, Nils Kassube <<a href="mailto:kassube@gmx.net">kassube@gmx.net</a>> wrote:
<blockquote type="cite">
Colin Law wrote:
<blockquote type="cite">
I have added a ppa for mosquitto, when I run
sudo apt-get update && sudo apt-get dist-upgrade
it says:
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
but apt-cache policy for mosquitto shows:
$ apt-cache policy mosquitto
mosquitto:
  Installed: 1.4.8-1build1
  Candidate: 1.4.9-0mosquitto1
  Version table:
     1.4.9-0mosquitto1 500
        500
<a href="http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu">http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu</a>
xenial/main amd64 Packages
 *** 1.4.8-1build1 500
        500 <a href="http://gb.archive.ubuntu.com/ubuntu">http://gb.archive.ubuntu.com/ubuntu</a> xenial/universe amd64
Packages 100 /var/lib/dpkg/status

Which says there is a candidate for update.  I cannot see why apt-get
does not offer the upgrade.  If mosquitto were held then I think
apt-get would show it as held back.  Any suggestions as to what is
going on?
</blockquote>

Could it be that one of the dependencies for the new version is missing?
</blockquote>

I see the cause now, I tried
sudo apt-get -s install mosquitto
and got
The following packages have unmet dependencies.
 mosquitto : Depends: libwebsockets3 (>= 1.2) but it is not installable

So now I can investigate why.
It is not very clever of apt-get to not give any indication that there
is a problem with the upgrade.  I also tried
sudo apt upgrade && sudo apt full-upgrade
and in this case the upgrade said that there is an upgradable package,
though the full-upgrade still did not give any indication of problems.
However at least there is some advantage to using apt rather than
apt-get.

</pre>
</blockquote>
<div>I tend to use aptitude to install and upgrade stuff on my systems. I think it is better at highlighting dependency issues. It even offers solutions to resolve them. I also use the safe-upgrade option rather than dist-upgrade, but I'm not really sure of
 the differences.</div>
<div><br>
</div>
<div>Regard,</div>
<div>Tony.</div>
<blockquote type="cite"></blockquote>
<div></div>
<div><span>-- <br>
<div><b>Tony Arnold |</b> IT Security Analyst | University of Manchester | IT Services | T: +44 (0) 161 275 6093 | M: +44 (0) 773 330 0039 | E: tony.arnold@manchester.ac.uk</div>
</span></div>
</body>
</html>