<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 3, 2016 at 1:34 AM, Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir.cohen@xorcom.com" target="_blank">tzafrir.cohen@xorcom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On Mon, May 02, 2016 at 10:04:54AM -0600, George Joseph wrote:<br>
> This morning, 2 of us noticed that running contrib/scripts/install_prereq<br>
> on a fresh Ubuntu 14 system actually removed critical packages like<br>
> network-manager, openssh-server, perl, git, and a bunch of others.  It<br>
> appears that the culprit is the libsnmp-dev package. It's default conflict<br>
> resolution solution is to uninstall conflicting packages and the alternate<br>
> solution is to correctly upgrade the conflicting packages.  Since<br>
> install_prereq doesn't give you the opportunity to choose the solution, it<br>
> does the uninstall and you're left with an unusable system.<br>
<br>
</span>Can you please remove any '-y's from the apt-get / aptitude<br>
command-lines and try reproducing it? Also maybe use aptitude instead of<br>
apt-get.<br></blockquote><div><br></div><div>Running it manually is how I narrowed it down to libsnmp-dev.</div><div>From a fresh install of ubuntu-14.04.4-server-amd64.iso...</div><div><br></div><div>'aptitude install libsnmp-dev' (which is what install_prereq does) will produce the following...<br></div><div><br></div><div>===========</div><div><div>root@ubuntu14-64:~# aptitude install libsnmp-dev</div><div>The following NEW packages will be installed:</div><div>  binutils{a} cpp{a} cpp-4.8{a} gcc{a} gcc-4.8{a} libasan0{a} libatomic1{a} libc-dev-bin{a} libc6-dev{a} </div><div>  libcloog-isl4{a} libgcc-4.8-dev{a} libgmp10{a} libgomp1{a} libisl10{a} libitm1{a} libmpc3{a} </div><div>  libmpfr4{a} libperl5.18{a} libquadmath0{a} libsensors4{a} libsensors4-dev{a} libsnmp-base{a} </div><div>  libsnmp-dev libsnmp30{a} libssl-dev{a} libssl-doc{a} libtsan0{a} libwrap0-dev{a} linux-libc-dev{a} </div><div>  manpages-dev{a} zlib1g-dev{a} </div><div>The following packages will be upgraded:</div><div>  libssl1.0.0 perl-base </div><div>2 packages upgraded, 31 newly installed, 0 to remove and 45 not upgraded.</div><div>Need to get 25.6 MB of archives. After unpacking 91.7 MB will be used.</div><div>The following packages have unmet dependencies:</div><div> perl : Depends: perl-base (= 5.18.2-2ubuntu1) but 5.18.2-2ubuntu1.1 is to be installed.</div><div>The following actions will resolve these dependencies:</div><div><br></div><div>      Remove the following packages:                              </div><div>1)      at                                                        </div><div>2)      init-system-helpers                                       </div><div>3)      libarchive-extract-perl                                   </div><div>4)      libclass-accessor-perl                                    </div><div>5)      libio-string-perl                                         </div><div>6)      liblog-message-simple-perl                                </div><div>7)      libmodule-pluggable-perl                                  </div><div>8)      libparse-debianchangelog-perl                             </div><div>9)      libpod-latex-perl                                         </div><div>10)     libsub-name-perl                                          </div><div>11)     libterm-ui-perl                                           </div><div>12)     libtext-soundex-perl                                      </div><div>13)     libtimedate-perl                                          </div><div>14)     openssh-server                                            </div><div>15)     perl                                                      </div><div>16)     perl-modules                                              </div><div>17)     rsyslog                                                   </div><div>18)     ubuntu-minimal                                            </div><div><br></div><div>      Leave the following dependencies unresolved:                </div><div>19)     aptitude recommends libparse-debianchangelog-perl         </div><div>20)     perl-modules recommends libarchive-extract-perl           </div><div>21)     perl-modules recommends libmodule-pluggable-perl          </div><div>22)     perl-modules recommends libpod-latex-perl                 </div><div>23)     perl-modules recommends libterm-ui-perl                   </div><div>24)     perl-modules recommends libtext-soundex-perl              </div><div>25)     ssh-import-id recommends openssh-server                   </div><div>26)     openssh-sftp-server recommends openssh-server | ssh-server</div><div><br></div><div><br></div><div>Accept this solution? [Y/n/q/?] n</div><div>The following actions will resolve these dependencies:</div><div><br></div><div>     Upgrade the following packages:                                                                      </div><div>1)     perl [5.18.2-2ubuntu1 (now, trusty) -> 5.18.2-2ubuntu1.1 (trusty-security, trusty-updates)]        </div><div>2)     perl-modules [5.18.2-2ubuntu1 (now, trusty) -> 5.18.2-2ubuntu1.1 (trusty-security, trusty-updates)]</div><div><br></div></div><div><div>Accept this solution? [Y/n/q/?] q</div><div>Abandoning all efforts to resolve these dependencies.</div><div>Abort.</div></div><div><br></div><div><div>===========</div><div></div></div><div><br></div><div><div>'apt-get install libsnmp-dev' will complete successfully.</div><div></div></div><div><br></div><div><div><div>===========</div><div><br></div><div></div></div><div>root@ubuntu14-64:~# apt-get install libsnmp-dev</div><div>Reading package lists... Done</div><div>Building dependency tree       </div><div>Reading state information... Done</div><div>The following extra packages will be installed:</div><div>  binutils cpp cpp-4.8 gcc gcc-4.8 libasan0 libatomic1 libc-dev-bin libc6-dev</div><div>  libcloog-isl4 libgcc-4.8-dev libgmp10 libgomp1 libisl10 libitm1 libmpc3</div><div>  libmpfr4 libperl5.18 libquadmath0 libsensors4 libsensors4-dev libsnmp-base</div><div>  libsnmp30 libssl-dev libssl-doc libssl1.0.0 libtsan0 libwrap0-dev</div><div>  linux-libc-dev manpages-dev perl perl-base perl-modules zlib1g-dev</div><div>Suggested packages:</div><div>  binutils-doc cpp-doc gcc-4.8-locales gcc-multilib make autoconf automake1.9</div><div>  libtool flex bison gdb gcc-doc gcc-4.8-multilib gcc-4.8-doc libgcc1-dbg</div><div>  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg</div><div>  libquadmath0-dbg glibc-doc lm-sensors snmp-mibs-downloader perl-doc</div><div>  libterm-readline-gnu-perl libterm-readline-perl-perl libb-lint-perl</div><div>  libcpanplus-dist-build-perl libcpanplus-perl libfile-checktree-perl</div><div>  liblog-message-perl libobject-accessor-perl</div><div>The following NEW packages will be installed:</div><div>  binutils cpp cpp-4.8 gcc gcc-4.8 libasan0 libatomic1 libc-dev-bin libc6-dev</div><div>  libcloog-isl4 libgcc-4.8-dev libgmp10 libgomp1 libisl10 libitm1 libmpc3</div><div>  libmpfr4 libperl5.18 libquadmath0 libsensors4 libsensors4-dev libsnmp-base</div><div>  libsnmp-dev libsnmp30 libssl-dev libssl-doc libtsan0 libwrap0-dev</div><div>  linux-libc-dev manpages-dev zlib1g-dev</div><div>The following packages will be upgraded:</div><div>  libssl1.0.0 perl perl-base perl-modules</div><div>4 upgraded, 31 newly installed, 0 to remove and 43 not upgraded.</div><div>Need to get 30.9 MB of archives.</div><div>After this operation, 91.7 MB of additional disk space will be used.</div><div>Do you want to continue? [Y/n] Y</div><div><snip></div><div><br></div><div>===========<br></div></div><div><div></div></div><div><br></div><div>I'm actually not sure why install_prereq uses aptitude instead of apt-get.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<span class=""><br>
><br>
> Why this is happening now is unclear.  To work around this, you can either<br>
> run "apt-get update" and "apt-get upgrade" manually, or run "apt-get<br>
> install libsnmp-dev" manually and say "no" to the first solution and "yes"<br>
> to the second.  Then run install_prereq.<br>
<br>
</span>Could you please provide a more complete log?<br>
<br>
See /var/log/apt/history.log or term.log in the same directory.<br></blockquote><div><br></div><div><br></div><div>Here are the logs from the failed aptitude install:</div><div>history.log:  <a href="https://pastebin.com/q3qVSuPn">https://pastebin.com/q3qVSuPn</a><br></div><div>term.log: <a href="https://pastebin.com/aGpzf5hU">https://pastebin.com/aGpzf5hU</a><br></div><div><br></div><div>After a reset of the VM, </div><div><br></div><div>Here are the logs from the successful apt-get install:</div><div>history.log: <a href="https://pastebin.com/yr1cPh1J">https://pastebin.com/yr1cPh1J</a><br></div><div>term.log: <a href="https://pastebin.com/L1d7Pa60">https://pastebin.com/L1d7Pa60</a><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<span class=""><font color="#888888"><br>
--<br>
               Tzafrir Cohen<br>
icq#16849755              <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406           mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" rel="noreferrer" target="_blank">http://www.xorcom.com</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.asterisk.org</a><br><div><br></div></div></div>
</div></div>