<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-32920558</id><updated>2026-08-26T04:11:39.803+08:00</updated><category term="linux"/><category term="python"/><category term="ubuntu"/><category term="OSX"/><category term="homebrew"/><category term="bash"/><category term="windows"/><category term="Node.js"/><category term="git"/><category term="OS X"/><category term="Javascript"/><category term="ssh"/><category term="centos"/><category term="debian"/><category term="scala"/><category term="yarn"/><category term="java"/><category term="GCC"/><category term="MacOS"/><category term="apt"/><category term="ruby"/><category term="php"/><category term="sbt"/><category term="command line"/><category term="mysql"/><category term="octave"/><category term="troubleshooting"/><category term="apache"/><category term="autoconf"/><category term="npm"/><category term="opencv"/><category term="proxy"/><category term="web development"/><category term="Windows 10"/><category term="automake"/><category term="ec2"/><category term="github"/><category term="google"/><category term="sysadmin"/><category term="CUDA"/><category term="FreeBSD"/><category term="Windows 8"/><category term="aws"/><category term="docker"/><category term="jQuery"/><category term="maven"/><category term="open source"/><category term="rpm"/><category term="security"/><category term="sql server"/><category term="vista"/><category term="webpack"/><category term="Arduino"/><category term="Blogger"/><category term="Chrome"/><category term="Eclipse"/><category term="Galileo"/><category term="HTML"/><category term="Intellij"/><category term="Play framework"/><category term="SSL"/><category term="VirtualBox"/><category term="Virtualization"/><category term="WIndows server"/><category term="Windows Azure"/><category term="android"/><category term="bitnami"/><category term="curl"/><category term="development"/><category term="howto"/><category term="microsoft"/><category term="network"/><category term="productivity"/><category term="tensorflow"/><category term="unicode"/><category term="vscode"/><category term="windows 7"/><category term="ARM"/><category term="AppEngine"/><category term="BOINC"/><category term="GNU Libtool"/><category term="Gist"/><category term="Google Drive"/><category term="Intel"/><category term="JSON"/><category term="Microsoft Windows"/><category term="Play"/><category term="RubyGems"/><category term="Social Networking"/><category term="Unix"/><category term="Xcode"/><category term="bazel"/><category term="c++"/><category term="citrix"/><category term="cmder"/><category term="csh"/><category term="encoding"/><category term="facebook"/><category term="firefox"/><category term="gpg"/><category term="iis"/><category term="internet explorer"/><category term="jenkins"/><category term="kerberos"/><category term="kernel"/><category term="llvm"/><category term="msys"/><category term="nginx"/><category term="rails"/><category term="rdp"/><category term="regex"/><category term="social media"/><category term="stackoverflow"/><category term="sublimetext"/><category term="vagrant"/><category term="visual studio"/><category term="zip"/><category term=".net"/><category term="ASP.NET"/><category term="Ant"/><category term="Apple"/><category term="Asus"/><category term="Azure"/><category term="BDD"/><category term="BIOS"/><category term="BSD"/><category term="Bizspark"/><category term="CSS"/><category term="DDS"/><category term="Data distribution service"/><category term="File system"/><category term="Flask"/><category term="Formspring"/><category term="GCE"/><category term="GPU"/><category term="Google Apps"/><category term="Google Cloud"/><category term="Google Compute Engine"/><category term="Google Doc"/><category term="Google Docs"/><category term="Ivy"/><category term="JVM"/><category term="List of Ubuntu releases"/><category term="MSDN"/><category term="MSI"/><category term="MacBook Pro"/><category term="Markdown"/><category term="Nokogiri"/><category term="OAuth"/><category term="PandaForm"/><category term="Pkg-config"/><category term="Port forwarding"/><category term="Privacy"/><category term="Programming"/><category term="R"/><category term="Real-Time Innovations"/><category term="Ruby on Rails"/><category term="Scrubyit"/><category term="Scrypt"/><category term="SourceTree"/><category term="Spreadsheet"/><category term="Time Machine"/><category term="VDI"/><category term="VLC"/><category term="VNC"/><category term="Windows Phone"/><category term="Windows Store"/><category term="YouTube"/><category term="angular"/><category term="ansible"/><category term="apache ivy"/><category term="babel"/><category term="boot2docker"/><category term="byobu"/><category term="chocolatey"/><category term="clang"/><category term="cmake"/><category term="corkscrew"/><category term="cross-compilation"/><category term="cucumber"/><category term="data analysis"/><category term="data science"/><category term="data visualization"/><category term="django"/><category term="docker-machine"/><category term="e-commerce"/><category term="ecliipse"/><category term="electron"/><category term="email"/><category term="envoy"/><category term="ffmpeg"/><category term="firewall"/><category term="gem"/><category term="golang"/><category term="goo.gl"/><category term="groovy"/><category term="hack"/><category term="heroku"/><category term="howtos"/><category term="httpie"/><category term="imagemagick"/><category term="installation"/><category term="jupyter"/><category term="keras"/><category term="launchd"/><category term="ldap"/><category term="lean startup"/><category term="letsencrypt"/><category term="linuxmint"/><category term="magento"/><category term="mosh"/><category term="mstsc"/><category term="netcat"/><category term="nvidia"/><category term="packaging"/><category term="performance"/><category term="pip"/><category term="postgresql"/><category term="powershell"/><category term="profile"/><category term="putty"/><category term="pytest"/><category term="query"/><category term="react"/><category term="recommendation"/><category term="registry"/><category term="remote access"/><category term="reqpro"/><category term="scalability"/><category term="sed"/><category term="shadowsocks"/><category term="snap"/><category term="socat"/><category term="socket.io"/><category term="spark"/><category term="sqlite"/><category term="startup"/><category term="sublime"/><category term="telnet"/><category term="terminal_services"/><category term="tls"/><category term="tomcat"/><category term="torch"/><category term="tox"/><category term="tunnelling"/><category term="twitter"/><category term="utf-8"/><category term="vbscript"/><category term="video transcoding"/><category term="vim"/><category term="visibli"/><category term="vritual box"/><category term="wget"/><category term="windows productivity"/><category term="word cloud"/><category term="wsh"/><category term="xampp"/><title type='text'>Flummoxed by IT</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>391</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-32920558.post-8695874829629865415</id><published>2023-12-30T02:11:00.002+08:00</published><updated>2023-12-30T02:11:26.559+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clang"/><category scheme="http://www.blogger.com/atom/ns#" term="llvm"/><category scheme="http://www.blogger.com/atom/ns#" term="msys"/><title type='text'>Compiling jbig2enc on MSYS on Windows 11 using LLVM &amp; Clang</title><content type='html'>These are the steps that I use to build &lt;a href=&quot;https://github.com/agl/jbig2enc.git&quot;&gt;jbig2enc&lt;/a&gt;on MSYS using LLVM/Clang&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Install MSYS2 and development tools&lt;/li&gt;&lt;li&gt;Install jbig2enc dependencies&lt;/li&gt;&lt;li&gt;Substitute inet.h to Winsock2&lt;/li&gt;&lt;li&gt;Build&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Install MSYS2 and development tools&lt;/h3&gt;&lt;div&gt;The &lt;a href=&quot;https://www.msys2.org/#installation&quot;&gt;official installation instruction for MSYS2 is pretty straightforward&lt;/a&gt;. The default is to use GCC and the relevant development tools. For example, &lt;a href=&quot;https://www.devdungeon.com/content/install-gcc-compiler-windows-msys2-cc&quot;&gt;this page has a step-by-step instructions on how to install&lt;/a&gt; &lt;kbd&gt;base-devel&lt;/kbd&gt;, &lt;kbd&gt;gcc&lt;/kbd&gt;, &lt;kbd&gt;vim&lt;/kbd&gt; and &lt;kbd&gt;cmake&lt;/kbd&gt;.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;div&gt;To use the Clang/LLVM toolchain though, you will need the&amp;nbsp;&lt;a href=&quot;mingw-w64-clang-x86_64-toolchain&quot;&gt;mingw-w64-clang-x86_64-toolchain&lt;/a&gt; group.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-sh linenums&quot;&gt;&lt;code&gt;
$ sudo pacman -S&amp;nbsp;mingw-w64-clang-x86_64-toolchain


&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Install these other development tools:&amp;nbsp;automake autoconf libtool nasm pkgconf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-sh linenums&quot;&gt;&lt;code&gt;
$ sudo pacman -S automake autoconf libtool nasm pkgconf

&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;Install jbig2enc dependencies&lt;/h3&gt;
&lt;div&gt;Assuming you have cloned the source code of jbig2enc, install the dependencies before you start compiling.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-sh linenums&quot;&gt;&lt;code&gt;
pacman -S zlib-devel clang64/mingw-w64-clang-x86_64-leptonica msys2-w32api-headers

&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The last package, &lt;kbd&gt;msys2-w32api-headers&lt;/kbd&gt;, is to provide the Winsock2 library.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;Substitute inet.h to Winsock2&lt;/h3&gt;
&lt;div&gt;Building jbig2enc in a Windows/MSYS environment will lead to &lt;a href=&quot;https://flummox-engineering.blogspot.com/2023/12/msys-llvm-and-clang-linking-error.html&quot;&gt;certain network functionality missing, for more details on the specifics, see this blog post&lt;/a&gt;.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Add the &lt;b&gt;-lws_32&lt;/b&gt;&amp;nbsp;linking flag when you build jbig2enc.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;Build&lt;/h3&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now go ahead and build&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-sh linenums&quot;&gt;&lt;code&gt;
./autogen.sh
LIBS=&quot;-lws2_32&quot; ./configure
make
sudo make install

&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6B-lWQ5X22RF6k7X9iYn1BD8WVZzMZpAnGlCSj88tWDJgo4wsLAcc6u_nWUU3RPJ6lQRRKQQkzlnfY6UPwVo0kRZCUlo8PpY8_g9tL4EwQDdcteR45G_pZLgc1MxvpvAvegiBRwgZTnfKGlW72SdUeINMRadK7A3y0OHDHSzHX5E4F9i7mHPYew/s240/llvm_logo_transparent.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;170&quot; data-original-width=&quot;240&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6B-lWQ5X22RF6k7X9iYn1BD8WVZzMZpAnGlCSj88tWDJgo4wsLAcc6u_nWUU3RPJ6lQRRKQQkzlnfY6UPwVo0kRZCUlo8PpY8_g9tL4EwQDdcteR45G_pZLgc1MxvpvAvegiBRwgZTnfKGlW72SdUeINMRadK7A3y0OHDHSzHX5E4F9i7mHPYew/s1600/llvm_logo_transparent.png&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&amp;nbsp;

&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/8695874829629865415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/8695874829629865415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/8695874829629865415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/8695874829629865415'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2023/12/compiling-jbig2enc-on-msys-on-windows-msys--windows-11-llvm-clang.html' title='Compiling jbig2enc on MSYS on Windows 11 using LLVM &amp; Clang'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6B-lWQ5X22RF6k7X9iYn1BD8WVZzMZpAnGlCSj88tWDJgo4wsLAcc6u_nWUU3RPJ6lQRRKQQkzlnfY6UPwVo0kRZCUlo8PpY8_g9tL4EwQDdcteR45G_pZLgc1MxvpvAvegiBRwgZTnfKGlW72SdUeINMRadK7A3y0OHDHSzHX5E4F9i7mHPYew/s72-c/llvm_logo_transparent.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-1454729752086397549</id><published>2023-12-30T00:57:00.007+08:00</published><updated>2023-12-30T01:34:55.374+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="llvm"/><category scheme="http://www.blogger.com/atom/ns#" term="msys"/><title type='text'>MSYS llvm and clang linking error undefined symbol htons and htonl</title><content type='html'>&lt;p&gt;When I was building jbig2enc in a Windows x64 Msys2 environment, I got errors on undefined &lt;b&gt;htons &lt;/b&gt;and &lt;b&gt;htonl&lt;/b&gt; symbols. Specifically:&lt;/p&gt;

&lt;pre class=&quot;prettyprint linenums lang-llvm&quot;&gt;&lt;code&gt;
libtool: compile:  g++ -DPACKAGE_NAME=\&quot;jbig2enc\&quot; -DPACKAGE_TARNAME=\&quot;jbig2enc-0.28\&quot; -DPACKAGE_VERSION=\&quot;0.28\&quot; &quot;-DPACKAGE_STRING=\&quot;jbig2enc 0.28\&quot;&quot; -DPACKAGE_BUGREPORT=\&quot;agl@imperialviolet.org\&quot; -DPACKAGE_URL=\&quot;https://github.com/agl/jbig2enc\&quot; -DPACKAGE=\&quot;jbig2enc-0.28\&quot; -DVERSION=\&quot;0.28\&quot; -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DLT_OBJDIR=\&quot;.libs/\&quot; -DHAVE_LIBLEPTONICA=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBGIF=1 -DHAVE_LIBWEBP=1 -DHAVE_LIBZ=1 -DHAVE_LIBM=1 -I. -Wall -g -O2 -c jbig2comparator.cc  -DDLL_EXPORT -DPIC -o .libs/jbig2comparator.o
libtool: compile:  g++ -DPACKAGE_NAME=\&quot;jbig2enc\&quot; -DPACKAGE_TARNAME=\&quot;jbig2enc-0.28\&quot; -DPACKAGE_VERSION=\&quot;0.28\&quot; &quot;-DPACKAGE_STRING=\&quot;jbig2enc 0.28\&quot;&quot; -DPACKAGE_BUGREPORT=\&quot;agl@imperialviolet.org\&quot; -DPACKAGE_URL=\&quot;https://github.com/agl/jbig2enc\&quot; -DPACKAGE=\&quot;jbig2enc-0.28\&quot; -DVERSION=\&quot;0.28\&quot; -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DLT_OBJDIR=\&quot;.libs/\&quot; -DHAVE_LIBLEPTONICA=1 -DHAVE_LIBTIFF=1 -DHAVE_LIBPNG=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBGIF=1 -DHAVE_LIBWEBP=1 -DHAVE_LIBZ=1 -DHAVE_LIBM=1 -I. -Wall -g -O2 -c jbig2comparator.cc -o jbig2comparator.o &amp;gt;/dev/null 2&amp;gt;&amp;amp;1
/bin/sh ../libtool  --tag=CXX   --mode=link g++ -Wall -g -O2 -no-undefined -version-info 0:28  -o libjbig2enc.la -rpath /usr/lib jbig2enc.lo jbig2arith.lo jbig2sym.lo jbig2comparator.lo  -lm -lz -lwebp -lgif -ljpeg -lpng -ltiff -lleptonica
libtool: link: g++ -shared -nostdlib D:/msys64/clang64/lib/dllcrt2.o D:/msys64/clang64/lib/crtbegin.o  .libs/jbig2enc.o .libs/jbig2arith.o .libs/jbig2sym.o .libs/jbig2comparator.o   -lz -lwebp -lgif -ljpeg -lpng -ltiff -lleptonica -LD:/msys64/clang64/x86_64-w64-mingw32/lib -LD:/msys64/clang64/x86_64-w64-mingw32/mingw/lib -LD:/msys64/clang64/lib -LD:/msys64/clang64/lib/clang/17/lib/windows -lc++ -lmingw32 D:/msys64/clang64/lib/clang/17/lib/windows/libclang_rt.builtins-x86_64.a -lunwind -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 D:/msys64/clang64/lib/clang/17/lib/windows/libclang_rt.builtins-x86_64.a -lunwind -lmoldname -lmingwex -lmsvcrt -lkernel32 D:/msys64/clang64/lib/crtend.o  -g -O2   -o .libs/msys-jbig2enc-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libjbig2enc.dll.a
ld.lld: error: undefined symbol: __declspec(dllimport) htonl
&amp;gt;&amp;gt;&amp;gt; referenced by jbig2enc.cc:674
&amp;gt;&amp;gt;&amp;gt;               .libs/jbig2enc.o:(jbig2_pages_complete(jbig2ctx*, int*))
&amp;gt;&amp;gt;&amp;gt; referenced by jbig2enc.cc:696
&amp;gt;&amp;gt;&amp;gt;               .libs/jbig2enc.o:(jbig2_pages_complete(jbig2ctx*, int*))
&amp;gt;&amp;gt;&amp;gt; referenced by jbig2enc.cc:751
&amp;gt;&amp;gt;&amp;gt;               .libs/jbig2enc.o:(jbig2_produce_page(jbig2ctx*, int, int, int, int*))
&amp;gt;&amp;gt;&amp;gt; referenced 18 more times

ld.lld: error: undefined symbol: __declspec(dllimport) htons
&amp;gt;&amp;gt;&amp;gt; referenced by ./jbig2segments.h:0
&amp;gt;&amp;gt;&amp;gt;               .libs/jbig2enc.o:(Segment::write(unsigned char*))
g++: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:472：libjbig2enc.la] 错误 1
make[1]: 离开目录“/d/Github/jbig2enc/src”
make: *** [Makefile:479：all-recursive] 错误 1


&lt;/code&gt;&lt;/pre&gt;

htons and htonl are part of the arpa/inet.h headers in UNIX-like environments. In Windows development environment, these functions are provided by the Winsock2 library.&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;MSYS ought to ship with the Winsock2 library - or else you can install it from the&amp;nbsp;&lt;a href=&quot;https://packages.msys2.org/package/msys2-w32api-headers?repo=msys&amp;amp;variant=x86_64&quot;&gt;msys2-w32api-headers&lt;/a&gt;&amp;nbsp;package.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Link to Winsock2&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When running autoconfig, add the&amp;nbsp;-lws2_32 linker flag. For my example,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;

&lt;pre class=&quot;prettyprint lang-llvm&quot;&gt;&lt;code&gt;
LIBS=&quot;-lws2_32&quot; ./configure


&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSuLF4GladcGwDMD4SvPqd68ones6Aqi7ZA6Idoc3W2FbGXsOakUf8Aqnaqz8XlIagjd-EPTT2zqoMuxaA25NvGivJsX8oeuOiHyfUy-XJr_jb0q5Wnxd58yLP-7MTAOuuDQ0RouO01sIz3Ym2nVnza9yS4opKCqIp0N0xoLCs9CcVp_VVKxnvlA/s240/llvm_logo_transparent.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;170&quot; data-original-width=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSuLF4GladcGwDMD4SvPqd68ones6Aqi7ZA6Idoc3W2FbGXsOakUf8Aqnaqz8XlIagjd-EPTT2zqoMuxaA25NvGivJsX8oeuOiHyfUy-XJr_jb0q5Wnxd58yLP-7MTAOuuDQ0RouO01sIz3Ym2nVnza9yS4opKCqIp0N0xoLCs9CcVp_VVKxnvlA/s16000/llvm_logo_transparent.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/1454729752086397549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/1454729752086397549' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1454729752086397549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1454729752086397549'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2023/12/msys-llvm-and-clang-linking-error.html' title='MSYS llvm and clang linking error undefined symbol htons and htonl'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSuLF4GladcGwDMD4SvPqd68ones6Aqi7ZA6Idoc3W2FbGXsOakUf8Aqnaqz8XlIagjd-EPTT2zqoMuxaA25NvGivJsX8oeuOiHyfUy-XJr_jb0q5Wnxd58yLP-7MTAOuuDQ0RouO01sIz3Ym2nVnza9yS4opKCqIp0N0xoLCs9CcVp_VVKxnvlA/s72-c/llvm_logo_transparent.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-6514591599081040645</id><published>2020-06-08T16:12:00.000+08:00</published><updated>2020-06-08T16:12:07.312+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cmder"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Windows Subsystem for Linux has no installed distributions</title><content type='html'>When trying to launch a new bash console on Windows 10, I get this error&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
wslbridge error: failed to start backend process
note: bash.exe output: Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore


ConEmuC: Root process was alive less than 10 sec, ExitCode=0.
Press Enter or Esc to close console...



&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;
Windows Subsystem for Linux&lt;/h3&gt;
This seems weird, as bash worked on my system before, and I remembered installing WSL. A quick check using &quot;optionalfeatures&quot; show that WSL is indeed installed&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwVNesrP6hzywU5BY-_JykJxnBkmFRNEzWyyefyDlGiV3Ehql1qWuTcOpldxYY16pWCD66GB_EsnfP5eMNO-GIxoF-OYABTK-MuTZYyIwAc2xKHG-sIk0ba1qvXfHpvUcF7HWNnw/s1600/2020-06-08+WSL+01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;368&quot; data-original-width=&quot;415&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwVNesrP6hzywU5BY-_JykJxnBkmFRNEzWyyefyDlGiV3Ehql1qWuTcOpldxYY16pWCD66GB_EsnfP5eMNO-GIxoF-OYABTK-MuTZYyIwAc2xKHG-sIk0ba1qvXfHpvUcF7HWNnw/s1600/2020-06-08+WSL+01.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Installing WSL does not mean it comes with a Linux distribution. I still need to install it manually.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note also that I am using an older version of Windows 10. &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/reference&quot;&gt;Windows 10 Version 1803 and above should be using the wsl command&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Install Linux&lt;/h3&gt;
Use the lxrun command to install a Linux distribution&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ lxrun /install /y
Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

This will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here:
https://aka.ms/uowterms

Downloading from the Microsoft Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful!
Documentation is available at:&amp;nbsp; https://aka.ms/wsldocs



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
After successfully installing Ubuntu, bash works once more&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
root@hostname:/mnt/c/Users/hanxue#



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE9kS3UQze09S2bAwhPWfaljV66lysS3_KMob4RjEHNNCjCr04z_Q89UPfqSyMfPQERwp7nGHjDYKlwUAh8O9zao_v2LnapAUrF-5zFYwMR0bYd6asWvqvhAZd4AvQv6u0IM90Rg/s1600/linux_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;317&quot; data-original-width=&quot;640&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE9kS3UQze09S2bAwhPWfaljV66lysS3_KMob4RjEHNNCjCr04z_Q89UPfqSyMfPQERwp7nGHjDYKlwUAh8O9zao_v2LnapAUrF-5zFYwMR0bYd6asWvqvhAZd4AvQv6u0IM90Rg/s320/linux_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/6514591599081040645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/6514591599081040645' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/6514591599081040645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/6514591599081040645'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/06/Windows-Subsystem-for-Linux-has-no-installed-distributions.html' title='Windows Subsystem for Linux has no installed distributions'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwVNesrP6hzywU5BY-_JykJxnBkmFRNEzWyyefyDlGiV3Ehql1qWuTcOpldxYY16pWCD66GB_EsnfP5eMNO-GIxoF-OYABTK-MuTZYyIwAc2xKHG-sIk0ba1qvXfHpvUcF7HWNnw/s72-c/2020-06-08+WSL+01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-5260299397563487233</id><published>2020-04-26T18:52:00.002+08:00</published><updated>2020-04-26T22:25:18.390+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="vscode"/><title type='text'></title><content type='html'>I was trying to connect from VSCode Windows into a remote Linux server, and got this error&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&amp;nbsp;@&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt; WARNING: UNPROTECTED PRIVATE KEY FILE!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&amp;nbsp;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;
Permissions for &#39;C:\\Users\\hanxuel\\OneDrive\\Private\\hanxuel&#39; are too open.&lt;br /&gt;
It is required that your private key files are NOT accessible by others.&lt;br /&gt;
This private key will be ignored.&lt;br /&gt;
Load key &quot;C:\\Users\\hanxuel\\OneDrive\\Private\\hanxuel&quot;: bad permissions&lt;br /&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Seems the that private SSH key that I am using has too open permissions.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
SSH Key Permissions&lt;/h3&gt;
On Linux, I am pretty clear about the permissions I need to set.&lt;br /&gt;
&lt;table&gt;
    &lt;style&gt;
 table {width:90%}
 table,th,td {border: 1px solid black;}
 th,td{text-align:center;}
 th{background-color: #BBBBBB; color:Black;}

 &lt;/style&gt;
    &lt;tbody&gt;
&lt;tr&gt;
        &lt;th&gt;File&lt;/th&gt;
        &lt;th&gt;Octal Permissions&lt;/th&gt;
        &lt;th&gt;File Listing Permissions&lt;/th&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;~/.ssh&lt;/td&gt;
        &lt;td&gt;700&lt;/td&gt;
        &lt;td&gt;drwx------&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;~/.ssh/id_rsa (or other private keys)&lt;/td&gt;
        &lt;td&gt;600&lt;/td&gt;
        &lt;td&gt;-rw-------&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;~/.ssh/id_rsa.pub (or other public keys)&lt;/td&gt;
        &lt;td&gt;644&lt;/td&gt;
        &lt;td&gt;-rw-r--r--&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
So the &lt;kbd&gt;~/.ssh&lt;/kbd&gt; directory and SSH private key should be only viewable by myself, although the public key can be more open. The public key is sometimes distributed to other users or used by remote services and it should be public anyway.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Windows SSH Key Permission&lt;/h3&gt;
Windows file permissions works a bit differently than UNIX. There is filesystem ACL, objects and inheritance. But basically the goal is the same: remove anyone else from reading the private key, except yourself.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s a &lt;a href=&quot;https://superuser.com/a/1329702/98584&quot;&gt;script I found on Superuser.com that does that&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
:: # Set Variable ::
Set Key=&quot;C:\Path\to\key&quot;

:: # Remove Inheritance ::
Cmd /c Icacls %Key% /c /t /Inheritance:d

:: # Set Ownership to Owner ::
Cmd /c Icacls %Key% /c /t /Grant %UserName%:F

:: # Remove All Users, except for Owner ::
Cmd /c Icacls %Key% /c /t /Remove Administrator &quot;Authenticated Users&quot; BUILTIN\Administrators BUILTIN Everyone System Users

:: # Verify ::
Cmd /c Icacls %Key%


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Remember to run this script as Administrator.&lt;br /&gt;
&lt;br /&gt;
This is what the output looks like&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ C:\Apps\private_key.cmd 
 
Set Key=&quot;C:\Users\hanxuel\OneDrive\Private\hanxuel&quot; 
 
Cmd /c Icacls &quot;C:\Users\hanxuel\OneDrive\Private\hanxuel&quot; /c /t /Inheritance:d 
processed file: C:\Users\hanxuel\OneDrive\Private\hanxuel 
Successfully processed 1 files; Failed processing 0 files 
 
Cmd /c Icacls &quot;C:\Users\hanxuel\OneDrive\Private\hanxuel&quot; /c /t /Grant hanxuel:F 
processed file: C:\Users\hanxuel\OneDrive\Private\hanxuel 
Successfully processed 1 files; Failed processing 0 files 
 
Cmd /c Icacls &quot;C:\Users\hanxuel\OneDrive\Private\hanxuel&quot; /c /t /Remove Administrator &quot;Authenticated Users&quot; BUILTIN\Administrators BUILTIN Everyone System Users 
processed file: C:\Users\hanxuel\OneDrive\Private\hanxuel 
Successfully processed 1 files; Failed processing 0 files 
 
Cmd /c Icacls &quot;C:\Users\hanxuel\OneDrive\Private\hanxuel&quot; 
C:\Users\hanxuel\OneDrive\Private\hanxuel ACME\hanxuel:(F) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACME\xilongj:(F)


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Successfully processed 1 files; Failed processing 0 files &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDuf_dsJLyqZSkVrj1AFZTr5e4TJUqeVQ5Qty3zfehb-ti1GQxy5JuAQbcv39tTC8wx42Id990GYbwEqGn_YkKd8nyr687yXPLqFFTL6ysh7WNOkuz8J8MG_PEZTyix23HwSmOxw/s1600/ssh_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;409&quot; data-original-width=&quot;522&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDuf_dsJLyqZSkVrj1AFZTr5e4TJUqeVQ5Qty3zfehb-ti1GQxy5JuAQbcv39tTC8wx42Id990GYbwEqGn_YkKd8nyr687yXPLqFFTL6ysh7WNOkuz8J8MG_PEZTyix23HwSmOxw/s320/ssh_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/5260299397563487233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/5260299397563487233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/5260299397563487233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/5260299397563487233'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/04/i-was-trying-to-connect-from-vscode.html' title=''/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDuf_dsJLyqZSkVrj1AFZTr5e4TJUqeVQ5Qty3zfehb-ti1GQxy5JuAQbcv39tTC8wx42Id990GYbwEqGn_YkKd8nyr687yXPLqFFTL6ysh7WNOkuz8J8MG_PEZTyix23HwSmOxw/s72-c/ssh_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-1865353252841824386</id><published>2020-04-22T11:52:00.003+08:00</published><updated>2023-12-30T01:31:09.821+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Python fatal error: Python.h: No such file or directory</title><content type='html'>I got this error while installing a Python package&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-python&quot;&gt;&lt;code&gt;
Installing collected packages: psutil, wcwidth, pyte, thefuck&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37/257]
&amp;nbsp; Running setup.py install for psutil ... error
&amp;nbsp;&amp;nbsp;&amp;nbsp; Complete output from command /usr/bin/python3 -u -c &quot;import setuptools, toke
nize;__file__=&#39;/tmp/pip-build-2lqls7pu/psutil/setup.py&#39;;f=getattr(tokenize, &#39;open&#39;, open)(__file__);code=f.read().replace(&#39;\r\n&#39;, &#39;\n&#39;);f.close();exec(compile(c
ode, __file__, &#39;exec&#39;))&quot; install --record /tmp/pip-kips6a90-record/install-recor
d.txt --single-version-externally-managed --compile --user --prefix=:
&amp;nbsp;&amp;nbsp;&amp;nbsp; running install
&amp;nbsp;&amp;nbsp;&amp;nbsp; running build
&amp;nbsp;&amp;nbsp;&amp;nbsp; running build_py
&amp;nbsp;&amp;nbsp;&amp;nbsp; creating build
&amp;nbsp;&amp;nbsp;&amp;nbsp; creating build/lib.linux-x86_64-3.6
&amp;nbsp;&amp;nbsp;&amp;nbsp; creating build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_pssunos.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_common.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_psposix.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_pslinux.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_psaix.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_psosx.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_pswindows.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_psbsd.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/__init__.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/_compat.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; creating build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_system.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_memory_leaks.py -&amp;gt; build/lib.linux-x86_64-3.6/psut
il/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_linux.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/test
s
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_sunos.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/test
s
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_misc.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_aix.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_windows.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_osx.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/__main__.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests

&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/__main__.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_process.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_connections.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_bsd.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/runner.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/__init__.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_unicode.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_posix.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; copying psutil/tests/test_contracts.py -&amp;gt; build/lib.linux-x86_64-3.6/psutil/tests
&amp;nbsp;&amp;nbsp;&amp;nbsp; running build_ext
&amp;nbsp;&amp;nbsp;&amp;nbsp; building &#39;psutil._psutil_linux&#39; extension
&amp;nbsp;&amp;nbsp;&amp;nbsp; creating build/temp.linux-x86_64-3.6
&amp;nbsp;&amp;nbsp;&amp;nbsp; creating build/temp.linux-x86_64-3.6/psutil
&amp;nbsp;&amp;nbsp;&amp;nbsp; gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
&amp;nbsp;&amp;nbsp;&amp;nbsp; psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &amp;lt;Python.h&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^
&amp;nbsp;&amp;nbsp;&amp;nbsp; compilation terminated.
&amp;nbsp;&amp;nbsp;&amp;nbsp; error: command &#39;gcc&#39; failed with exit status 1

&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------------------------
Command &quot;/usr/bin/python3 -u -c &quot;import setuptools, tokenize;__file__=&#39;/tmp/pip-build-2lqls7pu/psutil/setup.py&#39;;f=getattr(tokenize, &#39;open&#39;, open)(__file__);code=f.read().replace(&#39;\r\n&#39;, &#39;\n&#39;);f.close();exec(compile(code, __file__, &#39;exec&#39;))&quot; install --record /tmp/pip-kips6a90-record/install-record.txt --single-version-externally-managed --compile --user --prefix=&quot; failed with error code 1 in /tmp/pip-build-2lqls7pu/psutil/



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Python Header Files&lt;/h3&gt;
The error message reporting missing Python.h file is because Python cannot find the header/development files. Install the necessary OS package.&lt;br /&gt;
&lt;br /&gt;
For Debian or Ubuntu based OS&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo apt-get install python-dev&amp;nbsp; 
sudo apt-get install python3-dev



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
For CentOS / Fedora / RedHat based OS&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo yum install python-devel&amp;nbsp;&amp;nbsp;

sudo yum install python3-devel&amp;nbsp;&amp;nbsp;



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
For example, these are the packages installed on CentOS 7&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
================================================================================
&amp;nbsp;Package&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Arch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repository&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size
================================================================================
Installing:
&amp;nbsp;python3-devel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x86_64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.6.8-10.el7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xlnx-base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 215 k
Installing for dependencies:
&amp;nbsp;python-rpm-macros&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noarch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3-32.el7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xlnx-base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.8 k
&amp;nbsp;python3-rpm-generators&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noarch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6-2.el7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xlnx-base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 k
&amp;nbsp;python3-rpm-macros&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noarch&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3-32.el7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xlnx-base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.7 k




&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
The Python package can now be built and installed successfully&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ pip3 install --user thefuck
Collecting thefuck
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/57/56/378c08c58453d245435acdb58729db0762537c5d223bbf093454f7834c86/thefuck-3.30-py2.py3-none-any.whl
Requirement already satisfied: decorator in ./.local/lib/python3.6/site-packages (from thefuck)
Requirement already satisfied: colorama in ./.local/lib/python3.6/site-packages (from thefuck)
Collecting pyte (from thefuck)
Collecting psutil (from thefuck)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/c4/b8/3512f0e93e0db23a71d82485ba256071ebef99b227351f0f5540f744af41/psutil-5.7.0.tar.gz
Requirement already satisfied: six in ./.local/lib/python3.6/site-packages (from thefuck)
Collecting wcwidth (from pyte-&amp;gt;thefuck)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/f6/d5/1ecdac957e3ea12c1b319fcdee8b6917ffaff8b4644d673c4d72d2f20b49/wcwidth-0.1.9-py2.py3-none-any.whl
Building wheels for collected packages: psutil
&amp;nbsp; Running setup.py bdist_wheel for psutil ... done
&amp;nbsp; Stored in directory: /home/hanxue/.cache/pip/wheels/d7/69/b4/3200b95828d1f0ddb3cb5699083717f4fdbd9b4223d0644c57
Successfully built psutil
Installing collected packages: wcwidth, pyte, psutil, thefuck
Successfully installed psutil-5.7.0 pyte-0.8.0 thefuck-3.30 wcwidth-0.1.9




&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtkGgBlmgvcyF4MGpiKXy2CakWYJvVvVdtIRVZOAYgUZuxyjxH04pBycOZK81idMnhusWAXy-Ejjjk98SIVWvPpsuE_NF70loG3pnmWAKSDWQ9kNxn4YcFvDEU3NHzRNcTk_EAew/s1600/python_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;379&quot; data-original-width=&quot;1280&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtkGgBlmgvcyF4MGpiKXy2CakWYJvVvVdtIRVZOAYgUZuxyjxH04pBycOZK81idMnhusWAXy-Ejjjk98SIVWvPpsuE_NF70loG3pnmWAKSDWQ9kNxn4YcFvDEU3NHzRNcTk_EAew/s320/python_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/1865353252841824386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/1865353252841824386' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1865353252841824386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1865353252841824386'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/04/python-fatal-error-pythonh-no-such-file.html' title='Python fatal error: Python.h: No such file or directory'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtkGgBlmgvcyF4MGpiKXy2CakWYJvVvVdtIRVZOAYgUZuxyjxH04pBycOZK81idMnhusWAXy-Ejjjk98SIVWvPpsuE_NF70loG3pnmWAKSDWQ9kNxn4YcFvDEU3NHzRNcTk_EAew/s72-c/python_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-6526963355958564937</id><published>2020-04-20T10:44:00.000+08:00</published><updated>2020-04-20T10:47:14.536+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apt"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>libreadline.so.6: cannot open shared object file: No such file or directory</title><content type='html'>&lt;h3&gt;
Readline Share Library Missing &lt;/h3&gt;
When I run a script that calls &lt;b&gt;rlwrap&lt;/b&gt;, I got this error on Ubuntu 18.04&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
rlwrap: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Looks like it is missing the &lt;b&gt;readline&lt;/b&gt; library. Searching Ubuntu package repositories&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ apt search libreadline

libreadline-dev/bionic 7.0-3 amd64
&amp;nbsp; GNU readline and history libraries, development files

libreadline-gplv2-dev/bionic 5.2+dfsg-3build1 amd64
&amp;nbsp; GNU readline and history libraries, development files

libreadline-java/bionic 0.8.0.1+dfsg-6 amd64
&amp;nbsp; GNU readline and BSD editline wrappers for Java

libreadline-java-doc/bionic,bionic 0.8.0.1+dfsg-6 all
&amp;nbsp; API docs for readline/editline wrappers for Java

libreadline5/bionic,now 5.2+dfsg-3build1 amd64 [installed]
&amp;nbsp; GNU readline and history libraries, run-time libraries

libreadline5-dbg/bionic 5.2+dfsg-3build1 amd64
&amp;nbsp; GNU readline and history libraries, debugging libraries

libreadline7/bionic,now 7.0-3 amd64 [installed]
&amp;nbsp; GNU readline and history libraries, run-time libraries

libreadline7-dbg/bionic 7.0-3 amd64
&amp;nbsp; GNU readline and history libraries, debugging libraries


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Checking on the libreadline6 library, &lt;a href=&quot;https://launchpad.net/ubuntu/bionic/amd64/libreadline6&quot;&gt;it was deleted on 2017-12-06&lt;/a&gt; from &lt;a href=&quot;https://launchpad.net/bugs/877240&quot;&gt;this Debian bug&lt;/a&gt;. The reason for deletion being&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
(From Debian) ROM; obsolete version of readline;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
What is Readline&lt;/h3&gt;
Readline is the library that allows you to&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;move the text cursor in command line&lt;/li&gt;
&lt;li&gt;search history&lt;/li&gt;
&lt;li&gt;copy and paste&lt;/li&gt;
&lt;li&gt;tab completion&lt;/li&gt;
&lt;li&gt;and so on&lt;/li&gt;
&lt;/ul&gt;
In short, any useful command line utility using C will need Readline or an equivalent library.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Using Readline 5 and Readline 7&lt;/h3&gt;
Let&#39;s see if the other versions of Readline has been installed on the system&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt install libreadline5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libreadline5 is already the newest version (5.2+dfsg-3build1).
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.


$ sudo apt install libreadline7
Reading package lists... Done
Building dependency tree
Reading state information... Done
libreadline7 is already the newest version (7.0-3).
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Unfortunately the script still requires the Readline version 6&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
rlwrap: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h3&gt;
libreadline-dev&lt;/h3&gt;
From my understanding of the error message, I thought Readline 6 is required. I am going to try installing libreadline-dev anyway, to see if it has the pkg-config files and recompile rlwrap with libreadline7.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt install libreadline-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
&amp;nbsp; readline-doc
The following NEW packages will be installed:
&amp;nbsp; libreadline-dev
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 133 kB of archives.
After this operation, 728 kB of additional disk space will be used.
Get:1 http://xco-engapt.xilinx.com/ubuntu180401 bionic/main amd64 libreadline-de
v amd64 7.0-3 [133 kB]
Fetched 133 kB in 1s (90.8 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libreadline-dev:amd64.
(Reading database ... 328880 files and directories currently installed.)
Preparing to unpack .../libreadline-dev_7.0-3_amd64.deb ...
Unpacking libreadline-dev:amd64 (7.0-3) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up libreadline-dev:amd64 (7.0-3) ...


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Let&#39;s take a look at the content&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ dpkg -L libreadline-de
v
/.
/usr
/usr/include
/usr/include/readline
/usr/include/readline
/usr/include/readline/chardefs.h
/usr/include/readline/history.h
/usr/include/readline/keymaps.h
/usr/include/readline/readline.h
/usr/include/readline/rlconf.h
/usr/include/readline/rlstdc.h
/usr/include/readline/rltypedefs.h
/usr/include/readline/tilde.h
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libhistory.a
/usr/lib/x86_64-linux-gnu/libreadline.a
/usr/share
/usr/share/doc
/usr/share/info
/usr/lib/x86_64-linux-gnu/libhistory.so
/usr/lib/x86_64-linux-gnu/libreadline.so
/usr/share/doc/libreadline-dev



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmmm... there&#39;s a /usr/lib/x86_64-linux-gnu/libreadline.so . Let&#39;s try to recompile and see if it works&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ ./configure
...
...
...
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether your readline headers and library know about rl_set_screen_size
... yes
checking whether your readline headers and library know about rl_basic_quote_cha
racters... yes
checking whether your readline headers and library know about rl_variable_value.
.. yes
checking whether your readline headers and library know about rl_readline_versio
n... yes
checking whether your readline headers and library know about rl_executing_keyse
q... yes
checking whether the private symbol _rl_horizontal_scroll_mode is visble in your
&amp;nbsp;readline libs... yes
Will rlwrap find command&#39;s working directory under /proc/commands pid=&quot;&quot;/cwd? let
&#39;s see...
checking for /proc/5269/cwd/configure.ac... yes
checking whether we can find command line under opt_proc_mountpoint/pid/cmdl
ine and mirror it by overwriting our own *argv... yes
checking that generated files are newer than configure... done
checking that generated files are newer than configure... done
configure: creating ./config.status/pid/opt_proc_mountpoint/commands


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
And now build the binary&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ make
make&amp;nbsp; all-recursive
make[1]: Entering directory &#39;/Github/rlwrap&#39;
Making all in doc
make[2]: Entering directory &#39;/Github/rlwrap/doc&#39;
sed -e &#39;s#@DATADIR@#/usr/local/share#&#39;&amp;nbsp; rlwrap.man &amp;gt; rlwrap.1
make[2]: Leaving directory &#39;/Github/rlwrap/doc&#39;
Making all in src
make[2]: Entering directory &#39;/Github/rlwrap/src&#39;
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT main.
o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT signa
ls.o -MD -MP -MF .deps/signals.Tpo -c -o signals.o signals.c
mv -f .deps/signals.Tpo .deps/signals.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT readlmv -f .deps/signals.Tpo .deps/signals.Po&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [84/1892]
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT readl
ine.o -MD -MP -MF .deps/readline.Tpo -c -o readline.o readline.c
mv -f .deps/readline.Tpo .deps/readline.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT pty.o
&amp;nbsp;-MD -MP -MF .deps/pty.Tpo -c -o pty.o pty.c
mv -f .deps/pty.Tpo .deps/pty.Po
rbgen completion.rb completion.c || echo &quot;You don&#39;t seem to have rbgen (http://l
ibredblack.sourceforge.net/). If you didn&#39;t change any .rb files, this is not a
problem&quot;
/bin/sh: rbgen: command not found
You don&#39;t seem to have rbgen (http://libredblack.sourceforge.net/). If you didn&#39;
t change any .rb files, this is not a problem
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT compl
etion.o -MD -MP -MF .deps/completion.Tpo -c -o completion.o completion.c
mv -f .deps/completion.Tpo .deps/completion.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT term.
o -MD -MP -MF .deps/term.Tpo -c -o term.o term.c
mv -f .deps/term.Tpo .deps/term.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT ptytt
y.o -MD -MP -MF .deps/ptytty.Tpo -c -o ptytty.o ptytty.c
mv -f .deps/ptytty.Tpo .deps/ptytty.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT utils
.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT strin
g_utils.o -MD -MP -MF .deps/string_utils.Tpo -c -o string_utils.o string_utils.c
mv -f .deps/string_utils.Tpo .deps/string_utils.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT mallo
mv -f .deps/string_utils.Tpo .deps/string_utils.Po&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [57/1892]
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT mallo
c_debug.o -MD -MP -MF .deps/malloc_debug.Tpo -c -o malloc_debug.o malloc_debug.c
mv -f .deps/malloc_debug.Tpo .deps/malloc_debug.Po
gcc -DHAVE_CONFIG_H -I. -I..&amp;nbsp;&amp;nbsp;&amp;nbsp; -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2 -MT filte
r.o -MD -MP -MF .deps/filter.Tpo -c -o filter.o filter.c
mv -f .deps/filter.Tpo .deps/filter.Po
gcc -DDATADIR=\&quot;/usr/local/share\&quot;&amp;nbsp; -g -O2&amp;nbsp;&amp;nbsp; -o rlwrap main.o signals.o readline
.o pty.o completion.o term.o ptytty.o utils.o string_utils.o malloc_debug.o filt
er.o&amp;nbsp; -lutil&amp;nbsp;&amp;nbsp; -lreadline -ltinfo
make[2]: Leaving directory &#39;/Github/rlwrap/src&#39;
Making all in filters
make[2]: Entering directory &#39;/Github/rlwrap/filters&#39;
make[2]: Nothing to be done for &#39;all&#39;.
make[2]: Leaving directory &#39;/Github/rlwrap/filters&#39;
make[2]: Entering directory &#39;/Github/rlwrap&#39;
make[2]: Leaving directory &#39;/Github/rlwrap&#39;
make[1]: Leaving directory &#39;/Github/rlwrap&#39; 



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
And let&#39;s try the script that calls rlwrap again&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ ggv macos src
grep: src: Is a directory
grep: src: Is a directory
============================ grep results ===============================
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; ./tools/config.sub:1396:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | -macos* | -mpw* | -magic* | -mmi
xware* | -mon960* | -lnews*)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp; ./tools/config.sub:1399:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os=`echo $os | sed -e &#39;s|mac|mac
os|&#39;`
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp; ./tools/config.sub:1695:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os=-macos
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp; ./tools/config.sub:1766:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -mpw* | -macos*)
============================ grep results ===============================
Enter a number between 1 and 4 or anything else to quit:&amp;nbsp; 2



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Looks great!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In short, &lt;b&gt;libreadline-dev&lt;/b&gt; is needed to run rlwrap - although during compilation it is not needed. Not intuitive to me, as I expect libreadline-dev to be used during compilation, instead of containing the shared library that is used during runtime.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-o1UVlvio9q5UBuoiQzX6DvCLquGfAesdkSQLrT0rwz0aD7kRGl1QJ6imrlsLXGWoKLC5ViS94p3mb9cbvN6rwXz6HV0JcA7Eo3BVagZ3DkTVyXGaOP6m7DfGzl-7PVw4i08OxA/s1600/debian-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;232&quot; data-original-width=&quot;480&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-o1UVlvio9q5UBuoiQzX6DvCLquGfAesdkSQLrT0rwz0aD7kRGl1QJ6imrlsLXGWoKLC5ViS94p3mb9cbvN6rwXz6HV0JcA7Eo3BVagZ3DkTVyXGaOP6m7DfGzl-7PVw4i08OxA/s320/debian-logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/6526963355958564937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/6526963355958564937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/6526963355958564937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/6526963355958564937'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/04/rlwrap-readline-share-library-missing-libreadline-so-6-cannot-open-shared-object-file.html' title='libreadline.so.6: cannot open shared object file: No such file or directory'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-o1UVlvio9q5UBuoiQzX6DvCLquGfAesdkSQLrT0rwz0aD7kRGl1QJ6imrlsLXGWoKLC5ViS94p3mb9cbvN6rwXz6HV0JcA7Eo3BVagZ3DkTVyXGaOP6m7DfGzl-7PVw4i08OxA/s72-c/debian-logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-5612586405015177252</id><published>2020-04-09T14:01:00.002+08:00</published><updated>2020-04-09T14:01:53.298+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>SSH: How to log in using Password only and ignore ssh keys</title><content type='html'>&lt;div&gt;
When I first discovered the magic of passwordless SSH login using ssh keys, I was thrilled with the convenience of logging in directly. But sometimes we do &lt;b&gt;not&lt;/b&gt; want to use ssh keypairs to log in. Perhaps there are different sets of hosts using different keys - in this case, setting up &lt;kbd&gt;~/.ssh/config&lt;/kbd&gt; with matching key/host is the way to go. Or perhaps you want to troubleshooting password authentication issue.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Password Authentication &lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
Using the &lt;kbd&gt;PreferredAuthentication&lt;/kbd&gt; option should work&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sh&quot;&gt;&lt;code&gt;
ssh -o PreferredAuthentications=password hostname


&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Unfortunately it sometimes does not work. The remote host may have preferred SSH keys when available. Or the remote hosts&#39; SSH client configuration prefers SSH key. &lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The following options should ensure that only Password authentication is used&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-sh&quot;&gt;&lt;code&gt;
ssh -o PasswordAuthentication=yes -o PreferredAuthentications=keyboard-interactive,password -o PubkeyAuthentication=no hostname


&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAvGeBXrsM_xluhfjZbkosO3ii4l9nWn4lFdJFKU543MqYpXNQ9LO9gXxuePhPiWmlE4rGyoabA9rEF7uvnKyt4vXQhYVsFLZPLZzJWOcQuHVkdf3LJWpgfqY0iQr-s7GkFrFT-Q/s1600/ssh_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;409&quot; data-original-width=&quot;522&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAvGeBXrsM_xluhfjZbkosO3ii4l9nWn4lFdJFKU543MqYpXNQ9LO9gXxuePhPiWmlE4rGyoabA9rEF7uvnKyt4vXQhYVsFLZPLZzJWOcQuHVkdf3LJWpgfqY0iQr-s7GkFrFT-Q/s320/ssh_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/5612586405015177252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/5612586405015177252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/5612586405015177252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/5612586405015177252'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/04/ssh-how-to-log-in-using-password-only.html' title='SSH: How to log in using Password only and ignore ssh keys'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAvGeBXrsM_xluhfjZbkosO3ii4l9nWn4lFdJFKU543MqYpXNQ9LO9gXxuePhPiWmlE4rGyoabA9rEF7uvnKyt4vXQhYVsFLZPLZzJWOcQuHVkdf3LJWpgfqY0iQr-s7GkFrFT-Q/s72-c/ssh_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-884856937712720158</id><published>2020-03-25T11:57:00.001+08:00</published><updated>2020-03-25T11:57:05.739+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pip"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Python error: invalid command &#39;bdist_wheel&#39;</title><content type='html'>I was trying to install&amp;nbsp;&lt;a href=&quot;https://github.com/thombashi/sqlitebiter&quot;&gt;https://github.com/thombashi/sqlitebiter&lt;/a&gt; and ran into this error&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&amp;nbsp; error: invalid command &#39;bdist_wheel&#39;


&lt;/pre&gt;
&lt;br /&gt;
&lt;h2&gt;
Solution&lt;/h2&gt;
Install the &lt;a href=&quot;https://pypi.org/project/wheel/&quot;&gt;wheel Python package&lt;/a&gt; to solve the problem&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&amp;nbsp;$ pip3 install wheel
Collecting wheel
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.34.2


&lt;/pre&gt;
&lt;br /&gt;
&lt;h2&gt;
Why&lt;/h2&gt;
The Python package that you are installing needs to run&lt;br /&gt;
&lt;br /&gt;
python3 setup.py bdist_wheel&lt;br /&gt;
&lt;br /&gt;
When the wheel package is missing, this is what you see&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;$ pip3 install --user sqlitebiter
Collecting sqlitebiter
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/e3/6e/5fa8df113446e25455ccda73d6b9abccee60b754bf01b2c6285d108750dc/sqlitebiter-0.31.0-py3-none-any.whl
Collecting pathvalidate&amp;lt;3,&amp;gt;=2.1.0 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/08/af/0d99785427f6e36f958bf05dc7e058ec1031ce7b478216d818bf61bac657/pathvalidate-2.2.1-py3-none-any.whl
Collecting loguru&amp;lt;1,&amp;gt;=0.4.1 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/b2/f4/2c8b94025c6e30bdb331c7ee628dc152771845aedff35f0365c2a4dacd42/loguru-0.4.1-py3-none-any.whl (54kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 61kB 2.1MB/s
Collecting colorama&amp;lt;1,&amp;gt;=0.3.7 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Collecting appconfigpy&amp;lt;2,&amp;gt;=0.4.0 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/f5/fa/ac0ba73728948436e7dae3e235b0fc06f4db836038537a58dd207f6b3dcf/appconfigpy-1.0.1-py3-none-any.whl
Collecting msgfy&amp;lt;1,&amp;gt;=0.0.6 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/af/a1/2c98ebd88ee88d300a3eedd41e5b8c2781bf7d39ecf56abf91dd93721711/msgfy-0.0.7-py2.py3-none-any.whl
Collecting setuptools&amp;gt;=38.3.0 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/1e/32/69e6ce8502a12af0cdcbb8de91f1cbafd4533f84d8fe17bf712f6200f21b/setuptools-46.1.1-py3-none-any.whl (582kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 583kB 1.7MB/s
Collecting pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0 (from sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/d4/36/3c986cf8d2f6c8e1372b11e10abb02cdb0a25549b8569c01bf10eafe9f5b/pytablereader-0.28.0-py3-none-any.whl
Collecting nbformat&amp;lt;6,&amp;gt;=4.4.0 (from sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/ac/eb/de575b7a64e7ab8d8c95e4c180ccc36deda3f1379186c4ee7adf6c2f1586/nbformat-5.0.4-py3-none-any.whl
Collecting simplejson&amp;lt;4,&amp;gt;=3.8.1 (from sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/98/87/a7b98aa9256c8843f92878966dc3d8d914c14aad97e2c5ce4798d5743e07/simplejson-3.17.0.tar.gz
Collecting path.py&amp;lt;13 (from sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/a5/0d/4caee829b04e3113b7069fa52063bce5c78e374e05850aa893549e917a1a/path.py-12.4.0-py3-none-any.whl
Collecting typepy&amp;lt;2,&amp;gt;=0.6.6 (from sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/54/e8/e11b753cced190dd2e3decc1697a5fed3325e94f4e9c4ef20ff7936948ec/typepy-0.6.6-py2.py3-none-any.whl
Collecting SimpleSQLite&amp;lt;2,&amp;gt;=1.0.1 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/76/3f/0f928c322df10a014750ad04f503b515b1bc7d3d339c478462cb25f59384/SimpleSQLite-1.0.1-py3-none-any.whl
Collecting retryrequests&amp;lt;1,&amp;gt;=0.0.2 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/9c/0e/a61a2c47684922c4d0878c323803d332f8a2509ac8490e25b0e19448b026/retryrequests-0.0.3-py2.py3-none-any.whl
Collecting click&amp;lt;8,&amp;gt;=6.2 (from sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/dd/c0/4d8f43a9b16e289f36478422031b8a63b54b6ac3b1ba605d602f10dd54d6/click-7.1.1-py2.py3-none-any.whl (82kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 92kB 3.6MB/s
Collecting aiocontextvars&amp;gt;=0.2.0; python_version &amp;lt; &quot;3.7&quot; (from loguru&amp;lt;1,&amp;gt;=0.4.1-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/db/c1/7a723e8d988de0a2e623927396e54b6831b68cb80dce468c945b849a9385/aiocontextvars-0.2.2-py2.py3-none-any.whl
Collecting jsonschema&amp;lt;4,&amp;gt;=2.5.1 (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 61kB 2.8MB/s
Collecting beautifulsoup4&amp;lt;5,&amp;gt;=4.4.1 (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/cb/a1/c698cf319e9cfed6b17376281bd0efc6bfc8465698f54170ef60a485ab5d/beautifulsoup4-4.8.2-py3-none-any.whl (106kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 112kB 3.5MB/s
Collecting mbstrdecoder&amp;lt;2,&amp;gt;=0.8.3 (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/d1/bb/06a26dcda7404b4387e72317961f50cbadcd91d5d12eb27b4701313cff6f/mbstrdecoder-0.8.4-py2.py3-none-any.whl
Collecting tabledata&amp;lt;2,&amp;gt;=0.10.3 (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/56/8e/6a1cd2c4f0004d3fb658dc1bd6597e9b583011935f5aee4b96318ef34290/tabledata-1.1.0-py3-none-any.whl
Collecting DataProperty&amp;lt;2,&amp;gt;=0.46.3 (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/a7/db/251fdaeabd3bdfcff69e6558a0c8986ba07e2cee7099d962930e67944d35/DataProperty-0.46.4-py2.py3-none-any.whl
Collecting excelrd&amp;gt;=2.0.2; extra == &quot;excel&quot; (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/78/3e/d7be8ffa1a2726c65e379b5b485442546e3654455a3ff701f11c45a47a91/excelrd-2.0.3-py3-none-any.whl (105kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 112kB 4.2MB/s
Collecting Markdown&amp;lt;3,&amp;gt;=2.6.6; extra == &quot;md&quot; (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 81kB 3.7MB/s
Collecting requests&amp;lt;3,&amp;gt;=2.18.4; extra == &quot;url&quot; (from pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 61kB 3.0MB/s
Collecting ipython-genutils (from nbformat&amp;lt;6,&amp;gt;=4.4.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting jupyter-core (from nbformat&amp;lt;6,&amp;gt;=4.4.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/63/0d/df2d17cdf389cea83e2efa9a4d32f7d527ba78667e0153a8e676e957b2f7/jupyter_core-4.6.3-py2.py3-none-any.whl (83kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 92kB 3.6MB/s
Collecting traitlets&amp;gt;=4.1 (from nbformat&amp;lt;6,&amp;gt;=4.4.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/ca/ab/872a23e29cec3cf2594af7e857f18b687ad21039c1f9b922fac5b9b142d5/traitlets-4.3.3-py2.py3-none-any.whl (75kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 81kB 3.7MB/s
Collecting path&amp;lt;13.2 (from path.py&amp;lt;13-&amp;gt;sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/4d/24/5827e075036b5bb6b538f71bf39574d4a8024c5df51206cb9d6739e24d94/path-13.1.0-py3-none-any.whl
Collecting six&amp;lt;2,&amp;gt;=1.10.0 (from typepy&amp;lt;2,&amp;gt;=0.6.6-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting sqliteschema&amp;lt;2,&amp;gt;=0.17.4 (from SimpleSQLite&amp;lt;2,&amp;gt;=1.0.1-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/00/e4/6a72614e477a62a3a7bc7f36e24475f25b7615a7289da67b6dcf4a73cebe/sqliteschema-1.0.1-py3-none-any.whl
Collecting contextvars==2.4; python_version &amp;lt; &quot;3.7&quot; (from aiocontextvars&amp;gt;=0.2.0; python_version &amp;lt; &quot;3.7&quot;-&amp;gt;loguru&amp;lt;1,&amp;gt;=0.4.1-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/83/96/55b82d9f13763be9d672622e1b8106c85acb83edd7cc2fa5bc67cd9877e9/contextvars-2.4.tar.gz
Collecting importlib-metadata; python_version &amp;lt; &quot;3.8&quot; (from jsonschema&amp;lt;4,&amp;gt;=2.5.1-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/8b/03/a00d504808808912751e64ccf414be53c29cad620e3de2421135fcae3025/importlib_metadata-1.5.0-py2.py3-none-any.whl
Collecting attrs&amp;gt;=17.4.0 (from jsonschema&amp;lt;4,&amp;gt;=2.5.1-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting pyrsistent&amp;gt;=0.14.0 (from jsonschema&amp;lt;4,&amp;gt;=2.5.1-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/9f/0d/cbca4d0bbc5671822a59f270e4ce3f2195f8a899c97d0d5abb81b191efb5/pyrsistent-0.16.0.tar.gz (108kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 112kB 4.0MB/s
Collecting soupsieve&amp;gt;=1.2 (from beautifulsoup4&amp;lt;5,&amp;gt;=4.4.1-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/05/cf/ea245e52f55823f19992447b008bcbb7f78efc5960d77f6c34b5b45b36dd/soupsieve-2.0-py2.py3-none-any.whl
Collecting chardet&amp;lt;4,&amp;gt;=3.0.4 (from mbstrdecoder&amp;lt;2,&amp;gt;=0.8.3-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 143kB 3.6MB/s
Collecting idna&amp;lt;3,&amp;gt;=2.5 (from requests&amp;lt;3,&amp;gt;=2.18.4; extra == &quot;url&quot;-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 61kB 3.0MB/s
Collecting urllib3!=1.25.0,!=1.25.1,&amp;lt;1.26,&amp;gt;=1.21.1 (from requests&amp;lt;3,&amp;gt;=2.18.4; extra == &quot;url&quot;-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 133kB 3.9MB/s
Collecting certifi&amp;gt;=2017.4.17 (from requests&amp;lt;3,&amp;gt;=2.18.4; extra == &quot;url&quot;-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 163kB 3.7MB/s
Collecting decorator (from traitlets&amp;gt;=4.1-&amp;gt;nbformat&amp;lt;6,&amp;gt;=4.4.0-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Collecting immutables&amp;gt;=0.9 (from contextvars==2.4; python_version &amp;lt; &quot;3.7&quot;-&amp;gt;aiocontextvars&amp;gt;=0.2.0; python_version &amp;lt; &quot;3.7&quot;-&amp;gt;loguru&amp;lt;1,&amp;gt;=0.4.1-&amp;gt;sqlitebiter)
&amp;nbsp; Downloading https://files.pythonhosted.org/packages/62/cc/3961b18a1a689a7e3232d923a8546cb901c49b4a33be6987c03a89175c4f/immutables-0.11-cp36-cp36m-manylinux1_x86_64.whl (92kB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% |████████████████████████████████| 102kB 4.5MB/s
Collecting zipp&amp;gt;=0.5 (from importlib-metadata; python_version &amp;lt; &quot;3.8&quot;-&amp;gt;jsonschema&amp;lt;4,&amp;gt;=2.5.1-&amp;gt;pytablereader[excel,md,sqlite,url]&amp;lt;2,&amp;gt;=0.28.0-&amp;gt;sqlitebiter)
&amp;nbsp; Using cached https://files.pythonhosted.org/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl
Building wheels for collected packages: simplejson, contextvars, pyrsistent
&amp;nbsp; Running setup.py bdist_wheel for simplejson ... error
&amp;nbsp; Complete output from command /usr/bin/python3 -u -c &quot;import setuptools, tokenize;__file__=&#39;/tmp/pip-build-h9yib_fx/simplejson/setup.py&#39;;f=getattr(tokenize, &#39;open&#39;, open)(__file__);code=f.read().replace(&#39;\r\n&#39;, &#39;\n&#39;);f.close();exec(compile(code, __file__, &#39;exec&#39;))&quot; bdist_wheel -d /tmp/tmp7b6yj0eypip-wheel- --python-tag cp36:
&amp;nbsp; usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c --help [cmd1 cmd2 ...]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c --help-commands
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c cmd --help

&amp;nbsp; error: invalid command &#39;bdist_wheel&#39;

&amp;nbsp; ----------------------------------------
&amp;nbsp; Failed building wheel for simplejson
&amp;nbsp; Running setup.py clean for simplejson
&amp;nbsp; Running setup.py bdist_wheel for contextvars ... error
&amp;nbsp; Complete output from command /usr/bin/python3 -u -c &quot;import setuptools, tokenize;__file__=&#39;/tmp/pip-build-h9yib_fx/contextvars/setup.py&#39;;f=getattr(tokenize, &#39;open&#39;, open)(__file__);code=f.read().replace(&#39;\r\n&#39;, &#39;\n&#39;);f.close();exec(compile(code, __file__, &#39;exec&#39;))&quot; bdist_wheel -d /tmp/tmpzbq6a04jpip-wheel- --python-tag cp36:
&amp;nbsp; usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c --help [cmd1 cmd2 ...]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c --help-commands
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c cmd --help

&amp;nbsp; error: invalid command &#39;bdist_wheel&#39;

&amp;nbsp; ----------------------------------------
&amp;nbsp; Failed building wheel for contextvars
&amp;nbsp; Running setup.py clean for contextvars
&amp;nbsp; Running setup.py bdist_wheel for pyrsistent ... error
&amp;nbsp; Complete output from command /usr/bin/python3 -u -c &quot;import setuptools, tokenize;__file__=&#39;/tmp/pip-build-h9yib_fx/pyrsistent/setup.py&#39;;f=getattr(tokenize, &#39;open&#39;, open)(__file__);code=f.read().replace(&#39;\r\n&#39;, &#39;\n&#39;);f.close();exec(compile(code, __file__, &#39;exec&#39;))&quot; bdist_wheel -d /tmp/tmpunvvup5kpip-wheel- --python-tag cp36:
&amp;nbsp; /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: &#39;license_files&#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp; warnings.warn(msg)
&amp;nbsp; usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c --help [cmd1 cmd2 ...]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c --help-commands
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or: -c cmd --help

&amp;nbsp; error: invalid command &#39;bdist_wheel&#39;

&amp;nbsp; ----------------------------------------
&amp;nbsp; Failed building wheel for pyrsistent
&amp;nbsp; Running setup.py clean for pyrsistent
Failed to build simplejson contextvars pyrsistent
Installing collected packages: pathvalidate, immutables, contextvars, aiocontextvars, loguru, colorama, appconfigpy, setuptools, msgfy, zipp, importlib-metadata, attrs, six, pyrsistent, jsonschema, soupsieve, beautifulsoup4, path, path.py, chardet, mbstrdecoder, typepy, DataProperty, tabledata, excelrd, Markdown, sqliteschema, SimpleSQLite, idna, urllib3, certifi, requests, retryrequests, pytablereader, ipython-genutils, decorator, traitlets, jupyter-core, nbformat, simplejson, click, sqlitebiter
&amp;nbsp; Running setup.py install for contextvars ... done
&amp;nbsp; Running setup.py install for pyrsistent ... done
&amp;nbsp; Running setup.py install for simplejson ... done
Successfully installed DataProperty-0.46.4 Markdown-2.6.11 SimpleSQLite-1.0.1 aiocontextvars-0.2.2 appconfigpy-1.0.1 attrs-19.3.0 beautifulsoup4-4.8.2 certifi-2019.11.28 chardet-3.0.4 click-7.1.1 colorama-0.4.3 contextvars-2.4 decorator-4.4.2 excelrd-2.0.3 idna-2.9 immutables-0.11 importlib-metadata-1.5.0 ipython-genutils-0.2.0 jsonschema-3.2.0 jupyter-core-4.6.3 loguru-0.4.1 mbstrdecoder-0.8.4 msgfy-0.0.7 nbformat-5.0.4 path-13.1.0 path.py-12.4.0 pathvalidate-2.2.1 pyrsistent-0.16.0 pytablereader-0.28.0 requests-2.23.0 retryrequests-0.0.3 setuptools-46.1.1 simplejson-3.17.0 six-1.14.0 soupsieve-2.0 sqlitebiter-0.31.0 sqliteschema-1.0.1 tabledata-1.1.0 traitlets-4.3.3 typepy-0.6.6 urllib3-1.25.8 zipp-3.1.0


&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNi03qEDc-r7RoW9z5r8nLQv2jeMec5zXk53KgkXQjlFcvqnVbXzgxaJMzS5lvuSMc9Pn3whNY_A-jnlLJt5MNNCFL5gbDgIFI0bxCL0ZuZz1PzfdorZsklj4CCMWckPq8JogbpQ/s1600/python_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;379&quot; data-original-width=&quot;1280&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNi03qEDc-r7RoW9z5r8nLQv2jeMec5zXk53KgkXQjlFcvqnVbXzgxaJMzS5lvuSMc9Pn3whNY_A-jnlLJt5MNNCFL5gbDgIFI0bxCL0ZuZz1PzfdorZsklj4CCMWckPq8JogbpQ/s400/python_logo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/884856937712720158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/884856937712720158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/884856937712720158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/884856937712720158'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/03/python-error-invalid-command-bdist-wheel.html' title='Python error: invalid command &#39;bdist_wheel&#39;'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNi03qEDc-r7RoW9z5r8nLQv2jeMec5zXk53KgkXQjlFcvqnVbXzgxaJMzS5lvuSMc9Pn3whNY_A-jnlLJt5MNNCFL5gbDgIFI0bxCL0ZuZz1PzfdorZsklj4CCMWckPq8JogbpQ/s72-c/python_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen station, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.405954</georss:point><georss:box>14.454970499999998 75.09736 65.4990395 157.71454799999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-2574822425612022977</id><published>2020-02-27T01:47:00.002+08:00</published><updated>2020-02-27T01:49:09.828+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Windows Server: OpenSSH service does not start</title><content type='html'>I was trying to run OpenSSH server on a Windows Server and got the error&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
Windows could not start the sshd service on Local Computer.&lt;br /&gt;
&lt;br /&gt;
Error 1067: the process terminated unexpectedly.&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a &lt;a href=&quot;https://github.com/PowerShell/Win32-OpenSSH/issues/964&quot;&gt;screenshot of the error from the OpenSSH Github project&lt;/a&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9q1hGE8ZLOVc_CkpzCqgRf_vxoI3EONqolwFGorZmBCJlGQHaOpHP_ulo5sXo3wKyfoo8CF0BZZji6Tm6j0_jSRPeCIrB3CsqbtGEPmWqOy2HmsAjoTvXTGFHrFE_VM9-RKsvzA/s1600/openssh_windows_server_01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1132&quot; height=&quot;334&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9q1hGE8ZLOVc_CkpzCqgRf_vxoI3EONqolwFGorZmBCJlGQHaOpHP_ulo5sXo3wKyfoo8CF0BZZji6Tm6j0_jSRPeCIrB3CsqbtGEPmWqOy2HmsAjoTvXTGFHrFE_VM9-RKsvzA/s640/openssh_windows_server_01.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Error 1067 is not an error message specific to OpenSSH, but it is a generic error message from the Windows Services subsystem, when the executable for the service exit with an error. You will&amp;nbsp; to find out about the error message from OpenSSH&#39;s logs.&lt;br /&gt;
&lt;br /&gt;
OpenSSH has various level of verbosity for its logs. Due to the fact that a server could have hundreds if not thousands of connection attempts per day, logging is either turned off or at a low level of verbosity. Refer to &lt;a href=&quot;https://github.com/PowerShell/Win32-OpenSSH/wiki/Logging-Facilities&quot;&gt;OpenSSH for Windows&#39; logging section&lt;/a&gt; for more information on logging configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
File Permissions&lt;/h2&gt;
SSH users in Linux might have come across this error message&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
Permission denied (publickey).&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
Often times, the password and public key used is correct, yet the error message still appears. Unfortunately the debug messages from ssh does not indicate one of the cause of this error - the file permission for &quot;~/.ssh&quot; as well as the private key permissions, for example &quot;~/.ssh/id_rsa&quot;&lt;br /&gt;
&lt;br /&gt;
Some SSH files are critical for securing the identity of the client (user) or the server. SSH may refuse to connect, or SSH daemon refuse to start up if the permissions are too open.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
User Keys&lt;/h2&gt;
&lt;a href=&quot;https://man.openbsd.org/sshd&quot;&gt;The sshd manual explains file permissions requirements&lt;/a&gt; for the following user key files &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
~/.ssh/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This directory is the default location for all user-specific configuration and authentication information. There is no general requirement to keep the entire contents of this directory secret, but the recommended permissions are read/write/execute for the user, and not accessible by others.&lt;br /&gt;
&lt;br /&gt;
~/.ssh/authorized_keys&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used for logging in as this user. The format of this file is described above. The content of the file is not highly sensitive, but the recommended permissions are read/write for the user, and not accessible by others.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If this file, the ~/.ssh directory, or the user&#39;s home directory are writable by other users, then the file could be modified or replaced by unauthorized users. In this case, sshd will not allow it to be used unless the StrictModes option has been set to “no”.&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Server Host Key&lt;/h2&gt;
The SSH daemon also has host keys that uniquely and securely identifies the server. If the server is rebuilt or physically swapped, this is when you will see the remote host identification warning&lt;br /&gt;
&lt;code&gt;
&lt;br /&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;@&amp;nbsp;&amp;nbsp;&amp;nbsp; WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;br /&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;br /&gt;Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;br /&gt;It is also possible that a host key has just been changed.&lt;br /&gt;The fingerprint for the RSA key sent by the remote host is&lt;br /&gt;51:82:00:1c:7e:6f:ac:ac:de:f1:53:08:1c:7d:55:68.&lt;br /&gt;Please contact your system administrator.&lt;br /&gt;Add correct host key in /home/hanxuel/.ssh/known_hosts to get rid of this message.&lt;br /&gt;Offending RSA key in /home/hanxuel/.ssh/known_hosts:12&lt;br /&gt;RSA host key for 10.1.16.158 has changed and you have requested strict checking.&lt;br /&gt;Host key verification failed.&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
The host key is critical for the SSH server&#39;s security!&lt;br /&gt;
&lt;br /&gt;
On UNIX-like operating systems, the host key files need to be owned and readable by root only. From the sshd manual:&lt;br /&gt;
&lt;code&gt;
&lt;br /&gt;
/etc/ssh/ssh_host_ecdsa_key&lt;br /&gt;
/etc/ssh/ssh_host_ed25519_key&lt;br /&gt;
/etc/ssh/ssh_host_rsa_key&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; These files contain the private parts of the host keys. These files should only be owned by root, readable only by root, and not accessible to others. Note that sshd does not start if these files are group/world-accessible.&lt;br /&gt;
&lt;br /&gt;
/etc/ssh/ssh_host_ecdsa_key.pub&lt;br /&gt;
/etc/ssh/ssh_host_ed25519_key.pub&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
/etc/ssh/ssh_host_rsa_key.pub&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; These files contain the public parts of the host keys. These files should be world-readable but writable only by root. Their contents should match the respective private parts. These files are not really used for anything; they are provided for the convenience of the user so their contents can be copied to known hosts files. These files are created using ssh-keygen(1).&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Fixing OpenSSH Windows File Permissions&lt;/h2&gt;
How does the UNIX permissions map to Windows permission? This is where Windows permissions gets a bit tricky:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;UNIX root user generally maps to the System account and Administrator Group&lt;/li&gt;
&lt;li&gt;UNIX root also maps to Administrators and members of Administrator Group&lt;/li&gt;
&lt;li&gt;But when you log on to Windows, even if you are in Administrator Group, you do not have elevated permissions - you are a regular user&lt;/li&gt;
&lt;li&gt;There is files/folders permission inheritance, where unexpected users and groups have access&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
This &lt;a href=&quot;https://github.com/PowerShell/Win32-OpenSSH/wiki/Security-protection-of-various-files-in-Win32-OpenSSH&quot;&gt;Wiki article from OpenSSH for Windows Github project explains in more detail&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
File permission problems for OpenSSH on Windows is common enough that the project released two PowerShell scripts to check and fix file permissions:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;FixUserFilePermissions.ps1&lt;/li&gt;
&lt;li&gt;FixHostFilePermissions.ps1&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;/h2&gt;
&lt;h3&gt;
Fix User Permissions&lt;/h3&gt;
This script will fix errors when you are using ssh.exe to &lt;i&gt;connect to a remote server&lt;/i&gt;. Generally speaking, they do not affect the sshd.exe daemon.&lt;br /&gt;
&lt;br /&gt;
Running the script will fix the permissions of any private key found in your %USERPROFILE%\.ssh directory&lt;br /&gt;
&lt;br /&gt;
PS C:\Windows\OpenSSH&amp;gt; .\FixUserFilePermissions.ps1&lt;br /&gt;
&amp;nbsp; [*] C:\Users\hanxuel\.ssh\id_rsa&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; looks good&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; [*] C:\Users\hanxuel\.ssh\id_rsa.pub&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; looks good&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Fix Server Permissions&lt;/h3&gt;
The other script will fix errors with the sshd.exe daemon. &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
&lt;br /&gt;PS C:\Windows\OpenSSH&amp;gt; .\FixHostFilePermissions.ps1&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\sshd_config&lt;br /&gt;&lt;br /&gt;Need to remove the inheritance before repair the rules.&lt;br /&gt;Shall I remove the inheritace?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;Inheritance is removed from &#39;C:\ProgramData\ssh\sshd_config&#39;.&lt;br /&gt;&lt;br /&gt;&#39;BUILTIN\Users&#39; should not have access to &#39;C:\ProgramData\ssh\sshd_config&#39;..&lt;br /&gt;Shall I remove this access?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;BUILTIN\Users&#39; has no more access to &#39;C:\ProgramData\ssh\sshd_config&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_dsa_key&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_dsa_key&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; should not have access to &#39;C:\ProgramData\ssh\ssh_host_dsa_key&#39;..&lt;br /&gt;Shall I remove this access?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; has no more access to &#39;C:\ProgramData\ssh\ssh_host_dsa_key&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_dsa_key.pub&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_dsa_key.pub&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; has the following access to &#39;C:\ProgramData\ssh\ssh_host_dsa_key.pub&#39;: &#39;Modify, Synchronize&#39;.&lt;br /&gt;Shall I make it Read only?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; now has Read access to &#39;C:\ProgramData\ssh\ssh_host_dsa_key.pub&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_ecdsa_key&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_ecdsa_key&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; should not have access to &#39;C:\ProgramData\ssh\ssh_host_ecdsa_key&#39;..&lt;br /&gt;Shall I remove this access?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; has no more access to &#39;C:\ProgramData\ssh\ssh_host_ecdsa_key&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_ecdsa_key.pub&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_ecdsa_key.pub&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; has the following access to &#39;C:\ProgramData\ssh\ssh_host_ecdsa_key.pub&#39;: &#39;Modify, Synchronize&#39;.&lt;br /&gt;Shall I make it Read only?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; now has Read access to &#39;C:\ProgramData\ssh\ssh_host_ecdsa_key.pub&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_ed25519_key&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_ed25519_key&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; should not have access to &#39;C:\ProgramData\ssh\ssh_host_ed25519_key&#39;..&lt;br /&gt;Shall I remove this access?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; has no more access to &#39;C:\ProgramData\ssh\ssh_host_ed25519_key&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_ed25519_key.pub&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_ed25519_key.pub&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; has the following access to &#39;C:\ProgramData\ssh\ssh_host_ed25519_key.pub&#39;: &#39;Modify, Synchronize&#39;.&lt;br /&gt;Shall I make it Read only?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; now has Read access to &#39;C:\ProgramData\ssh\ssh_host_ed25519_key.pub&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_rsa_key&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_rsa_key&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; should not have access to &#39;C:\ProgramData\ssh\ssh_host_rsa_key&#39;..&lt;br /&gt;Shall I remove this access?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; has no more access to &#39;C:\ProgramData\ssh\ssh_host_rsa_key&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\ProgramData\ssh\ssh_host_rsa_key.pub&lt;br /&gt;&lt;br /&gt;Current owner: &#39;CORP\hanxuel&#39;. &#39;NT AUTHORITY\SYSTEM&#39; should own &#39;C:\ProgramData\ssh\ssh_host_rsa_key.pub&#39;.&lt;br /&gt;Shall I set the file owner?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&lt;br /&gt;&#39;CORP\hanxuel&#39; has the following access to &#39;C:\ProgramData\ssh\ssh_host_rsa_key.pub&#39;: &#39;Modify, Synchronize&#39;.&lt;br /&gt;Shall I make it Read only?&lt;br /&gt;[Y] Yes&amp;nbsp; [A] Yes to All&amp;nbsp; [N] No&amp;nbsp; [L] No to All&amp;nbsp; [S] Suspend&amp;nbsp; [?] Help (default is &quot;Y&quot;): y&lt;br /&gt;&#39;CORP\hanxuel&#39; now has Read access to &#39;C:\ProgramData\ssh\ssh_host_rsa_key.pub&#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repaired permissions&lt;br /&gt;&lt;br /&gt;&amp;nbsp; [*] C:\Users\hanxuel\.ssh\authorized_keys&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; looks good&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Done.&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
Try restarting the OpenSSH Windows service again and it should now start up correctly.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPcgoQRSsJwko7qvrIZOjGufaHsKrDI6VTi6FOGUm9KMztZKBwDG3H2FFAaDSlY5-yVPv5xBoGnIM76a0o3Kc-2hFr_sFAweIjVwaMwqnr0ezmAibyStSBCmPT1RfjxdgrwmqYQ/s1600/ssh_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;409&quot; data-original-width=&quot;522&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRPcgoQRSsJwko7qvrIZOjGufaHsKrDI6VTi6FOGUm9KMztZKBwDG3H2FFAaDSlY5-yVPv5xBoGnIM76a0o3Kc-2hFr_sFAweIjVwaMwqnr0ezmAibyStSBCmPT1RfjxdgrwmqYQ/s320/ssh_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/2574822425612022977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/2574822425612022977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2574822425612022977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2574822425612022977'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/02/windows-server-openssh-service-does-not.html' title='Windows Server: OpenSSH service does not start'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9q1hGE8ZLOVc_CkpzCqgRf_vxoI3EONqolwFGorZmBCJlGQHaOpHP_ulo5sXo3wKyfoo8CF0BZZji6Tm6j0_jSRPeCIrB3CsqbtGEPmWqOy2HmsAjoTvXTGFHrFE_VM9-RKsvzA/s72-c/openssh_windows_server_01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-1636455791687866654</id><published>2020-02-26T19:50:00.002+08:00</published><updated>2020-02-26T19:50:33.531+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Docker Desktop: no matching manifest for windows/amd64</title><content type='html'>I was &lt;a href=&quot;https://docs.docker.com/docker-for-windows/&quot;&gt;using Docker Desktop for Windows&lt;/a&gt; and building a Docker image based on Ubuntu 18.04 when I got this error:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ docker build --no-cache --build-arg &quot;host_uid=$(id -u)&quot; --build-arg &quot;host_gid=$(id -g)&quot; --tag &quot;my-image:latest&quot; .
Sending build context to Docker daemon&amp;nbsp; 3.072kB
Step 1/17 : FROM ubuntu:18.04
18.04: Pulling from library/ubuntu
no matching manifest for windows/amd64 10.0.17134 in the manifest list entries


&lt;/code&gt;&lt;/pre&gt;
The content of the Dockerfile is irrelevant. Docker could not pull the Ubuntu 18.04 image. Here is the full Dockerfile content anyway:


&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
FROM ubuntu:18.04
RUN apt-get update &amp;amp;&amp;amp; apt-get -y install gawk wget git-core \
&amp;nbsp;&amp;nbsp;&amp;nbsp; diffstat unzip texinfo gcc-multilib build-essential \
&amp;nbsp;&amp;nbsp;&amp;nbsp; chrpath socat cpio python python3 python3-pip \
&amp;nbsp;&amp;nbsp;&amp;nbsp; python3-pexpect xz-utils debianutils iputils-ping \
&amp;nbsp;&amp;nbsp;&amp;nbsp; libsdl1.2-dev xterm tar locales
RUN rm /bin/sh &amp;amp;&amp;amp; ln -s bash /bin/sh
RUN locale-gen en_US.UTF-8 &amp;amp;&amp;amp; update-locale LC_ALL=en_US.UTF-8 \
&amp;nbsp;&amp;nbsp;&amp;nbsp; LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV USER_NAME cuteradio
ENV PROJECT cuteradio

ARG host_uid=1001
ARG host_gid=1001
RUN groupadd -g $host_gid $USER_NAME &amp;amp;&amp;amp; \
&amp;nbsp;&amp;nbsp;&amp;nbsp; useradd -g $host_gid -m -s /bin/bash -u $host_uid $USER_NAME
USER $USER_NAME

ENV BUILD_INPUT_DIR /home/$USER_NAME/yocto/input
ENV BUILD_OUTPUT_DIR /home/$USER_NAME/yocto/output
RUN mkdir -p $BUILD_INPUT_DIR $BUILD_OUTPUT_DIR &amp;amp;&amp;amp; \
&amp;nbsp;&amp;nbsp;&amp;nbsp; cd $BUILD_INPUT_DIR &amp;amp;&amp;amp; \
&amp;nbsp;&amp;nbsp;&amp;nbsp; git clone --recurse-submodules https://github.com/bstubert/$PROJECT.git
ENV TEMPLATECONF=$BUILD_INPUT_DIR/$PROJECT/sources/meta-$PROJECT/custom
CMD [&quot;source&quot;, &quot;$BUILD_INPUT_DIR/$PROJECT/sources/poky/oe-init-build-env&quot;, \
&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;build&quot;, &quot;&amp;amp;&amp;amp;&quot;, &quot;bitbake&quot;, &quot;$PROJECT-image&quot;]



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Linux Containers vs Windows Containers&lt;/h2&gt;
Turns out the &lt;a href=&quot;https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers&quot;&gt;default setting for Docker Desktop for Windows is to use Windows container&lt;/a&gt;. Having re-installed my laptop from scratch and re-install Docker Desktop, I did not notice that Windows container is being used.&lt;br /&gt;
&lt;br /&gt;
The &lt;a href=&quot;https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers&quot;&gt;Docker documentation&lt;/a&gt; should be clear enough, otherwise refer to &lt;a href=&quot;https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/index&quot;&gt;Microsoft&#39;s documentation on Windows containers&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In most cases, you should be &lt;span style=&quot;background-color: yellow;&quot;&gt;using Linux Containers even on Windows&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
Use Windows containers only when you need the functionalities that is otherwise not available on Linux containers. For example, building Windows Server containers, or running .NET Docker images that has dependencies to run on Windows Containers.&lt;br /&gt;
&lt;br /&gt;
On the flip side:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Most Docker images are built on Linux hosts, and upon Linux images&lt;/li&gt;
&lt;li&gt;Docker Linux images use features in Linux containers not available on Windows containers&lt;/li&gt;
&lt;li&gt;Some advanced networking and filesystem features only available on Linux containers&lt;/li&gt;
&lt;/ul&gt;
The idea of using Docker is to have simple-to-replicate environment. Most development environment uses Ubuntu, Redhat Enterprise Linux or CentOS hosts, and uses Ubuntu Linux images. Stay with the most common denominators to avoid configuration mismatch and dependency errors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Switch to Linux Containers&lt;/h2&gt;
&amp;nbsp;When Docker Desktop is up and running, right-click on the Docker icon in the Notification Area, and click on &lt;b&gt;&quot;Switch to Linux containers...&quot;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJCr-ZFsO-CzK6SSVIMzapjYUgr2dnJk2lQADqS833WrRaAXtbraYwPga3QnN5ZMWGz-otFSOX9CtLv69U-CUh0kBU1kPZGKX1sHInGlNDgJmg88N263Tz9Rnq1CNwhZ0JD5DIbQ/s1600/Docker_desktop_switch_to_Linux_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;267&quot; data-original-width=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJCr-ZFsO-CzK6SSVIMzapjYUgr2dnJk2lQADqS833WrRaAXtbraYwPga3QnN5ZMWGz-otFSOX9CtLv69U-CUh0kBU1kPZGKX1sHInGlNDgJmg88N263Tz9Rnq1CNwhZ0JD5DIbQ/s1600/Docker_desktop_switch_to_Linux_01.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
You will see a warning Window. Click on &lt;b&gt;Switch&lt;/b&gt; to proceed&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-8x_z2OjDLYeJJwOctkoFKpHy_i7XzvKFEhVNfzdviZ1OLDMuigHj_w-24gaXyUcjvj5GpV5LJ1UZ37Npyci3IqaUwbds9FRvFMtkVshLwse4a-t8Yjqa1ik2loGZopR8d4fi5g/s1600/Docker_desktop_switch_to_Linux_02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;297&quot; data-original-width=&quot;689&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-8x_z2OjDLYeJJwOctkoFKpHy_i7XzvKFEhVNfzdviZ1OLDMuigHj_w-24gaXyUcjvj5GpV5LJ1UZ37Npyci3IqaUwbds9FRvFMtkVshLwse4a-t8Yjqa1ik2loGZopR8d4fi5g/s1600/Docker_desktop_switch_to_Linux_02.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
After Docker Desktop has switched to Linux Container, try running your &lt;b&gt;docker&lt;/b&gt; command again&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ docker build --no-cache --build-arg &quot;host_uid=$(id -u)&quot; --build-arg &quot;host_gid=$(id -g)&quot; --tag &quot;my-image:latest&quot; .
Sending build context to Docker daemon&amp;nbsp; 3.072kB
Step 1/17 : FROM ubuntu:18.04
18.04: Pulling from library/ubuntu
423ae2b273f4: Pull complete
de83a2304fa1: Pull complete
f9a83bce3af0: Pull complete
b6b53be908de: Pull complete
Digest: sha256:04d48df82c938587820d7b6006f5071dbbffceb7ca01d2814f81857c631d44df
Status: Downloaded newer image for ubuntu:18.04



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Your Linux-based Docker image should be able to run now on Docker Desktop for Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRhTdKIbcfr00WTmPsyzCVeKVbU_ZNyEMO5olTAoV_Jd-Iaud1bb_mOSFcz-cxanIhFSAm9vrpp9vqD3-KwJ9nH96FWVVz5nU1JdNoFIxmiBZRNW6q6Ho7xofCfDBjg2ZH2o1Z6Q/s1600/Docker_desktop_switch_to_Linux_03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;604&quot; data-original-width=&quot;681&quot; height=&quot;566&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRhTdKIbcfr00WTmPsyzCVeKVbU_ZNyEMO5olTAoV_Jd-Iaud1bb_mOSFcz-cxanIhFSAm9vrpp9vqD3-KwJ9nH96FWVVz5nU1JdNoFIxmiBZRNW6q6Ho7xofCfDBjg2ZH2o1Z6Q/s640/Docker_desktop_switch_to_Linux_03.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIxM9Q6zS0jnbQXI4AE9Gg56NEG-dETTipadVrFvWLr_dvd2s6u6vLmjZEbQYROKvlmSSiWYM8mjDJpEaNDHo62aSsQQEk8QeGYnSwJpHi3YHH5QDnHNk1jhe3kWlH8IG45L-bdA/s1600/docker_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;269&quot; data-original-width=&quot;792&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIxM9Q6zS0jnbQXI4AE9Gg56NEG-dETTipadVrFvWLr_dvd2s6u6vLmjZEbQYROKvlmSSiWYM8mjDJpEaNDHo62aSsQQEk8QeGYnSwJpHi3YHH5QDnHNk1jhe3kWlH8IG45L-bdA/s640/docker_logo.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/1636455791687866654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/1636455791687866654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1636455791687866654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1636455791687866654'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/02/docker-desktop-no-matching-manifest-for.html' title='Docker Desktop: no matching manifest for windows/amd64'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJCr-ZFsO-CzK6SSVIMzapjYUgr2dnJk2lQADqS833WrRaAXtbraYwPga3QnN5ZMWGz-otFSOX9CtLv69U-CUh0kBU1kPZGKX1sHInGlNDgJmg88N263Tz9Rnq1CNwhZ0JD5DIbQ/s72-c/Docker_desktop_switch_to_Linux_01.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-664719247049667135</id><published>2020-02-13T21:58:00.003+08:00</published><updated>2020-02-13T23:57:04.344+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apt"/><category scheme="http://www.blogger.com/atom/ns#" term="opencv"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to install libjasper-dev on Ubuntu 18 and above</title><content type='html'>This is a commonly seen error when running OpenCV on Ubuntu Bionic 18.04&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
ImportError: libjasper.so.1: cannot open shared object file: No such file or directory


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
When you Google the error message, the most common solution given is to install &lt;kbd&gt;libjasper-dev&lt;/kbd&gt;. Unfortunately, libjasper-dev is not available on Ubuntu Bionic&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ apt-cache search libjasper
libjasperreports-java - Java reporting generator library


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h3&gt;
Background&lt;/h3&gt;
libjasper-dev was available on Ubuntu Xenial 16.04, so why has it been removed? Jasper was intentionally removed from Ubuntu and Debian from &lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812630&quot;&gt;this Debian bug report&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
------------------- Reason -------------------&lt;br /&gt;
RoQA; dead upstrem, replaced by openjpeg&lt;br /&gt;
----------------------------------------------&lt;/blockquote&gt;
&lt;br /&gt;
Some further explanation on the bug report&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Due to lack of time, I&#39;m looking for a new maintainer for this package. There was no upstream release since 2007. Although you can contact the original author, he doesn&#39;t seem to be actively working on jasper releases. There are alternative libraries in Debian, and maybe jasper should be completely replaced by other libraries since there were several security bugs in Debian due to jasper upstream code, and it&#39;s hard to work on them without upstream.&lt;/blockquote&gt;
&lt;br /&gt;
At the time of the bug report, there was no update to Jasper for 9 years. The Debian maintainer of the package decided to remove this package.&lt;br /&gt;
&lt;br /&gt;
Ubuntu is built on top of Debian, therefore Jasper has been unavailable in Ubuntu since 17.04.&lt;br /&gt;
&lt;br /&gt;
Jasper is still a needed dependency for OpenCV. Here are the options.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
OpenCV&#39;s bundled Jasper&lt;/h3&gt;
3rd-party dependency build issues is common enough that OpenCV bundles most dependencies, including Jasper. Use the bundled version of Jasper 1.900.1 with the CMake flag &lt;kbd&gt;WITH_JASPER&lt;/kbd&gt;.&lt;br /&gt;
&lt;br /&gt;
Here is an example&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
cd opencv-3.4.9/
mkdir build
cd build/
cmake -DWITH_JASPER=ON ..


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
cmake will report the build options once it has completed building. You should be able to see that the JPEG_2000 feature is enabled with version 1.900.1&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
--&amp;nbsp;&amp;nbsp; OpenCV modules:
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To be built:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calib3d core dnn features2d flann highgui imgcodecs imgproc ml objdetect photo shape stitching superres ts video videoio videostab
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disabled:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; world
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disabled by dependency:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unavailable:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java js python2 python3 viz
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applications:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tests perf_tests apps
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Documentation:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Non-free algorithms:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--
--&amp;nbsp;&amp;nbsp; GUI:
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GTK+:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VTK support:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--
--&amp;nbsp;&amp;nbsp; Media I/O:
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZLib:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JPEG:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libjpeg-turbo (ver 2.0.2-62)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WEBP:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build (ver encoder: 0x020e)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PNG:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build (ver 1.6.37)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIFF:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build (ver 42 - 4.0.10)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JPEG 2000:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build (ver 1.900.1)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenEXR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build (ver 2.3.0)
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HDR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YES
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUNRASTER:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YES
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PXM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YES
--
--&amp;nbsp;&amp;nbsp; Video I/O:
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DC1394:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FFMPEG:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avcodec:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avformat:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avutil:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; swscale:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avresample:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GStreamer:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libv4l/libv4l2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO
--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l/v4l2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux/videodev2.h


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
If this version of Jasper is too old, you can use your own Jasper. &lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Compile Jasper from Source&lt;/h3&gt;
Since Jasper is an &lt;a href=&quot;https://github.com/mdadams/jasper&quot;&gt;open source project and is available on Github&lt;/a&gt;, you can &lt;a href=&quot;https://github.com/mdadams/jasper/releases&quot;&gt;download the latest release&lt;/a&gt; and compile it.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
wget https://github.com/mdadams/jasper/archive/version-2.0.16.tar.gz -O jasper-version-2.0.16.tar.gz
tar xvf cd jasper-version-2.0.16.tar.gz
cd jasper-version-2.0.16/


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Let&#39;s first install all the required build tools&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
&amp;nbsp;sudo apt-get install build-essential cmake


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we can start building jasper&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
mkdir build 
export SOURCE_DIR=~/jasper-version-2.0.16
export BUILD_DIR=~/jasper-version-2.0.16/build
cd $BUILD_DIR
cmake -G &quot;Unix Makefiles&quot; -H$SOURCE_DIR -B$BUILD_DIR
cd $BUILD_DIR
make clean all
make test


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
The binaries are now built here&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
~/jasper-version-2.0.16/build$ ls src/appl/
CMakeFiles&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CTestTestfile.cmake&amp;nbsp; imginfo&amp;nbsp; jiv
cmake_install.cmake&amp;nbsp; imgcmp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jasper&amp;nbsp;&amp;nbsp; Makefile


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
The libraries are available at&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ ls src/libjasper/CMakeFiles&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libjasper.so.4.0.0
cmake_install.cmake&amp;nbsp; libjasper.so&amp;nbsp;&amp;nbsp;&amp;nbsp; Makefile
CTestTestfile.cmake&amp;nbsp; libjasper.so.4


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Note that if you want to install all the files into Ubuntu&#39;s standard path, you will need to have root or sudo permission. This is not recommended, as those files are installed without going through Ubuntu&#39;s package manager (apt / apt-get / aptitude), and you risk losing track of what applications and which versions have been installed. But if you are sure you know what you are doing&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo make install


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
libjasper-dev from Ubuntu Xenial&lt;/h3&gt;
Another alternative is to install libjasper-dev from an older release of Ubuntu, &lt;a href=&quot;https://packages.ubuntu.com/xenial/libjasper-dev&quot;&gt;libjasper-dev 1.900.1 from Ubuntu Xenial 16.04.&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Add the Xenial repository&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
echo “deb http://security.ubuntu.com/ubuntu xenial-security main” | sudo tee /etc/apt/sources.list.d/xenial.list


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Install Jasper &lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo apt update
sudo apt install libjasper1 libjasper-dev


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
After installation of Jasper, remember to remove the Xenial repository to prevent conflicts and errors&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo rm /etc/apt/sources.list.d/xenial.list
sudo apt update


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Note that this version of Jasper is very old, 1.900 released before 2016.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLc9CubWwG6QRhSBx6XWmALDA4ODggDKIjmyGTX31shE8iA1ym0FTxQdCqK6vz4LyuS05cortT1igK8NHci6wYnDPaeS3oSEjVH81LrxBO1USGSeYeYVt-bjS-kY6pFY1Q1eScGg/s1600/OpenCV_Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1478&quot; data-original-width=&quot;1200&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLc9CubWwG6QRhSBx6XWmALDA4ODggDKIjmyGTX31shE8iA1ym0FTxQdCqK6vz4LyuS05cortT1igK8NHci6wYnDPaeS3oSEjVH81LrxBO1USGSeYeYVt-bjS-kY6pFY1Q1eScGg/s320/OpenCV_Logo.png&quot; width=&quot;259&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/664719247049667135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/664719247049667135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/664719247049667135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/664719247049667135'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/02/how-to-install-libjasper-dev-on-ubuntu.html' title='How to install libjasper-dev on Ubuntu 18 and above'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLc9CubWwG6QRhSBx6XWmALDA4ODggDKIjmyGTX31shE8iA1ym0FTxQdCqK6vz4LyuS05cortT1igK8NHci6wYnDPaeS3oSEjVH81LrxBO1USGSeYeYVt-bjS-kY6pFY1Q1eScGg/s72-c/OpenCV_Logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen station, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.344282999999997 75.097360000000066 64.609726999999992 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-556505053503974166</id><published>2020-01-06T21:55:00.001+08:00</published><updated>2020-01-06T22:11:29.191+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>How to check SSH configuration before restarting sshd</title><content type='html'>Have you had the experience of changing your &lt;kbd&gt;/etc/ssh/sshd_config&lt;/kbd&gt; settings, restart sshd and found that you are no longer able to connect to your remote host? This is especially frustrating when you have no remote console access to the machine.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Always check your sshd_config settings before restarting the ssh daemon!&lt;/blockquote&gt;
&lt;br /&gt;
Having experienced that before with a cloud VM where I was left with no choice but to terminate that instance, I wish to avoid that experience.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Test sshd_config&lt;/h2&gt;
The sshd command has the &lt;kbd&gt;-t&lt;/kbd&gt; flag that will check your configuration file for any errors. Here is an example:&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo /usr/sbin/sshd -t
/etc/ssh/sshd_config line 89: unsupported option &quot;yup&quot;.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
The &lt;kbd&gt;sshd&lt;/kbd&gt; helpfully tells us the problem is in line 89. When we take a look at line 89:&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
GatewayPorts yup


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
the mistake is obvious. Change &lt;kbd&gt;yup&lt;/kbd&gt; to &lt;kbd&gt;yes&lt;/kbd&gt;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
GatewayPorts yes


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Just to be sure, let&#39;s test the configuration again.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo /usr/sbin/sshd -t
$


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Perfect! We can be assured that there isn&#39;t any mis-configuration that will prevent sshd from starting.&lt;br /&gt;
&lt;br /&gt;
The example above might not be the best. There are integer values that could be mistaken for Boolean option or vice-version. For example, setting &lt;kbd&gt;MaxSessions yes&lt;/kbd&gt; instead of &lt;kbd&gt;MaxSessions 20&lt;/kbd&gt;. That will cause sshd to fail to start. &lt;br /&gt;
&lt;h2&gt;
Restart sshd&lt;/h2&gt;
Restart the SSH daemon&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo systemctl restart ssh
$


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
There, the daemon is restarted with changes applied.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Existing SSH Connection&lt;/h2&gt;
Note that re-starting ssh daemon will &lt;b&gt;not&lt;/b&gt; disconnect existing ssh connections. Technically you can safely change the &lt;kbd&gt;sshd_config&lt;/kbd&gt; file, restart sshd. If sshd fails to start up, use the existing SSH connection to revert changes to &lt;kbd&gt;sshd_config&lt;/kbd&gt;.&lt;br /&gt;
&lt;br /&gt;
Why take the risk when you can use the &lt;kbd&gt;-t&lt;/kbd&gt; flag?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0jIeMWftLWI3c35_6e0EhA6oE8Z-XFs4y8l5YijRF6htgykthIwl1aEaSiXzK7B0JunLt9LZwTHqZ8q5-JM6C6rC03OdwHpNUY9WUb90ocIzTIlW4Vm_AoroddwtHYwR9vZ8pw/s1600/ssh_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;409&quot; data-original-width=&quot;522&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0jIeMWftLWI3c35_6e0EhA6oE8Z-XFs4y8l5YijRF6htgykthIwl1aEaSiXzK7B0JunLt9LZwTHqZ8q5-JM6C6rC03OdwHpNUY9WUb90ocIzTIlW4Vm_AoroddwtHYwR9vZ8pw/s1600/ssh_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/556505053503974166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/556505053503974166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/556505053503974166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/556505053503974166'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/01/how-to-check-ssh-configuration-before.html' title='How to check SSH configuration before restarting sshd'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0jIeMWftLWI3c35_6e0EhA6oE8Z-XFs4y8l5YijRF6htgykthIwl1aEaSiXzK7B0JunLt9LZwTHqZ8q5-JM6C6rC03OdwHpNUY9WUb90ocIzTIlW4Vm_AoroddwtHYwR9vZ8pw/s72-c/ssh_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Nan Luo Gu Xiang, Dongcheng Qu, Beijing Shi, China</georss:featurename><georss:point>39.9371015 116.40315169999997</georss:point><georss:box>39.9249265 116.38298169999997 39.949276499999996 116.42332169999996</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-2844359173250495209</id><published>2020-01-02T14:30:00.000+08:00</published><updated>2020-01-02T14:30:30.761+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>How to upload and download files using sftp in a single command</title><content type='html'>Usually we log in to an SFTP server, and then upload a file:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sftp username@sftpserver
username@sftpserver&#39;s password:
Connected to sftpserver.
sftp&amp;gt; put file.tar.gz



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Likewise, you first need to log in to the SFTP server, cd to the directory of the file location and download&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sftp username@sftpserver
hanxuel@ezmovexhd&#39;s password:
Connected to ezmovexhd.
sftp&amp;gt; cd pub
sftp&amp;gt; get file.tar.gz



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h2&gt;
Single Command Upload&lt;/h2&gt;
You can combine log on and upload with this command:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sftp username@sftpserver:/ &amp;lt;&amp;lt;&amp;lt;&amp;nbsp; $&#39;put file.tar.gz&#39;
username@sftpserver&#39;s password:
Connected to sftpserver.
Changing to: /
Uploading file.tar.gz to /put file.tar.gz
put file.tar.gz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp; 64MB&amp;nbsp;&amp;nbsp; 9.1MB/s&amp;nbsp;&amp;nbsp; 00:07



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Single Command Download&lt;/h2&gt;
Likewise, you can combine login and download to a single command&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sftp username@sftpserver:/file.tar.gz file.tar.gz
Connected to sftpserver.
Fetching /file.tar.gz to file.tar.gz
/file.tar.gz 100% 64MB 45.2MB/s 00:01



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Passwordless Login&lt;/h2&gt;
SFTP is built upon SSH. Therefore, you can use SSH &lt;a href=&quot;https://askubuntu.com/questions/46930/how-can-i-set-up-password-less-ssh-login&quot;&gt;public key authentication instead of typing in your password&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
ssh-keygen
ssh-copy-id -i username@sftpserver



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-r-Cjiu64MNRMWCqSoLnAoYgYEKCfVpcmV5VQEZ-irK-8XFrdRQcXcvA2F6BO_0kzQ9SDWyj4JxiqDGDUEGZn_bXcJgxx8IcHz9MVw7Y3aaFHL1o6x9LDWF4wlQXOW4TcJ5wEiQ/s1600/debian-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;232&quot; data-original-width=&quot;480&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-r-Cjiu64MNRMWCqSoLnAoYgYEKCfVpcmV5VQEZ-irK-8XFrdRQcXcvA2F6BO_0kzQ9SDWyj4JxiqDGDUEGZn_bXcJgxx8IcHz9MVw7Y3aaFHL1o6x9LDWF4wlQXOW4TcJ5wEiQ/s320/debian-logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/2844359173250495209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/2844359173250495209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2844359173250495209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2844359173250495209'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2020/01/how-to-upload-and-download-files-using-sftp-in-a-single-command.html' title='How to upload and download files using sftp in a single command'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-r-Cjiu64MNRMWCqSoLnAoYgYEKCfVpcmV5VQEZ-irK-8XFrdRQcXcvA2F6BO_0kzQ9SDWyj4JxiqDGDUEGZn_bXcJgxx8IcHz9MVw7Y3aaFHL1o6x9LDWF4wlQXOW4TcJ5wEiQ/s72-c/debian-logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.344313499999998 75.097360000000066 64.6096965 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-8011737083254390862</id><published>2019-12-30T18:30:00.000+08:00</published><updated>2020-01-02T13:39:00.290+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GCC"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu Bionic: Downgrade from GCC 7 to 4</title><content type='html'>I &lt;a href=&quot;https://flummox-engineering.blogspot.com/2019/12/how-to-install-gcc-7-on-ubuntu-1604.html&quot;&gt;wrote about installing GCC 7.x and setting the default version of GCC to 7.x on Ubuntu Bionic 18.04&lt;/a&gt;. What if you need to chanage the default version of GCC back to 4.x?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Install GCC Toolchain 4.8&lt;/h3&gt;
Ubuntu Bionic&#39;s default version of GCC is 7.4.0. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
hanxuel&amp;#64;xcdl190201 &amp;#126;&amp;#36; apt show gcc
Package&amp;#58; gcc
Version&amp;#58; 4&amp;#58;5&amp;#46;3&amp;#46;1&amp;#45;1ubuntu1
Priority&amp;#58; optional
Section&amp;#58; devel
Source&amp;#58; gcc&amp;#45;defaults &amp;#40;1&amp;#46;150ubuntu1&amp;#41;
Origin&amp;#58; Ubuntu
Maintainer&amp;#58; Ubuntu Developers &amp;#60;ubuntu&amp;#45;devel&amp;#45;discuss&amp;#64;lists&amp;#46;ubuntu&amp;#46;com&amp;#62;
Original&amp;#45;Maintainer&amp;#58; Debian GCC Maintainers &amp;#60;debian&amp;#45;gcc&amp;#64;lists&amp;#46;debian&amp;#46;org&amp;#62;
Bugs&amp;#58; https&amp;#58;&amp;#47;&amp;#47;bugs&amp;#46;launchpad&amp;#46;net&amp;#47;ubuntu&amp;#47;&amp;#43;filebug
Installed&amp;#45;Size&amp;#58; 45&amp;#46;1 kB
Provides&amp;#58; c&amp;#45;compiler
Depends&amp;#58; cpp &amp;#40;&amp;#62;&amp;#61; 4&amp;#58;5&amp;#46;3&amp;#46;1&amp;#45;1ubuntu1&amp;#41;&amp;#44; gcc&amp;#45;5 &amp;#40;&amp;#62;&amp;#61; 5&amp;#46;3&amp;#46;1&amp;#45;3&amp;#126;&amp;#41;
Recommends&amp;#58; libc6&amp;#45;dev &amp;#124; libc&amp;#45;dev
Suggests&amp;#58; gcc&amp;#45;multilib&amp;#44; make&amp;#44; manpages&amp;#45;dev&amp;#44; autoconf&amp;#44; automake&amp;#44; libtool&amp;#44; flex&amp;#44; bison&amp;#44; gdb&amp;#44; gcc&amp;#45;doc
Conflicts&amp;#58; gcc&amp;#45;doc &amp;#40;&amp;#60;&amp;#60; 1&amp;#58;2&amp;#46;95&amp;#46;3&amp;#41;
Task&amp;#58; ubuntu&amp;#45;desktop&amp;#44; ubuntu&amp;#45;usb&amp;#44; kubuntu&amp;#45;desktop&amp;#44; kubuntu&amp;#45;full&amp;#44; edubuntu&amp;#45;desktop&amp;#44; edubuntu&amp;#45;usb&amp;#44; xubuntu&amp;#45;core&amp;#44; xubuntu&amp;#45;desktop&amp;#44; mythbuntu&amp;#45;frontend&amp;#44; mythbuntu&amp;#45;desktop&amp;#44; mythbuntu&amp;#45;backend&amp;#45;slave&amp;#44; mythbuntu&amp;#45;backend&amp;#45;master&amp;#44; ubuntustudio&amp;#45;desktop&amp;#45;core&amp;#44; ubuntustudio&amp;#45;desktop&amp;#44; ubuntu&amp;#45;gnome&amp;#45;desktop&amp;#44; ubuntukylin&amp;#45;desktop
Build&amp;#45;Essential&amp;#58; yes
Supported&amp;#58; 5y
Download&amp;#45;Size&amp;#58; 5&amp;#44;244 B
APT&amp;#45;Manual&amp;#45;Installed&amp;#58; yes
APT&amp;#45;Sources&amp;#58; http&amp;#58;&amp;#47;&amp;#47;xcd&amp;#45;engyum&amp;#46;xilinx&amp;#46;com&amp;#47;ubuntu160405 xenial&amp;#47;main amd64 Packages
Description&amp;#58; GNU C compiler
 This is the GNU C compiler&amp;#44; a fairly portable optimizing compiler for C&amp;#46;
 &amp;#46;
 This is a dependency package providing the default GNU C compiler&amp;#46;



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
For GCC 4.x series, GCC 4.8.5 is available.&lt;br /&gt;
&lt;br /&gt;
You will need to install the following packages:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;gcc-4.8&lt;/li&gt;
&lt;li&gt;g++-4.8 &lt;/li&gt;
&lt;li&gt;libgcc-4.8-dev&lt;/li&gt;
&lt;li&gt;gcc-4.8-multilib&lt;/li&gt;
&lt;li&gt;gcc-ar-4.8&lt;/li&gt;
&lt;li&gt;gcc-nm-4.8&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Basically&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt-get install&amp;nbsp; gcc-4.8g++-4.8 libgcc-4.8-dev gcc-4.8-multilib gcc-ar-4.8 gcc-nm-4.8&lt;br /&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Next, we will be practically &lt;a href=&quot;https://flummox-engineering.blogspot.com/2019/12/how-to-install-gcc-7-on-ubuntu-1604.html&quot;&gt;undoing what we have done in the previous article&lt;/a&gt;. Setting the default version of GCC to 4.8&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Set Default GCC Version&lt;/h2&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo update-alternatives \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-4.8 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-4.8 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-4.8


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Check GCC version again&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ gcc --version&lt;
gcc (Ubuntu 4.8.5-4ubuntu8) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.&amp;nbsp; There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQEvRapQgKx3DdHpCWtL6gvWm1yf39XTyrA5W4XDjQi6DQT6zflhBEfyZ3hcevIhEh8g8-8x1GZyfwn5KPuWToI2K_RKtivi0eL4w2dorxU33qGWRXUXrl5BTPhhAYiN4AfyOjlg/s1600/ubuntu_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;814&quot; data-original-width=&quot;982&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQEvRapQgKx3DdHpCWtL6gvWm1yf39XTyrA5W4XDjQi6DQT6zflhBEfyZ3hcevIhEh8g8-8x1GZyfwn5KPuWToI2K_RKtivi0eL4w2dorxU33qGWRXUXrl5BTPhhAYiN4AfyOjlg/s320/ubuntu_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/8011737083254390862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/8011737083254390862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/8011737083254390862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/8011737083254390862'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/ubuntu-bionic-downgrade-from-gcc-7-to-4.html' title='Ubuntu Bionic: Downgrade from GCC 7 to 4'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQEvRapQgKx3DdHpCWtL6gvWm1yf39XTyrA5W4XDjQi6DQT6zflhBEfyZ3hcevIhEh8g8-8x1GZyfwn5KPuWToI2K_RKtivi0eL4w2dorxU33qGWRXUXrl5BTPhhAYiN4AfyOjlg/s72-c/ubuntu_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.344313999999997 75.097360000000066 64.609696 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-4395031414573913760</id><published>2019-12-27T21:36:00.000+08:00</published><updated>2019-12-28T10:10:10.840+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ansible"/><category scheme="http://www.blogger.com/atom/ns#" term="apt"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ansible : Depends: python-httplib2 but it is not going to be installed</title><content type='html'>While trying to &lt;a href=&quot;https://launchpad.net/~ansible/+archive/ubuntu/ansible&quot;&gt;install Ansible from the official PPA&lt;/a&gt; on Ubuntu 18.04, I got this error&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt-get install ansible
sudo: start_tls specified but LDAP libs do not support ldap_start_tls_s() or ldap_start_tls_s_np()
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
&amp;nbsp;ansible : Depends: python-httplib2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h2&gt;
Apt Fix Broken&lt;/h2&gt;
First, try the &lt;kbd&gt;-f&lt;/kbd&gt; or &lt;kbd&gt;--fix-broken&lt;/kbd&gt; option&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt-get install -f
sudo: start_tls specified but LDAP libs do not support ldap_start_tls_s() or ldap_start_tls_s_np()
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Nope, nothing is truly broken. &lt;br /&gt;
&lt;h2&gt;
Packages on Hold&lt;/h2&gt;
The initial apt command reports &quot;you have held broken packages&quot;. Let&#39;s see what are the packages that are being held. You can use &lt;kbd&gt;dpkg --get-selections&lt;/kbd&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ dpkg --get-selections | grep hold


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
or&amp;nbsp; &lt;kbd&gt;dpkg -l&lt;/kbd&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ dpkg -l | grep &quot;^hi&quot;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
or &lt;kbd&gt;apt-mark&lt;/kbd&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ apt-mark showhold


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
There are no packages held in the scenario that I am facing.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;/h2&gt;
&lt;h2&gt;
Show Up-gradable Packages&lt;/h2&gt;
Before changing anything further, it is worth getting all packages upgraded. Use aptitude&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ aptitude -F%p --disable-columns search ~U
cuda-nvjpeg-10-0
cuda-nvjpeg-dev-10-0
libvdpau1
libvulkan1
vdpau-driver-all


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
or apt-check&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ /usr/lib/update-notifier/apt-check -p; echo
libvulkan1
cuda-nvjpeg-10-0
libvdpau1
cuda-nvjpeg-dev-10-0
vdpau-driver-all


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Let&#39;s upgrade them&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt upgrade cuda-nvjpeg-10-0 cuda-nvjpeg-dev-10-0 libvdpau1 libvulkan1 vdpau-driver-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
&amp;nbsp; cuda-nvjpeg-10-0 cuda-nvjpeg-dev-10-0 libvdpau1 libvulkan1 vdpau-driver-all
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 139 kB/2,527 kB of archives.
After this operation, 7,001 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-0-local-nvjpeg-update-1&amp;nbsp; cuda-nvjpeg-10-0 10.0.130.1-1 [1,302 kB]
Get:2 file:/var/cuda-repo-10-0-local-nvjpeg-update-1&amp;nbsp; cuda-nvjpeg-dev-10-0 10.0.130.1-1 [1,086 kB]
Get:3 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 libvdpau1 amd64 1.3-0ubuntu0~gpu18.04.2 [29.3 kB]
Get:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 libvulkan1 amd64 1.1.126.0-2~gpu18.04.1 [101 kB]
Get:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 vdpau-driver-all amd64 1.3-0ubuntu0~gpu18.04.2 [8,392 B]
Fetched 139 kB in 5s (27.5 kB/s)
(Reading database ... 254639 files and directories currently installed.)
Preparing to unpack .../cuda-nvjpeg-10-0_10.0.130.1-1_amd64.deb ...
Unpacking cuda-nvjpeg-10-0 (10.0.130.1-1) over (10.0.130-1) ...
Preparing to unpack .../cuda-nvjpeg-dev-10-0_10.0.130.1-1_amd64.deb ...
Unpacking cuda-nvjpeg-dev-10-0 (10.0.130.1-1) over (10.0.130-1) ...
Preparing to unpack .../libvdpau1_1.3-0ubuntu0~gpu18.04.2_amd64.deb ...
Unpacking libvdpau1:amd64 (1.3-0ubuntu0~gpu18.04.2) over (1.1.1-3ubuntu1) ...
Preparing to unpack .../libvulkan1_1.1.126.0-2~gpu18.04.1_amd64.deb ...
Unpacking libvulkan1:amd64 (1.1.126.0-2~gpu18.04.1) over (1.1.70+dfsg1-1) ...
Preparing to unpack .../vdpau-driver-all_1.3-0ubuntu0~gpu18.04.2_amd64.deb ...
Unpacking vdpau-driver-all:amd64 (1.3-0ubuntu0~gpu18.04.2) over (1.1.1-3ubuntu1) ...
Setting up vdpau-driver-all:amd64 (1.3-0ubuntu0~gpu18.04.2) ...
Setting up libvulkan1:amd64 (1.1.126.0-2~gpu18.04.1) ...
Setting up cuda-nvjpeg-10-0 (10.0.130.1-1) ...
Setting up cuda-nvjpeg-dev-10-0 (10.0.130.1-1) ...
Setting up libvdpau1:amd64 (1.3-0ubuntu0~gpu18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h2&gt;
Use Aptitude&lt;/h2&gt;
Upgrading all packages did not solve the problem. Let&#39;s use Aptitude to install the package&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
e$ sudo aptitude install ansible
sudo: start_tls specified but LDAP libs do not support ldap_start_tls_s() or ldap_start_tls_s_np()
The following NEW packages will be installed:
&amp;nbsp; ansible python-asn1crypto{a} python-cffi-backend{a} python-crypto{a}
&amp;nbsp; python-cryptography{a} python-enum34{a} python-httplib2{a} python-idna{a}
&amp;nbsp; python-ipaddress{a} python-jinja2{a} python-markupsafe{a}
&amp;nbsp; python-paramiko{a} python-pkg-resources{a} python-setuptools{a}
&amp;nbsp; python-six{a} python-yaml{a} sshpass{a}
0 packages upgraded, 17 newly installed, 0 to remove and 5 not upgraded.
Need to get 7,310 kB of archives. After unpacking 66.0 MB will be used.
The following packages have unmet dependencies:
&amp;nbsp;libssl1.1 : Breaks: python-httplib2 (&amp;lt;= 0.9.2+dfsg-1) but 0.9.2+dfsg-1 is to be installed
The following actions will resolve these dependencies:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keep the following packages at their current version:
1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ansible [Not Installed]
2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python-httplib2 [Not Installed]



Accept this solution? [Y/n/q/?]


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Ah, now we can see what is the problem. &quot; libssl1.1&quot; needs a lower version of &quot;python-httplib2&quot;. The default option given by Aptitude will not install anything. Let&#39;s answer &quot;n&quot; and see what is the next option that Aptitude offers.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Downgrade the following packages:
1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curl [7.58.0-2ubuntu3.8 (now) -&amp;gt; 7.58.0-2ubuntu3.1 (bionic-updates)]
2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libcurl4 [7.58.0-2ubuntu3.8 (now) -&amp;gt; 7.58.0-2ubuntu3.1 (bionic-updates)]
3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libio-socket-ssl-perl [2.060-3~ubuntu18.04.1 (now) -&amp;gt; 2.056-1 (bionic)]
4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libmysqlclient20 [5.7.28-0ubuntu0.18.04.4 (now) -&amp;gt; 5.7.22-0ubuntu18.04.1
5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libnet-ssleay-perl [1.84-1ubuntu0.2 (now) -&amp;gt; 1.84-1build1 (bionic)]
6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libpython3.6 [3.6.8-1~18.04.3 (now) -&amp;gt; 3.6.5-3 (bionic)]
7)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libpython3.6-minimal [3.6.8-1~18.04.3 (now) -&amp;gt; 3.6.5-3 (bionic)]
8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libpython3.6-stdlib [3.6.8-1~18.04.3 (now) -&amp;gt; 3.6.5-3 (bionic)]
9)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libruby2.5 [2.5.1-1ubuntu1.6 (now) -&amp;gt; 2.5.1-1ubuntu1 (bionic)]
10)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libssl1.1 [1.1.1-1ubuntu2.1~18.04.5 (now) -&amp;gt; 1.1.0g-2ubuntu4 (bionic)]
11)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql-client-core-5.7 [5.7.28-0ubuntu0.18.04.4 (now) -&amp;gt; 5.7.22-0ubuntu18
12)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql-server-core-5.7 [5.7.28-0ubuntu0.18.04.4 (now) -&amp;gt; 5.7.22-0ubuntu18
13)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; openssl [1.1.1-1ubuntu2.1~18.04.5 (now) -&amp;gt; 1.1.0g-2ubuntu4 (bionic)]
14)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python3-cryptography [2.1.4-1ubuntu1.3 (now) -&amp;gt; 2.1.4-1ubuntu1.1 (bionic
15)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python3.6 [3.6.8-1~18.04.3 (now) -&amp;gt; 3.6.5-3 (bionic)]
16)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; python3.6-minimal [3.6.8-1~18.04.3 (now) -&amp;gt; 3.6.5-3 (bionic)]



Accept this solution? [Y/n/q/?] Y


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Aptitude is proposing we downgrade 16 packages. The biggest impact which are:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Python 3.6.8 -&amp;gt; 3.6.5&lt;/li&gt;
&lt;li&gt;MySQL 5.7.28 -&amp;gt; 5.7.22&lt;/li&gt;
&lt;li&gt;OpenSSL 1.1.1 -&amp;gt; 1.1.0&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Due to the specific dependency of Ansible to a version of &lt;kbd&gt;python-httplib2&lt;/kbd&gt; that in turn depends on &lt;kbd&gt;Python 3.6.5&lt;/kbd&gt;, we need to downgrade a few Ubuntu 18.04 packages. I think those are acceptable.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s proceed with the install...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
The following packages will be DOWNGRADED:
&amp;nbsp; curl libcurl4 libio-socket-ssl-perl libmysqlclient20 libnet-ssleay-perl
&amp;nbsp; libpython3.6 libpython3.6-minimal libpython3.6-stdlib libruby2.5
&amp;nbsp; libssl1.1 mysql-client-core-5.7 mysql-server-core-5.7 openssl
&amp;nbsp; python3-cryptography python3.6 python3.6-minimal
The following NEW packages will be installed:
&amp;nbsp; ansible python-asn1crypto{a} python-cffi-backend{a} python-crypto{a}
&amp;nbsp; python-cryptography{a} python-enum34{a} python-httplib2{a} python-idna{a}
&amp;nbsp; python-ipaddress{a} python-jinja2{a} python-markupsafe{a}
&amp;nbsp; python-paramiko{a} python-pkg-resources{a} python-setuptools{a}
&amp;nbsp; python-six{a} python-yaml{a} sshpass{a}
0 packages upgraded, 17 newly installed, 16 downgraded, 0 to remove and 0 not upgraded.
Need to get 33.9 MB of archives. After unpacking 68.2 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main amd64 ansible all 2.9.2-1ppa~bionic [5,778 kB]
Get: 2 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libpython3.6 amd64 3.6.5-3 [1,448 kB]
Get: 3 http://aptmirror.corp.com/ubuntu180401 bionic-updates/main amd64 mysql-client-core-5.7 amd64 5.7.22-0ubuntu18.04.1 [6,979 kB]
Get: 4 http://aptmirror.corp.com/ubuntu180401 bionic-updates/main amd64 libmysqlclient20 amd64 5.7.22-0ubuntu18.04.1 [815 kB]
Get: 5 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 openssl amd64 1.1.0g-2ubuntu4 [532 kB]
Get: 6 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libio-socket-ssl-perl all 2.056-1 [172 kB]
Get: 7 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libnet-ssleay-perl amd64 1.84-1build1 [282 kB]
Get: 8 http://aptmirror.corp.com/ubuntu180401 bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.1 [159 kB]
Get: 9 http://aptmirror.corp.com/ubuntu180401 bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.1 [214 kB]
Get: 10 http://aptmirror.corp.com/ubuntu180401 bionic-updates/main amd64 mysql-server-core-5.7 amd64 5.7.22-0ubuntu18.04.1 [7,764 kB]
Get: 11 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libruby2.5 amd64 2.5.1-1ubuntu1 [3,066 kB]
Get: 12 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python3-cryptography amd64 2.1.4-1ubuntu1.1 [220 kB]
Get: 13 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python3.6 amd64 3.6.5-3 [186 kB]
Get: 14 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libpython3.6-stdlib amd64 3.6.5-3 [1,648 kB]
Get: 15 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python3.6-minimal amd64 3.6.5-3 [1,425 kB]
Get: 16 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libpython3.6-minimal amd64 3.6.5-3 [529 kB]
Get: 17 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 libssl1.1 amd64 1.1.0g-2ubuntu4 [1,128 kB]
Get: 18 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-markupsafe amd64 1.0-1build1 [13.0 kB]
Get: 19 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-jinja2 all 2.10-1 [94.6 kB]
Get: 20 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-yaml amd64 3.12-1build2 [115 kB]
Get: 21 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-asn1crypto all 0.24.0-1 [72.7 kB]
Get: 22 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-cffi-backend amd64 1.11.5-1 [63.4 kB]
Get: 23 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-enum34 all 1.1.6-2 [34.8 kB]
Get: 24 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-idna all 2.6-1 [32.4 kB]
Get: 25 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-ipaddress all 1.0.17-1 [18.2 kB]
Get: 26 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-six all 1.11.0-2 [11.3 kB]
Get: 27 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-cryptography amd64 2.1.4-1ubuntu1.1 [220 kB]
Get: 28 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-paramiko all 2.0.0-1ubuntu1 [110 kB]
Get: 29 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-httplib2 all 0.9.2+dfsg-1 [34.6 kB]
Get: 30 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-crypto amd64 2.6.1-8ubuntu2 [244 kB]
Get: 31 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-pkg-resources all 39.0.1-2 [128 kB]
Get: 32 http://aptmirror.corp.com/ubuntu180401 bionic/main amd64 python-setuptools all 39.0.1-2 [329 kB]
Get: 33 http://aptmirror.corp.com/ubuntu180401 bionic/universe amd64 sshpass amd64 1.06-1 [10.5 kB]
Fetched 33.9 MB in 28s (1,228 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: warning: downgrading libpython3.6:amd64 from 3.6.8-1~18.04.3 to 3.6.5-3
(Reading database ... 254644 files and directories currently installed.)
Preparing to unpack .../00-libpython3.6_3.6.5-3_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.5-3) over (3.6.8-1~18.04.3) ...
dpkg: warning: downgrading mysql-client-core-5.7 from 5.7.28-0ubuntu0.18.04.4 to 5.7.22-0ubuntu18.04.1
Preparing to unpack .../01-mysql-client-core-5.7_5.7.22-0ubuntu18.04.1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.22-0ubuntu18.04.1) over (5.7.28-0ubuntu0.18.04.4) ...
dpkg: warning: downgrading libmysqlclient20:amd64 from 5.7.28-0ubuntu0.18.04.4 to 5.7.22-0ubuntu18.04.1
Preparing to unpack .../02-libmysqlclient20_5.7.22-0ubuntu18.04.1_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.22-0ubuntu18.04.1) over (5.7.28-0ubuntu0.18.04.4) ...
dpkg: warning: downgrading openssl from 1.1.1-1ubuntu2.1~18.04.5 to 1.1.0g-2ubuntu4
Preparing to unpack .../03-openssl_1.1.0g-2ubuntu4_amd64.deb ...
Unpacking openssl (1.1.0g-2ubuntu4) over (1.1.1-1ubuntu2.1~18.04.5) ...
dpkg: warning: downgrading libio-socket-ssl-perl from 2.060-3~ubuntu18.04.1 to 2.056-1
Preparing to unpack .../04-libio-socket-ssl-perl_2.056-1_all.deb ...
Unpacking libio-socket-ssl-perl (2.056-1) over (2.060-3~ubuntu18.04.1) ...
dpkg: warning: downgrading libnet-ssleay-perl from 1.84-1ubuntu0.2 to 1.84-1build1
Preparing to unpack .../05-libnet-ssleay-perl_1.84-1build1_amd64.deb ...
Unpacking libnet-ssleay-perl (1.84-1build1) over (1.84-1ubuntu0.2) ...
dpkg: warning: downgrading curl from 7.58.0-2ubuntu3.8 to 7.58.0-2ubuntu3.1
Preparing to unpack .../06-curl_7.58.0-2ubuntu3.1_amd64.deb ...
Unpacking curl (7.58.0-2ubuntu3.1) over (7.58.0-2ubuntu3.8) ...
dpkg: warning: downgrading libcurl4:amd64 from 7.58.0-2ubuntu3.8 to 7.58.0-2ubuntu3.1
Preparing to unpack .../07-libcurl4_7.58.0-2ubuntu3.1_amd64.deb ...
Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.1) over (7.58.0-2ubuntu3.8) ...
dpkg: warning: downgrading mysql-server-core-5.7 from 5.7.28-0ubuntu0.18.04.4 to 5.7.22-0ubuntu18.04.1
Preparing to unpack .../08-mysql-server-core-5.7_5.7.22-0ubuntu18.04.1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.22-0ubuntu18.04.1) over (5.7.28-0ubuntu0.18.04.4) ...
dpkg: warning: downgrading libruby2.5:amd64 from 2.5.1-1ubuntu1.6 to 2.5.1-1ubuntu1
Preparing to unpack .../09-libruby2.5_2.5.1-1ubuntu1_amd64.deb ...
Unpacking libruby2.5:amd64 (2.5.1-1ubuntu1) over (2.5.1-1ubuntu1.6) ...
dpkg: warning: downgrading python3-cryptography from 2.1.4-1ubuntu1.3 to 2.1.4-1ubuntu1.1
Preparing to unpack .../10-python3-cryptography_2.1.4-1ubuntu1.1_amd64.deb ...
Unpacking python3-cryptography (2.1.4-1ubuntu1.1) over (2.1.4-1ubuntu1.3) ...
dpkg: warning: downgrading python3.6 from 3.6.8-1~18.04.3 to 3.6.5-3
Preparing to unpack .../11-python3.6_3.6.5-3_amd64.deb ...
Unpacking python3.6 (3.6.5-3) over (3.6.8-1~18.04.3) ...
dpkg: warning: downgrading libpython3.6-stdlib:amd64 from 3.6.8-1~18.04.3 to 3.6.5-3
Preparing to unpack .../12-libpython3.6-stdlib_3.6.5-3_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.5-3) over (3.6.8-1~18.04.3) ...
dpkg: warning: downgrading python3.6-minimal from 3.6.8-1~18.04.3 to 3.6.5-3
Preparing to unpack .../13-python3.6-minimal_3.6.5-3_amd64.deb ...
Unpacking python3.6-minimal (3.6.5-3) over (3.6.8-1~18.04.3) ...
dpkg: warning: downgrading libpython3.6-minimal:amd64 from 3.6.8-1~18.04.3 to 3.6.5-3
Preparing to unpack .../14-libpython3.6-minimal_3.6.5-3_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.5-3) over (3.6.8-1~18.04.3) ...
dpkg: warning: downgrading libssl1.1:amd64 from 1.1.1-1ubuntu2.1~18.04.5 to 1.1.0g-2ubuntu4
Preparing to unpack .../15-libssl1.1_1.1.0g-2ubuntu4_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.0g-2ubuntu4) over (1.1.1-1ubuntu2.1~18.04.5) ...
Selecting previously unselected package python-markupsafe.
Preparing to unpack .../16-python-markupsafe_1.0-1build1_amd64.deb ...
Unpacking python-markupsafe (1.0-1build1) ...
Selecting previously unselected package python-jinja2.
Preparing to unpack .../17-python-jinja2_2.10-1_all.deb ...
Unpacking python-jinja2 (2.10-1) ...
Selecting previously unselected package python-yaml.
Preparing to unpack .../18-python-yaml_3.12-1build2_amd64.deb ...
Unpacking python-yaml (3.12-1build2) ...
Selecting previously unselected package python-asn1crypto.
Preparing to unpack .../19-python-asn1crypto_0.24.0-1_all.deb ...
Unpacking python-asn1crypto (0.24.0-1) ...
Selecting previously unselected package python-cffi-backend.
Preparing to unpack .../20-python-cffi-backend_1.11.5-1_amd64.deb ...
Unpacking python-cffi-backend (1.11.5-1) ...
Selecting previously unselected package python-enum34.
Preparing to unpack .../21-python-enum34_1.1.6-2_all.deb ...
Unpacking python-enum34 (1.1.6-2) ...
Selecting previously unselected package python-idna.
Preparing to unpack .../22-python-idna_2.6-1_all.deb ...
Unpacking python-idna (2.6-1) ...
Selecting previously unselected package python-ipaddress.
Preparing to unpack .../23-python-ipaddress_1.0.17-1_all.deb ...
Unpacking python-ipaddress (1.0.17-1) ...
Selecting previously unselected package python-six.
Preparing to unpack .../24-python-six_1.11.0-2_all.deb ...
Unpacking python-six (1.11.0-2) ...
Selecting previously unselected package python-cryptography.
Preparing to unpack .../25-python-cryptography_2.1.4-1ubuntu1.1_amd64.deb ...
Unpacking python-cryptography (2.1.4-1ubuntu1.1) ...
Selecting previously unselected package python-paramiko.
Preparing to unpack .../26-python-paramiko_2.0.0-1ubuntu1_all.deb ...
Unpacking python-paramiko (2.0.0-1ubuntu1) ...
Selecting previously unselected package python-httplib2.
Preparing to unpack .../27-python-httplib2_0.9.2+dfsg-1_all.deb ...
Unpacking python-httplib2 (0.9.2+dfsg-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../28-python-crypto_2.6.1-8ubuntu2_amd64.deb ...
Unpacking python-crypto (2.6.1-8ubuntu2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../29-python-pkg-resources_39.0.1-2_all.deb ...
Unpacking python-pkg-resources (39.0.1-2) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../30-python-setuptools_39.0.1-2_all.deb ...
Unpacking python-setuptools (39.0.1-2) ...
Selecting previously unselected package sshpass.
Preparing to unpack .../31-sshpass_1.06-1_amd64.deb ...
Unpacking sshpass (1.06-1) ...
Selecting previously unselected package ansible.
Preparing to unpack .../32-ansible_2.9.2-1ppa~bionic_all.deb ...
Unpacking ansible (2.9.2-1ppa~bionic) ...
Setting up python-idna (2.6-1) ...
Setting up python-yaml (3.12-1build2) ...
Setting up python-asn1crypto (0.24.0-1) ...
Setting up python-crypto (2.6.1-8ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Setting up mysql-server-core-5.7 (5.7.22-0ubuntu18.04.1) ...
Setting up python-pkg-resources (39.0.1-2) ...
Setting up python-markupsafe (1.0-1build1) ...
Setting up python-httplib2 (0.9.2+dfsg-1) ...
Setting up python-cffi-backend (1.11.5-1) ...
Setting up python-six (1.11.0-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up sshpass (1.06-1) ...
Setting up libssl1.1:amd64 (1.1.0g-2ubuntu4) ...
Setting up python-enum34 (1.1.6-2) ...
Setting up openssl (1.1.0g-2ubuntu4) ...
Installing new version of config file /etc/ssl/openssl.cnf ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libmysqlclient20:amd64 (5.7.22-0ubuntu18.04.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Setting up mysql-client-core-5.7 (5.7.22-0ubuntu18.04.1) ...
Setting up python-ipaddress (1.0.17-1) ...
Setting up python3-cryptography (2.1.4-1ubuntu1.1) ...
Setting up python-setuptools (39.0.1-2) ...
Setting up libruby2.5:amd64 (2.5.1-1ubuntu1) ...
Setting up python-jinja2 (2.10-1) ...
Setting up libnet-ssleay-perl (1.84-1build1) ...
Setting up libcurl4:amd64 (7.58.0-2ubuntu3.1) ...
Setting up libio-socket-ssl-perl (2.056-1) ...
Setting up libpython3.6-minimal:amd64 (3.6.5-3) ...
Setting up python-cryptography (2.1.4-1ubuntu1.1) ...
Setting up libpython3.6-stdlib:amd64 (3.6.5-3) ...
Setting up curl (7.58.0-2ubuntu3.1) ...
Setting up python3.6-minimal (3.6.5-3) ...
Setting up python-paramiko (2.0.0-1ubuntu1) ...
Setting up ansible (2.9.2-1ppa~bionic) ...
Setting up libpython3.6:amd64 (3.6.5-3) ...
Setting up python3.6 (3.6.5-3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Let&#39;s confirm if Ansible is installed&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ apt-cache show ansible
Package: ansible
Priority: optional
Section: admin
Installed-Size: 56579
Maintainer: Ansible, Inc. &amp;lt;info@ansible.com&amp;gt;
Architecture: all
Version: 2.9.2-1ppa~bionic
Depends: python-jinja2, python-yaml, python-paramiko, python-httplib2, python-six, python-crypto (&amp;gt;= 2.6), python-setuptools, sshpass, python-cryptography, python:any (&amp;lt;&amp;lt; 2.8), python:any (&amp;gt;= 2.7.5-5~)
Filename: pool/main/a/ansible/ansible_2.9.2-1ppa~bionic_all.deb
Size: 5777612
MD5sum: 3468ec2ff9e22ac430ee0ccd71e007c2
SHA1: 81780a7413cdc338c4f4fb874bffe9486d788d91
SHA256: 4c4db7e2a32bdafec7f0907fc979a5a0c6589b5ec69ac4396d7eab6e74d1bcc4
Description-en: Ansible IT Automation
 Ansible is a radically simple model-driven configuration management,
 multi-node deployment, and remote task execution system. Ansible works
 over SSH and does not require any software or daemons to be installed
 on remote nodes. Extension modules can be written in any language and
 are transferred to managed machines automatically.
Description-md5: 0e3133c71d7d51c7e54c60ee8b4f0be0

Package: ansible
Architecture: all
Version: 2.5.1+dfsg-1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers &amp;lt;ubuntu-devel-discuss@lists.ubuntu.com&amp;gt;
Original-Maintainer: Harlan Lieberman-Berg &amp;lt;hlieberman@debian.org&amp;gt;
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 26263
Depends: python-cryptography, python-jinja2, python-paramiko, python-pkg-resources, python-yaml, python:any (&amp;lt;&amp;lt; 2.8), python:any (&amp;gt;= 2.7.5-5~), python-crypto, python-httplib2, python-netaddr
Recommends: python-jmespath, python-kerberos, python-libcloud, python-selinux, python-winrm (&amp;gt;= 0.1.1), python-xmltodict
Suggests: cowsay, sshpass
Filename: pool/universe/a/ansible/ansible_2.5.1+dfsg-1_all.deb
Size: 3196684
MD5sum: 2ff0d45d0a8d10a4c4b2f86ca98011dd
SHA1: eb4728c657bebdaa03aa5de5add330b7b6b12bd6
SHA256: 3d1a3b7ad8ca018a0212c92e2034222bae1e2968028828eaace64d6acd30fd96
Homepage: https://www.ansible.com
Description-en: Configuration management, deployment, and task execution system
 Ansible is a radically simple model-driven configuration management,
 multi-node deployment, and remote task execution system. Ansible works
 over SSH and does not require any software or daemons to be installed
 on remote nodes. Extension modules can be written in any language and
 are transferred to managed machines automatically.
Description-md5: db2b21b0d2286fccc4401d5982361488



&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXXaZE5LWNULE4jzyB5B491Zm0Ay_1LgH-NpfF5BXCG8xTcI1e-KE82TqsAIr2XJev_3lsaagjo3S_zs0FlJvKj27C74KTC_xGz_OzKZYLWAH74OkpvCjFQboQ3MZcDMx2d_QniQ/s1600/ansible-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;284&quot; data-original-width=&quot;359&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXXaZE5LWNULE4jzyB5B491Zm0Ay_1LgH-NpfF5BXCG8xTcI1e-KE82TqsAIr2XJev_3lsaagjo3S_zs0FlJvKj27C74KTC_xGz_OzKZYLWAH74OkpvCjFQboQ3MZcDMx2d_QniQ/s1600/ansible-logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/4395031414573913760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/4395031414573913760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/4395031414573913760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/4395031414573913760'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/ansible-depends-python-httplib2-but-it.html' title='Ansible : Depends: python-httplib2 but it is not going to be installed'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXXaZE5LWNULE4jzyB5B491Zm0Ay_1LgH-NpfF5BXCG8xTcI1e-KE82TqsAIr2XJev_3lsaagjo3S_zs0FlJvKj27C74KTC_xGz_OzKZYLWAH74OkpvCjFQboQ3MZcDMx2d_QniQ/s72-c/ansible-logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.344314999999998 75.097360000000066 64.609695 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-157627747516907956</id><published>2019-12-27T18:55:00.003+08:00</published><updated>2019-12-27T18:57:35.136+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>How to find common lines in two files</title><content type='html'>While developing two Docker images, I want to find common lines for bash scripts I use to build and run the Docker images. There are &lt;a href=&quot;https://www.scootersoftware.com/download.php&quot;&gt;fancy applications such as Beyond Compare&lt;/a&gt; (recommended, used by some of the best software engineers I know), or open source applications such as &lt;a href=&quot;https://meldmerge.org/&quot;&gt;Meld&lt;/a&gt;, &lt;a href=&quot;http://kdiff3.sourceforge.net/&quot;&gt;kdiff3 &lt;/a&gt;or &lt;a href=&quot;https://winmerge.org/&quot;&gt;WinMerge&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
fgrep&lt;/h2&gt;
For simple command line comparison, use &lt;kbd&gt;fgrep&lt;/kbd&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ fgrep -f docker_build.sh ../another-project/docker_build.sh
#!/usr/bin/env bash

user=`whoami`
uid=`id -u`
gid=`id -g`

VERSION=&quot;1.0.1&quot;
DOCKER_REPO=&quot;registry.corp.com/&quot;
BRAND=&quot;vitis-ai-runtime&quot;
IMAGE_NAME=&quot;${DOCKER_REPO}${BRAND}:${VERSION}&quot;
# Create Latest Tag - just another name for the image above
LATEST_CPU_IMAGE_TAG=${DOCKER_REPO}$BRAND:latest
TAR_PATH=&quot;${2:-/proj/rdi/staff/hanxuel/vai/docker-images}&quot;

#cp&amp;nbsp; -f&amp;nbsp; ../../conda/*.txt .
#cp&amp;nbsp; -f ../../packages/ubuntu/xrt*18.04* .
#cp -rf /wrk/acceleration/shareData/conda/latest/conda-channel .

#sudo \
while getopts &quot;:t:&quot; opt; do
&amp;nbsp; case $opt in
&amp;nbsp;&amp;nbsp;&amp;nbsp; t)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSION=&quot;TEST-${OPTARG}&quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;-t was triggered, TEST Version: ${VERSION}&quot; &amp;gt;&amp;amp;2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMAGE_NAME=&quot;${DOCKER_REPO}${BRAND}:${VERSION}&quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unset LATEST_CPU_IMAGE_TAG
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; \?)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Invalid option: -$OPTARG&quot; &amp;gt;&amp;amp;2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; :)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Option -$OPTARG requires an argument.&quot; &amp;gt;&amp;amp;2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;
&amp;nbsp; esac
done
docker build --no-cache\
&amp;nbsp; --network=host \
&amp;nbsp; --build-arg VERSION=$VERSION \
&amp;nbsp; -f Dockerfile \
&amp;nbsp; -t $IMAGE_NAME \
&amp;nbsp; .
#&amp;nbsp; -t $IMAGE_NAME \
&amp;nbsp; #-t vitis-ai-runtime:0.4.5 \

#rm -rf conda-channel xrt* *.txt

echo &quot;Saving Docker Image $IMAGE_NAME&quot;
docker tag $IMAGE_NAME $LATEST_CPU_IMAGE_TAG #registry:5000/$IMAGE_NAME
docker push $IMAGE_NAME
if [ -z ${LATEST_CPU_IMAGE_TAG} ]
then
&amp;nbsp; docker tag ${IMAGE_NAME} ${LATEST_CPU_IMAGE_TAG};
&amp;nbsp; docker push ${LATEST_CPU_IMAGE_TAG}
fi
docker save $IMAGE_NAME | gzip -c &amp;gt; ${BRAND}-${VERSION}.tar.gz



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have GNU grep installed, you can use the &lt;kbd&gt;-F&lt;/kbd&gt; flag&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
grep -Ff file1 file2



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h2&gt;
comm&lt;/h2&gt;
If the lines are sorted, you can use &lt;kbd&gt;comm&lt;/kbd&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ comm -12 docker_run.sh ../another-projecte/docker_run.sh
#!/bin/bash


comm: file 1 is not in sorted order

user=`whoami`
comm: file 2 is not in sorted order
uid=`id -u`
gid=`id -g`


VERSION=1.0.1


IMAGE_NAME=&quot;${1:-$CPU_IMAGE_TAG}&quot;
xclmgmt_driver=&quot;$(find /dev -name xclmgmt\*)&quot;
docker_devices=&quot;&quot;
for i in ${xclmgmt_driver} ;
do
&amp;nbsp; docker_devices+=&quot;--device=$i &quot;
done


render_driver=&quot;$(find /dev/dri -name renderD\*)&quot;
for i in ${render_driver} ;
do
&amp;nbsp; docker_devices+=&quot;--device=$i &quot;
done


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It does not work with unsorted files though. For example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ comm -12 docker_build.sh ../vitis-ai--runtime/docker_build.sh
#!/usr/bin/env bash

comm: file 1 is not in sorted order
comm: file 2 is not in sorted order




&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguM25RohLaRNnwjPH1w1D2ySm51l3hY4T_QZXa-dQRQ_peBVdB2GMNPBGXUmM28Z9YKTlCCm5YlF5kX9r7hEBo87PssyDd-wn690WprxPR1XC2KdRSaNTqLixuWiAIVFe5MblLNg/s1600/linux_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;317&quot; data-original-width=&quot;640&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguM25RohLaRNnwjPH1w1D2ySm51l3hY4T_QZXa-dQRQ_peBVdB2GMNPBGXUmM28Z9YKTlCCm5YlF5kX9r7hEBo87PssyDd-wn690WprxPR1XC2KdRSaNTqLixuWiAIVFe5MblLNg/s320/linux_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/157627747516907956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/157627747516907956' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/157627747516907956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/157627747516907956'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/how-to-find-common-lines-in-two-files.html' title='How to find common lines in two files'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguM25RohLaRNnwjPH1w1D2ySm51l3hY4T_QZXa-dQRQ_peBVdB2GMNPBGXUmM28Z9YKTlCCm5YlF5kX9r7hEBo87PssyDd-wn690WprxPR1XC2KdRSaNTqLixuWiAIVFe5MblLNg/s72-c/linux_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.3443145 75.097360000000066 64.6096955 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-8096294794047716168</id><published>2019-12-27T18:23:00.001+08:00</published><updated>2019-12-27T18:23:42.892+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apt"/><category scheme="http://www.blogger.com/atom/ns#" term="CUDA"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to check installed CUDA version</title><content type='html'>The first place you should check is the OS&#39; package management system&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ apt list --installed | grep cuda

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

cuda/unknown,now 10.0.130-1 amd64 [installed]
cuda-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]
cuda-command-line-tools-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]
cuda-compiler-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]
cuda-cublas-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]
cuda-cublas-dev-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]
cuda-cudart-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]
cuda-cudart-dev-10-0/unknown,now 10.0.130-1 amd64 [installed,automatic]


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, try checking&amp;nbsp; /usr/local/cuda/version.txt&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
~$ cat /usr/local/cuda/version.txt
CUDA Version 10.0.130


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
There might be multiple versions of CUDA&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ ls -ld /usr/local/cuda*
lrwxrwxrwx&amp;nbsp; 1 root root&amp;nbsp;&amp;nbsp; 9 Sep 10 16:02 /usr/local/cuda -&amp;gt; cuda-10.0
drwxr-xr-x 16 root root 290 Sep 10 16:01 /usr/local/cuda-10.0
drwxr-xr-x 18 root root 249 Jul 29 11:13 /usr/local/cuda-9.0


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have cuda-toolkit-x-y (for example, cuda-toolkit-10-0) installed, you can also use this command&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
&amp;nbsp;$ /usr/local/cuda/bin/nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, within your application, you can call the CUDA API with either of these functions&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-c&quot;&gt;&lt;code&gt;
cudaRuntimeGetVersion()

cudaDriverGetVersion()



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgrA-LW-rj4WFcXq1YXsILKE0ulW1ui5EiJIu5N3ZlSb2fiWOtw_BZUimofnzjHiE2F2RCWqArgHSpej5OrYc2EJUZOtRLxYx-jSoKzy1B-hpOgC_b_yx-wgXDUPu9Ll8LjlV52Q/s1600/Nvidia_CUDA_Logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;182&quot; data-original-width=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgrA-LW-rj4WFcXq1YXsILKE0ulW1ui5EiJIu5N3ZlSb2fiWOtw_BZUimofnzjHiE2F2RCWqArgHSpej5OrYc2EJUZOtRLxYx-jSoKzy1B-hpOgC_b_yx-wgXDUPu9Ll8LjlV52Q/s1600/Nvidia_CUDA_Logo.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/8096294794047716168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/8096294794047716168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/8096294794047716168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/8096294794047716168'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/how-to-check-installed-cuda-version.html' title='How to check installed CUDA version'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgrA-LW-rj4WFcXq1YXsILKE0ulW1ui5EiJIu5N3ZlSb2fiWOtw_BZUimofnzjHiE2F2RCWqArgHSpej5OrYc2EJUZOtRLxYx-jSoKzy1B-hpOgC_b_yx-wgXDUPu9Ll8LjlV52Q/s72-c/Nvidia_CUDA_Logo.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.344313999999997 75.097360000000066 64.609696 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-6895294831207696951</id><published>2019-12-27T17:32:00.002+08:00</published><updated>2019-12-27T17:32:31.504+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>How to restart Audio in Windows without rebooting</title><content type='html'>Sometimes the Audio service in Windows will fail to work. There could be many kinds of symptoms such as:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Sound is enabled, volume set to high or maximum but no sound on speaker, headset or other connected audio devices&lt;/li&gt;
&lt;li&gt;Sounds devices not detected&lt;/li&gt;
&lt;li&gt;When bluetooth is enabled and connected to audio device and Windows is put to sleep, then wake up again, audio does not work&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h2&gt;
Restart Windows Audio Service&lt;/h2&gt;
Open a command prompt (for example, cmd.exe) with Administrator privileges and run these commands to stop the audio services&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
net stop audiosrv
net stop AudioEndpointBuilder



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Start the audio services again&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
net start audiosrv
net start AudioEndpointBuilder



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Waves MaxxAudio&lt;/h2&gt;
Microsoft bundles Waves MaxxAudio Pro software to enhance audio quality for Windows. One of the functionality it does is optimizing the audio output depending on what kind of devices you plug into the audio jack.&lt;br /&gt;
&lt;br /&gt;
This is what you will typically see when you plug in an audio device&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVVR5OonBQ1XayZzPoDjks34vyUBSaLkk4VElB5NYhWe2XDD9VmJJvj14XK2PtHiVIc7lyygU_QXz5X5996yjFn2H2jMqz1ZKhbojOM4kZKm-n_Y9stDg7yWZgpRQl0izQJwFsAw/s1600/2019-12-27+16_45_49-MaxxAudioPro+Jack+-+0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;914&quot; data-original-width=&quot;1455&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVVR5OonBQ1XayZzPoDjks34vyUBSaLkk4VElB5NYhWe2XDD9VmJJvj14XK2PtHiVIc7lyygU_QXz5X5996yjFn2H2jMqz1ZKhbojOM4kZKm-n_Y9stDg7yWZgpRQl0izQJwFsAw/s400/2019-12-27+16_45_49-MaxxAudioPro+Jack+-+0.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
I notice that if the MaxxAudio Pro application is not running, audio services may fail to work. Check in your &lt;b&gt;Task Manager&lt;/b&gt; if the Waves AudioMaxx application is running&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVuo-nsbWB_OG43EeLUfD-QkNtYkZVLyPzFgYOQUJm7xElqwZGuWCey-79R2_oCkTQd9twFkCTHhv_IKye6FVa3tXlJT7CPoAH0CoZQRME59WC5oErQTkMxG8pvhjR4NujgPi_ZQ/s1600/2019-12-27Waves_Audio_App.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;618&quot; data-original-width=&quot;1381&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVuo-nsbWB_OG43EeLUfD-QkNtYkZVLyPzFgYOQUJm7xElqwZGuWCey-79R2_oCkTQd9twFkCTHhv_IKye6FVa3tXlJT7CPoAH0CoZQRME59WC5oErQTkMxG8pvhjR4NujgPi_ZQ/s400/2019-12-27Waves_Audio_App.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
If it is not responding, terminate it. You can start the application manually from &lt;kbd&gt;C:\Windows\System32\DriverStore\FileRepository\wavesapo75de.inf_amd64_8d6ed1504b570116&lt;/kbd&gt; by running these two applications:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;WavesSvc64.exe&lt;/li&gt;
&lt;li&gt;MaxxAudioPro.exe&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h2&gt;
Uninstall Waves MaxxAudio&lt;/h2&gt;
Finally, if you find the Waves MaxxAudio application to be a nuisance, follow these steps to permanently uninstall it:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Device Manager&lt;/li&gt;
&lt;li&gt;Sound, video and game controllers&lt;/li&gt;
&lt;li&gt;Realtek Audio&lt;/li&gt;
&lt;li&gt;Right-click, update driver.&lt;/li&gt;
&lt;li&gt;&quot;Browse my computer for driver software&quot;&lt;/li&gt;
&lt;li&gt;&quot;Let me pick from a list...&quot;&lt;/li&gt;
&lt;li&gt;Install &quot;High Definition Audio Device&quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizPiZJ3UwxdqyK_n1dRWLOjmh1d_0EOoBT25dlbjJFOlRGoBrNN4A1Nzff19-OPPVbSRV25XKlRIwMyqXsmwHJhDPWOxNdVbNj4Z08RhiEsRYEritcgGO3ATueFB2F4dYRBhzLaQ/s1600/2019-12-27+17_27_13-Update+Drivers+-+Realtek%2528R%2529+Audio.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;989&quot; data-original-width=&quot;1600&quot; height=&quot;394&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizPiZJ3UwxdqyK_n1dRWLOjmh1d_0EOoBT25dlbjJFOlRGoBrNN4A1Nzff19-OPPVbSRV25XKlRIwMyqXsmwHJhDPWOxNdVbNj4Z08RhiEsRYEritcgGO3ATueFB2F4dYRBhzLaQ/s640/2019-12-27+17_27_13-Update+Drivers+-+Realtek%2528R%2529+Audio.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Update Audio Device&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRHMek4uaNrWWqeHThUO70KUXRRJ59lAHdG6NclFnyFKsCtT8bKrNuqASPNcjOsSEFAhsND3lFpDUYzhEuRmOqzBOFx-ebwmp5NY4OnC21A-A5DitdIHHHtRJZ8M-wf9SCj60MUA/s1600/2019-12-27+17_29_37-Update+Drivers+-+Realtek%2528R%2529+Audio.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1025&quot; data-original-width=&quot;1490&quot; height=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRHMek4uaNrWWqeHThUO70KUXRRJ59lAHdG6NclFnyFKsCtT8bKrNuqASPNcjOsSEFAhsND3lFpDUYzhEuRmOqzBOFx-ebwmp5NY4OnC21A-A5DitdIHHHtRJZ8M-wf9SCj60MUA/s640/2019-12-27+17_29_37-Update+Drivers+-+Realtek%2528R%2529+Audio.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Select &quot;High Definition Audio&quot; device&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc1HZMNinyBAff6im8XPcfkxyb0pSv9bFqcNM33BzN4GCrnxlbLrR1799oGT_ZAbamim6f3IQP2-UtBV4B-IlxEp3dIrHon22EeLAg7zIfsnL4Ycj3MyNZeRvzpD2PNQtHwpitwA/s1600/Windows-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1466&quot; data-original-width=&quot;1600&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc1HZMNinyBAff6im8XPcfkxyb0pSv9bFqcNM33BzN4GCrnxlbLrR1799oGT_ZAbamim6f3IQP2-UtBV4B-IlxEp3dIrHon22EeLAg7zIfsnL4Ycj3MyNZeRvzpD2PNQtHwpitwA/s320/Windows-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/6895294831207696951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/6895294831207696951' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/6895294831207696951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/6895294831207696951'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/how-to-restart-audio-in-windows-without.html' title='How to restart Audio in Windows without rebooting'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVVR5OonBQ1XayZzPoDjks34vyUBSaLkk4VElB5NYhWe2XDD9VmJJvj14XK2PtHiVIc7lyygU_QXz5X5996yjFn2H2jMqz1ZKhbojOM4kZKm-n_Y9stDg7yWZgpRQl0izQJwFsAw/s72-c/2019-12-27+16_45_49-MaxxAudioPro+Jack+-+0.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.344316 75.097360000000066 64.60969399999999 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-1480415503889460771</id><published>2019-12-26T21:29:00.002+08:00</published><updated>2019-12-26T21:31:01.054+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apt"/><category scheme="http://www.blogger.com/atom/ns#" term="CUDA"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu: CUDA apt installation error: The following packages have unmet dependencies:</title><content type='html'>When you install the official CUDA Debian package, you may encounter this error:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
&amp;nbsp;cuda : Depends: cuda-10-0 (&amp;gt;= 10.0.130) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I got this error when installing CUDA 10.0 on an Ubuntu 18.04 server.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Fix Missing or Broken Packages&lt;/h3&gt;
Unfortunately, &lt;kbd&gt;apt&lt;/kbd&gt; does not explain what is causing the error, nor does it show the conflict clearly. The following commands does not solve the problem either&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo apt-get update –fix-missing
sudo dpkg –configure -a
sudo apt-get install -f



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Use Aptitude&lt;/h3&gt;
Aptitude is a text-mode as well as graphical application that offers an easy-to-use interface to advanced features of apt. Most importantly, it has the magical (to me, at least) ability to resolve package conflicts.&lt;br /&gt;
&lt;br /&gt;
Simply replace &lt;kbd&gt;apt&lt;/kbd&gt; or &lt;kbd&gt;apt-get&lt;/kbd&gt; commands with &lt;kbd&gt;aptitude&lt;/kbd&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo aptitude install cuda
The following NEW packages will be installed:
&amp;nbsp; cuda cuda-10-0{a} cuda-command-line-tools-10-0{a} cuda-compiler-10-0{a}
&amp;nbsp; cuda-cublas-10-0{a} cuda-cublas-dev-10-0{a} cuda-cudart-10-0{a}
&amp;nbsp; cuda-cudart-dev-10-0{a} cuda-cufft-10-0{a} cuda-cufft-dev-10-0{a}
&amp;nbsp; cuda-cuobjdump-10-0{a} cuda-cupti-10-0{a} cuda-curand-10-0{a}
&amp;nbsp; cuda-curand-dev-10-0{a} cuda-cusolver-10-0{a} cuda-cusolver-dev-10-0{a}
&amp;nbsp; cuda-cusparse-10-0{a} cuda-cusparse-dev-10-0{a} cuda-demo-suite-10-0{a}
&amp;nbsp; cuda-documentation-10-0{a} cuda-driver-dev-10-0{a} cuda-drivers{a}
&amp;nbsp; cuda-gdb-10-0{a} cuda-gpu-library-advisor-10-0{a} cuda-libraries-10-0{a}
&amp;nbsp; cuda-libraries-dev-10-0{a} cuda-license-10-0{a} cuda-memcheck-10-0{a}
&amp;nbsp; cuda-misc-headers-10-0{a} cuda-npp-10-0{a} cuda-npp-dev-10-0{a}
&amp;nbsp; cuda-nsight-10-0{a} cuda-nsight-compute-10-0{a} cuda-nvcc-10-0{a}
&amp;nbsp; cuda-nvdisasm-10-0{a} cuda-nvgraph-10-0{a} cuda-nvgraph-dev-10-0{a}
&amp;nbsp; cuda-nvjpeg-10-0{a} cuda-nvjpeg-dev-10-0{a} cuda-nvml-dev-10-0{a}
&amp;nbsp; cuda-nvprof-10-0{a} cuda-nvprune-10-0{a} cuda-nvrtc-10-0{a}
&amp;nbsp; cuda-nvrtc-dev-10-0{a} cuda-nvtx-10-0{a} cuda-nvvp-10-0{a}
&amp;nbsp; cuda-runtime-10-0{a} cuda-samples-10-0{a} cuda-toolkit-10-0{a}
&amp;nbsp; cuda-tools-10-0{a} cuda-visual-tools-10-0{a} freeglut3{a}
&amp;nbsp; freeglut3-dev{a} libdrm-dev{a} libgl1-mesa-dev{a} libglu1-mesa-dev{a}
&amp;nbsp; libglvnd-core-dev{a} libglvnd-dev{a} libice-dev{a} libopengl0{a}
&amp;nbsp; libpthread-stubs0-dev{a} libsm-dev{a} libx11-dev{ab} libx11-xcb-dev{ab}
&amp;nbsp; libxau-dev{a} libxcb-dri2-0-dev{a} libxcb-dri3-dev{a} libxcb-glx0-dev{a}
&amp;nbsp; libxcb-present-dev{a} libxcb-randr0-dev{a} libxcb-render0-dev{a}
&amp;nbsp; libxcb-shape0-dev{a} libxcb-sync-dev{a} libxcb-xfixes0-dev{a}
&amp;nbsp; libxcb1-dev{a} libxdamage-dev{a} libxdmcp-dev{a} libxext-dev{a}
&amp;nbsp; libxfixes-dev{a} libxi-dev{a} libxmu-dev{a} libxmu-headers{a}
&amp;nbsp; libxnvctrl0{a} libxshmfence-dev{a} libxt-dev{a} libxxf86vm-dev{a}
&amp;nbsp; mesa-common-dev{a} nvidia-modprobe{a} nvidia-settings{a} pkg-config{a}
&amp;nbsp; screen-resolution-extra{a} x11proto-core-dev{a} x11proto-damage-dev{a}
&amp;nbsp; x11proto-dev{a} x11proto-dri2-dev{a} x11proto-fixes-dev{a}
&amp;nbsp; x11proto-gl-dev{a} x11proto-input-dev{a} x11proto-xext-dev{a}
&amp;nbsp; x11proto-xf86vidmode-dev{a} xorg-sgml-doctools{a} xtrans-dev{a}
The following packages are RECOMMENDED but will NOT be installed:
&amp;nbsp; libx11-doc
0 packages upgraded, 102 newly installed, 0 to remove and 3 not upgraded.
Need to get 4,368 kB/1,368 MB of archives. After unpacking 3,157 MB will be used.
The following packages have unmet dependencies:
&amp;nbsp;libx11-xcb-dev : Depends: libx11-xcb1 (= 2:1.6.4-3) but 2:1.6.4-3ubuntu0.1 is installed
&amp;nbsp;libx11-dev : Depends: libx11-6 (= 2:1.6.4-3) but 2:1.6.4-3ubuntu0.1 is installed
The following actions will resolve these dependencies:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keep the following packages at their current version:
1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cuda [Not Installed]
2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cuda-10-0 [Not Installed]
3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cuda-documentation-10-0 [Not Installed]
4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cuda-samples-10-0 [Not Installed]
5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cuda-toolkit-10-0 [Not Installed]
6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; freeglut3-dev [Not Installed]
7)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libgl1-mesa-dev [Not Installed]
8)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libglu1-mesa-dev [Not Installed]
9)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libx11-dev [Not Installed]
10)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libx11-xcb-dev [Not Installed]
11)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxdamage-dev [Not Installed]
12)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxext-dev [Not Installed]
13)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxfixes-dev [Not Installed]
14)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxi-dev [Not Installed]
15)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxmu-dev [Not Installed]
16)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxmu-headers [Not Installed]
17)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxt-dev [Not Installed]
18)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libxxf86vm-dev [Not Installed]
19)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mesa-common-dev [Not Installed]



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Isn&#39;t this a lot more helpful? Aptitude gives you choices starting from the most conservative. The default choice is the same as the &quot;apt&quot; command: not changing anything. Aptitude helpfully list out the actual conflict.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
The following packages have unmet dependencies:
&amp;nbsp;libx11-xcb-dev : Depends: libx11-xcb1 (= 2:1.6.4-3) but 2:1.6.4-3ubuntu0.1 is installed
&amp;nbsp;libx11-dev : Depends: libx11-6 (= 2:1.6.4-3) but 2:1.6.4-3ubuntu0.1 is installed



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem is with libx11-xcb-dev and libx11-dev. The correct version is installed, but the version name has the &lt;kbd&gt;ubuntu0.1&lt;/kbd&gt; suffix.&lt;br /&gt;
&lt;br /&gt;
The default and first option provided by aptitude does not take any actions except to show you the list of packages that needed to be installed, but would not install due to unmet dependencies. &lt;br /&gt;
&lt;h3&gt;
Next Aptitude Option&lt;/h3&gt;
Let&#39;s answer &lt;kbd&gt;no&lt;/kbd&gt; and see what is the next option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Downgrade the following packages:
1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libx11-6 [2:1.6.4-3ubuntu0.1 (now) -&amp;gt; 2:1.6.4-3 (bionic)]
2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libx11-xcb1 [2:1.6.4-3ubuntu0.1 (now) -&amp;gt; 2:1.6.4-3 (bionic)]



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Now aptitude offers to downgrade the 2 conflicting packages, so that the original package we requested, cuda, can be installed. Let&#39;s answer &quot;Yes&quot;&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
&amp;nbsp; libx11-6 libx11-xcb1
The following NEW packages will be installed:
&amp;nbsp; cuda cuda-10-0{a} cuda-command-line-tools-10-0{a} cuda-compiler-10-0{a}
&amp;nbsp; cuda-cublas-10-0{a} cuda-cublas-dev-10-0{a} cuda-cudart-10-0{a}
&amp;nbsp; cuda-cudart-dev-10-0{a} cuda-cufft-10-0{a} cuda-cufft-dev-10-0{a}
&amp;nbsp; cuda-cuobjdump-10-0{a} cuda-cupti-10-0{a} cuda-curand-10-0{a}
&amp;nbsp; cuda-curand-dev-10-0{a} cuda-cusolver-10-0{a} cuda-cusolver-dev-10-0{a}
&amp;nbsp; cuda-cusparse-10-0{a} cuda-cusparse-dev-10-0{a} cuda-demo-suite-10-0{a}
&amp;nbsp; cuda-documentation-10-0{a} cuda-driver-dev-10-0{a} cuda-drivers{a}
&amp;nbsp; cuda-gdb-10-0{a} cuda-gpu-library-advisor-10-0{a} cuda-libraries-10-0{a}
&amp;nbsp; cuda-libraries-dev-10-0{a} cuda-license-10-0{a} cuda-memcheck-10-0{a}
&amp;nbsp; cuda-misc-headers-10-0{a} cuda-npp-10-0{a} cuda-npp-dev-10-0{a}
&amp;nbsp; cuda-nsight-10-0{a} cuda-nsight-compute-10-0{a} cuda-nvcc-10-0{a}
&amp;nbsp; cuda-nvdisasm-10-0{a} cuda-nvgraph-10-0{a} cuda-nvgraph-dev-10-0{a}
&amp;nbsp; cuda-nvjpeg-10-0{a} cuda-nvjpeg-dev-10-0{a} cuda-nvml-dev-10-0{a}
&amp;nbsp; cuda-nvprof-10-0{a} cuda-nvprune-10-0{a} cuda-nvrtc-10-0{a}
&amp;nbsp; cuda-nvrtc-dev-10-0{a} cuda-nvtx-10-0{a} cuda-nvvp-10-0{a}
&amp;nbsp; cuda-runtime-10-0{a} cuda-samples-10-0{a} cuda-toolkit-10-0{a}
&amp;nbsp; cuda-tools-10-0{a} cuda-visual-tools-10-0{a} freeglut3{a}
&amp;nbsp; freeglut3-dev{a} libdrm-dev{a} libgl1-mesa-dev{a} libglu1-mesa-dev{a}
&amp;nbsp; libglvnd-core-dev{a} libglvnd-dev{a} libice-dev{a} libopengl0{a}
&amp;nbsp; libpthread-stubs0-dev{a} libsm-dev{a} libx11-dev{a} libx11-xcb-dev{a}
&amp;nbsp; libxau-dev{a} libxcb-dri2-0-dev{a} libxcb-dri3-dev{a} libxcb-glx0-dev{a}
&amp;nbsp; libxcb-present-dev{a} libxcb-randr0-dev{a} libxcb-render0-dev{a}
&amp;nbsp; libxcb-shape0-dev{a} libxcb-sync-dev{a} libxcb-xfixes0-dev{a}
&amp;nbsp; libxcb1-dev{a} libxdamage-dev{a} libxdmcp-dev{a} libxext-dev{a}
&amp;nbsp; libxfixes-dev{a} libxi-dev{a} libxmu-dev{a} libxmu-headers{a}
&amp;nbsp; libxnvctrl0{a} libxshmfence-dev{a} libxt-dev{a} libxxf86vm-dev{a}
&amp;nbsp; mesa-common-dev{a} nvidia-modprobe{a} nvidia-settings{a} pkg-config{a}
&amp;nbsp; screen-resolution-extra{a} x11proto-core-dev{a} x11proto-damage-dev{a}
&amp;nbsp; x11proto-dev{a} x11proto-dri2-dev{a} x11proto-fixes-dev{a}
&amp;nbsp; x11proto-gl-dev{a} x11proto-input-dev{a} x11proto-xext-dev{a}
&amp;nbsp; x11proto-xf86vidmode-dev{a} xorg-sgml-doctools{a} xtrans-dev{a}
The following packages are RECOMMENDED but will NOT be installed:
&amp;nbsp; libx11-doc
0 packages upgraded, 102 newly installed, 2 downgraded, 0 to remove and 3 not upgraded.
Need to get 4,950 kB/1,369 MB of archives. After unpacking 3,157 MB will be used.
Do you want to continue? [Y/n/?] y



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Aptitude will show you exactly what will be changed. The conflicting packages downgraded to the correct version, and the rest of CUDA packages installed. You will be asked a final time before aptitude makes the changes.&lt;br /&gt;
&lt;br /&gt;
After answering &lt;kbd&gt;yes&lt;/kbd&gt;, all the required packages will be installed&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
Do you want to continue? [Y/n/?] y
Get: 1 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-license-10-0 10.0.130-1 [17.6 kB]
Get: 2 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-misc-headers-10-0 10.0.130-1 [640 kB]
Get: 3 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvcc-10-0 10.0.130-1 [20.0 MB]
Get: 4 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cuobjdump-10-0 10.0.130-1 [130 kB]
Get: 5 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvprune-10-0 10.0.130-1 [36.8 kB]
Get: 6 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-compiler-10-0 10.0.130-1 [2,538 B]
Get: 7 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 libxnvctrl0 amd64 418.56-0ubuntu0~gpu18.04.1 [18.3 kB]
Get: 8 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvdisasm-10-0 10.0.130-1 [22.1 MB]
Get: 9 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-gdb-10-0 10.0.130-1 [2,769 kB]
Get: 10 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvprof-10-0 10.0.130-1 [5,590 kB]
Get: 11 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-memcheck-10-0 10.0.130-1 [139 kB]
Get: 12 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cudart-10-0 10.0.130-1 [109 kB]
Get: 13 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-driver-dev-10-0 10.0.130-1 [12.0 kB]
Get: 14 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cudart-dev-10-0 10.0.130-1 [457 kB]
Get: 15 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cupti-10-0 10.0.130-1 [1,564 kB]
Get: 16 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-gpu-library-advisor-10-0 10.0.130-1 [1,003 kB]
Get: 17 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvtx-10-0 10.0.130-1 [38.9 kB]
Get: 18 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-command-line-tools-10-0 10.0.130-1 [26.9 kB]
Get: 19 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nsight-10-0 10.0.130-1 [2,590 B]
Get: 20 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvvp-10-0 10.0.130-1 [2,536 B]
Get: 21 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvrtc-10-0 10.0.130-1 [5,925 kB]
Get: 22 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvrtc-dev-10-0 10.0.130-1 [9,344 B]
Get: 23 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 nvidia-settings amd64 418.56-0ubuntu0~gpu18.04.1 [964 kB]
Get: 24 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cusolver-10-0 10.0.130-1 [38.4 MB]
Get: 25 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libx11-6 amd64 2:1.6.4-3 [572 kB]
Get: 26 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cusolver-dev-10-0 10.0.130-1 [13.2 MB]
Get: 27 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cublas-10-0 10.0.130-1 [30.3 MB]
Get: 28 http://aptmirror.acme.com/ubuntu180401 bionic/universe amd64 freeglut3 amd64 2.8.1-3 [73.6 kB]
Get: 29 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get: 30 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-dev all 2018.4-4 [251 kB]
Get: 31 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-core-dev all 2018.4-4 [2,620 B]
Get: 32 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxau-dev amd64 1:1.0.8-1 [11.1 kB]
Get: 33 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxdmcp-dev amd64 1:1.1.2-3 [25.1 kB]
Get: 34 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-input-dev all 2018.4-4 [2,620 B]
Get: 35 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 xtrans-dev all 1.3.5-1 [70.5 kB]
Get: 36 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libpthread-stubs0-dev amd64 0.3-4 [4,068 B]
Get: 37 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb1-dev amd64 1.13-1 [80.0 kB]
Get: 38 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libx11-dev amd64 2:1.6.4-3 [642 kB]
Get: 39 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cublas-dev-10-0 10.0.130-1 [30.8 MB]
Get: 40 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libdrm-dev amd64 2.4.91-2 [238 kB]
Get: 41 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 mesa-common-dev amd64 18.0.0~rc5-1ubuntu1 [528 kB]
Get: 42 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libglvnd-core-dev amd64 1.0.0-2ubuntu2 [12.7 kB]
Get: 43 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libopengl0 amd64 1.0.0-2ubuntu2 [31.1 kB]
Get: 44 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libglvnd-dev amd64 1.0.0-2ubuntu2 [3,376 B]
Get: 45 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libx11-xcb1 amd64 2:1.6.4-3 [9,626 B]
Get: 46 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libx11-xcb-dev amd64 2:1.6.4-3 [9,660 B]
Get: 47 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-dri3-dev amd64 1.13-1 [7,368 B]
Get: 48 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-render0-dev amd64 1.13-1 [18.4 kB]
Get: 49 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-randr0-dev amd64 1.13-1 [20.4 kB]
Get: 50 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-shape0-dev amd64 1.13-1 [7,144 B]
Get: 51 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cufft-10-0 10.0.130-1 [60.7 MB]
Get: 52 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-xfixes0-dev amd64 1.13-1 [11.7 kB]
Get: 53 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-sync-dev amd64 1.13-1 [10.6 kB]
Get: 54 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-present-dev amd64 1.13-1 [6,968 B]
Get: 55 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxshmfence-dev amd64 1.3-1 [3,692 B]
Get: 56 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-dri2-0-dev amd64 1.13-1 [8,476 B]
Get: 57 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxcb-glx0-dev amd64 1.13-1 [27.9 kB]
Get: 58 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-fixes-dev all 1:2018.4-4 [2,620 B]
Get: 59 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxfixes-dev amd64 1:5.0.3-1 [11.0 kB]
Get: 60 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-damage-dev all 1:2018.4-4 [2,620 B]
Get: 61 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxdamage-dev amd64 1:1.1.4-3 [5,028 B]
Get: 62 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-xext-dev all 2018.4-4 [2,620 B]
Get: 63 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxext-dev amd64 2:1.3.3-1 [82.1 kB]
Get: 64 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-xf86vidmode-dev all 2018.4-4 [2,632 B]
Get: 65 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxxf86vm-dev amd64 1:1.1.4-1 [13.3 kB]
Get: 66 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-dri2-dev all 2018.4-4 [2,620 B]
Get: 67 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 x11proto-gl-dev all 2018.4-4 [2,612 B]
Get: 68 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libgl1-mesa-dev amd64 18.0.0~rc5-1ubuntu1 [4,440 B]
Get: 69 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libglu1-mesa-dev amd64 9.0.0-2.1build1 [206 kB]
Get: 70 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libice-dev amd64 2:1.0.9-2 [46.8 kB]
Get: 71 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]
Get: 72 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxt-dev amd64 1:1.1.5-1 [395 kB]
Get: 73 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cufft-dev-10-0 10.0.130-1 [124 MB]
Get: 74 http://aptmirror.acme.com/ubuntu180401 bionic/universe amd64 freeglut3-dev amd64 2.8.1-3 [124 kB]
Get: 75 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxmu-headers all 2:1.1.2-2 [54.3 kB]
Get: 76 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxmu-dev amd64 2:1.1.2-2 [49.0 kB]
Get: 77 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 libxi-dev amd64 2:1.7.9-1 [186 kB]
Get: 78 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Get: 79 http://aptmirror.acme.com/ubuntu180401 bionic/main amd64 screen-resolution-extra all 0.17.3 [11.7 kB]
Get: 80 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-curand-10-0 10.0.130-1 [38.9 MB]
Get: 81 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-curand-dev-10-0 10.0.130-1 [58.1 MB]
Get: 82 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cusparse-10-0 10.0.130-1 [27.1 MB]
Get: 83 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-cusparse-dev-10-0 10.0.130-1 [27.2 MB]
Get: 84 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-npp-10-0 10.0.130-1 [54.2 MB]
Get: 85 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-npp-dev-10-0 10.0.130-1 [55.0 MB]
Get: 86 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvml-dev-10-0 10.0.130-1 [51.6 kB]
Get: 87 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvgraph-10-0 10.0.130-1 [12.8 MB]
Get: 88 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvgraph-dev-10-0 10.0.130-1 [33.4 MB]
Get: 89 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvjpeg-10-0 10.0.130-1 [281 kB]
Get: 90 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nvjpeg-dev-10-0 10.0.130-1 [192 kB]
Get: 91 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-nsight-compute-10-0 10.0.130-1 [188 MB]
Get: 92 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-visual-tools-10-0 10.0.130-1 [394 MB]
Get: 93 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-tools-10-0 10.0.130-1 [2,498 B]
Get: 94 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-samples-10-0 10.0.130-1 [61.5 MB]
Get: 95 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-documentation-10-0 10.0.130-1 [52.0 MB]
Get: 96 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-libraries-dev-10-0 10.0.130-1 [2,606 B]
Get: 97 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-toolkit-10-0 10.0.130-1 [2,834 B]
Get: 98 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; nvidia-modprobe 410.48-0ubuntu1 [19.1 kB]
Get: 99 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-drivers 410.48-1 [2,568 B]
Get: 100 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-libraries-10-0 10.0.130-1 [2,586 B]
Get: 101 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-runtime-10-0 10.0.130-1 [2,540 B]
Get: 102 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-demo-suite-10-0 10.0.130-1 [3,868 kB]
Get: 103 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda-10-0 10.0.130-1 [2,562 B]
Get: 104 file:/var/cuda-repo-10-0-local-10.0.130-410.48&amp;nbsp; cuda 10.0.130-1 [2,514 B]
Fetched 4,950 kB in 32s (157 kB/s)
Extracting templates from packages: 100%
dpkg: warning: downgrading libx11-6:amd64 from 2:1.6.4-3ubuntu0.1 to 2:1.6.4-3
(Reading database ... 242417 files and directories currently installed.)
Preparing to unpack .../000-libx11-6_2%3a1.6.4-3_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.4-3) over (2:1.6.4-3ubuntu0.1) ...
Selecting previously unselected package cuda-license-10-0.
Preparing to unpack .../001-cuda-license-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-license-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-misc-headers-10-0.
Preparing to unpack .../002-cuda-misc-headers-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-misc-headers-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvcc-10-0.
Preparing to unpack .../003-cuda-nvcc-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvcc-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cuobjdump-10-0.
Preparing to unpack .../004-cuda-cuobjdump-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cuobjdump-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvprune-10-0.
Preparing to unpack .../005-cuda-nvprune-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvprune-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-compiler-10-0.
Preparing to unpack .../006-cuda-compiler-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-compiler-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvdisasm-10-0.
Preparing to unpack .../007-cuda-nvdisasm-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvdisasm-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-gdb-10-0.
Preparing to unpack .../008-cuda-gdb-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-gdb-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvprof-10-0.
Preparing to unpack .../009-cuda-nvprof-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvprof-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-memcheck-10-0.
Preparing to unpack .../010-cuda-memcheck-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-memcheck-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cudart-10-0.
Preparing to unpack .../011-cuda-cudart-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cudart-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-driver-dev-10-0.
Preparing to unpack .../012-cuda-driver-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-driver-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cudart-dev-10-0.
Preparing to unpack .../013-cuda-cudart-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cudart-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cupti-10-0.
Preparing to unpack .../014-cuda-cupti-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cupti-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-gpu-library-advisor-10-0.
Preparing to unpack .../015-cuda-gpu-library-advisor-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-gpu-library-advisor-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvtx-10-0.
Preparing to unpack .../016-cuda-nvtx-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvtx-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-command-line-tools-10-0.
Preparing to unpack .../017-cuda-command-line-tools-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-command-line-tools-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nsight-10-0.
Preparing to unpack .../018-cuda-nsight-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nsight-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvvp-10-0.
Preparing to unpack .../019-cuda-nvvp-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvvp-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvrtc-10-0.
Preparing to unpack .../020-cuda-nvrtc-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvrtc-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvrtc-dev-10-0.
Preparing to unpack .../021-cuda-nvrtc-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cusolver-10-0.
Preparing to unpack .../022-cuda-cusolver-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusolver-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cusolver-dev-10-0.
Preparing to unpack .../023-cuda-cusolver-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusolver-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cublas-10-0.
Preparing to unpack .../024-cuda-cublas-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cublas-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cublas-dev-10-0.
Preparing to unpack .../025-cuda-cublas-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cublas-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cufft-10-0.
Preparing to unpack .../026-cuda-cufft-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cufft-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cufft-dev-10-0.
Preparing to unpack .../027-cuda-cufft-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cufft-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-curand-10-0.
Preparing to unpack .../028-cuda-curand-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-curand-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-curand-dev-10-0.
Preparing to unpack .../029-cuda-curand-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-curand-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cusparse-10-0.
Preparing to unpack .../030-cuda-cusparse-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusparse-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-cusparse-dev-10-0.
Preparing to unpack .../031-cuda-cusparse-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-cusparse-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-npp-10-0.
Preparing to unpack .../032-cuda-npp-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-npp-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-npp-dev-10-0.
Preparing to unpack .../033-cuda-npp-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-npp-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvml-dev-10-0.
Preparing to unpack .../034-cuda-nvml-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvgraph-10-0.
Preparing to unpack .../035-cuda-nvgraph-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvgraph-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvgraph-dev-10-0.
Preparing to unpack .../036-cuda-nvgraph-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvgraph-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvjpeg-10-0.
Preparing to unpack .../037-cuda-nvjpeg-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvjpeg-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nvjpeg-dev-10-0.
Preparing to unpack .../038-cuda-nvjpeg-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvjpeg-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-nsight-compute-10-0.
Preparing to unpack .../039-cuda-nsight-compute-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nsight-compute-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-visual-tools-10-0.
Preparing to unpack .../040-cuda-visual-tools-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-visual-tools-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-tools-10-0.
Preparing to unpack .../041-cuda-tools-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-tools-10-0 (10.0.130-1) ...
Selecting previously unselected package freeglut3:amd64.
Preparing to unpack .../042-freeglut3_2.8.1-3_amd64.deb ...
Unpacking freeglut3:amd64 (2.8.1-3) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../043-xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-dev.
Preparing to unpack .../044-x11proto-dev_2018.4-4_all.deb ...
Unpacking x11proto-dev (2018.4-4) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../045-x11proto-core-dev_2018.4-4_all.deb ...
Unpacking x11proto-core-dev (2018.4-4) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../046-libxau-dev_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../047-libxdmcp-dev_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.2-3) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../048-x11proto-input-dev_2018.4-4_all.deb ...
Unpacking x11proto-input-dev (2018.4-4) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../049-xtrans-dev_1.3.5-1_all.deb ...
Unpacking xtrans-dev (1.3.5-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../050-libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../051-libxcb1-dev_1.13-1_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.13-1) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../052-libx11-dev_2%3a1.6.4-3_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.6.4-3) ...
Selecting previously unselected package libdrm-dev:amd64.
Preparing to unpack .../053-libdrm-dev_2.4.91-2_amd64.deb ...
Unpacking libdrm-dev:amd64 (2.4.91-2) ...
Selecting previously unselected package mesa-common-dev:amd64.
Preparing to unpack .../054-mesa-common-dev_18.0.0~rc5-1ubuntu1_amd64.deb ...
Unpacking mesa-common-dev:amd64 (18.0.0~rc5-1ubuntu1) ...
Selecting previously unselected package libglvnd-core-dev:amd64.
Preparing to unpack .../055-libglvnd-core-dev_1.0.0-2ubuntu2_amd64.deb ...
Unpacking libglvnd-core-dev:amd64 (1.0.0-2ubuntu2) ...
Selecting previously unselected package libopengl0:amd64.
Preparing to unpack .../056-libopengl0_1.0.0-2ubuntu2_amd64.deb ...
Unpacking libopengl0:amd64 (1.0.0-2ubuntu2) ...
Selecting previously unselected package libglvnd-dev:amd64.
Preparing to unpack .../057-libglvnd-dev_1.0.0-2ubuntu2_amd64.deb ...
Unpacking libglvnd-dev:amd64 (1.0.0-2ubuntu2) ...
dpkg: warning: downgrading libx11-xcb1:amd64 from 2:1.6.4-3ubuntu0.1 to 2:1.6.4-3
Preparing to unpack .../058-libx11-xcb1_2%3a1.6.4-3_amd64.deb ...
Unpacking libx11-xcb1:amd64 (2:1.6.4-3) over (2:1.6.4-3ubuntu0.1) ...
Selecting previously unselected package libx11-xcb-dev:amd64.
Preparing to unpack .../059-libx11-xcb-dev_2%3a1.6.4-3_amd64.deb ...
Unpacking libx11-xcb-dev:amd64 (2:1.6.4-3) ...
Selecting previously unselected package libxcb-dri3-dev:amd64.
Preparing to unpack .../060-libxcb-dri3-dev_1.13-1_amd64.deb ...
Unpacking libxcb-dri3-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-render0-dev:amd64.
Preparing to unpack .../061-libxcb-render0-dev_1.13-1_amd64.deb ...
Unpacking libxcb-render0-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-randr0-dev:amd64.
Preparing to unpack .../062-libxcb-randr0-dev_1.13-1_amd64.deb ...
Unpacking libxcb-randr0-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-shape0-dev:amd64.
Preparing to unpack .../063-libxcb-shape0-dev_1.13-1_amd64.deb ...
Unpacking libxcb-shape0-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-xfixes0-dev:amd64.
Preparing to unpack .../064-libxcb-xfixes0-dev_1.13-1_amd64.deb ...
Unpacking libxcb-xfixes0-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-sync-dev:amd64.
Preparing to unpack .../065-libxcb-sync-dev_1.13-1_amd64.deb ...
Unpacking libxcb-sync-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-present-dev:amd64.
Preparing to unpack .../066-libxcb-present-dev_1.13-1_amd64.deb ...
Unpacking libxcb-present-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxshmfence-dev:amd64.
Preparing to unpack .../067-libxshmfence-dev_1.3-1_amd64.deb ...
Unpacking libxshmfence-dev:amd64 (1.3-1) ...
Selecting previously unselected package libxcb-dri2-0-dev:amd64.
Preparing to unpack .../068-libxcb-dri2-0-dev_1.13-1_amd64.deb ...
Unpacking libxcb-dri2-0-dev:amd64 (1.13-1) ...
Selecting previously unselected package libxcb-glx0-dev:amd64.
Preparing to unpack .../069-libxcb-glx0-dev_1.13-1_amd64.deb ...
Unpacking libxcb-glx0-dev:amd64 (1.13-1) ...
Selecting previously unselected package x11proto-fixes-dev.
Preparing to unpack .../070-x11proto-fixes-dev_1%3a2018.4-4_all.deb ...
Unpacking x11proto-fixes-dev (1:2018.4-4) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../071-libxfixes-dev_1%3a5.0.3-1_amd64.deb ...
Unpacking libxfixes-dev:amd64 (1:5.0.3-1) ...
Selecting previously unselected package x11proto-damage-dev.
Preparing to unpack .../072-x11proto-damage-dev_1%3a2018.4-4_all.deb ...
Unpacking x11proto-damage-dev (1:2018.4-4) ...
Selecting previously unselected package libxdamage-dev:amd64.
Preparing to unpack .../073-libxdamage-dev_1%3a1.1.4-3_amd64.deb ...
Unpacking libxdamage-dev:amd64 (1:1.1.4-3) ...
Selecting previously unselected package x11proto-xext-dev.
Preparing to unpack .../074-x11proto-xext-dev_2018.4-4_all.deb ...
Unpacking x11proto-xext-dev (2018.4-4) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../075-libxext-dev_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.3-1) ...
Selecting previously unselected package x11proto-xf86vidmode-dev.
Preparing to unpack .../076-x11proto-xf86vidmode-dev_2018.4-4_all.deb ...
Unpacking x11proto-xf86vidmode-dev (2018.4-4) ...
Selecting previously unselected package libxxf86vm-dev:amd64.
Preparing to unpack .../077-libxxf86vm-dev_1%3a1.1.4-1_amd64.deb ...
Unpacking libxxf86vm-dev:amd64 (1:1.1.4-1) ...
Selecting previously unselected package x11proto-dri2-dev.
Preparing to unpack .../078-x11proto-dri2-dev_2018.4-4_all.deb ...
Unpacking x11proto-dri2-dev (2018.4-4) ...
Selecting previously unselected package x11proto-gl-dev.
Preparing to unpack .../079-x11proto-gl-dev_2018.4-4_all.deb ...
Unpacking x11proto-gl-dev (2018.4-4) ...
Selecting previously unselected package libgl1-mesa-dev:amd64.
Preparing to unpack .../080-libgl1-mesa-dev_18.0.0~rc5-1ubuntu1_amd64.deb ...
Unpacking libgl1-mesa-dev:amd64 (18.0.0~rc5-1ubuntu1) ...
Selecting previously unselected package libglu1-mesa-dev:amd64.
Preparing to unpack .../081-libglu1-mesa-dev_9.0.0-2.1build1_amd64.deb ...
Unpacking libglu1-mesa-dev:amd64 (9.0.0-2.1build1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../082-libice-dev_2%3a1.0.9-2_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.9-2) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../083-libsm-dev_2%3a1.2.2-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.2-1) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../084-libxt-dev_1%3a1.1.5-1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.1.5-1) ...
Selecting previously unselected package freeglut3-dev:amd64.
Preparing to unpack .../085-freeglut3-dev_2.8.1-3_amd64.deb ...
Unpacking freeglut3-dev:amd64 (2.8.1-3) ...
Selecting previously unselected package libxmu-headers.
Preparing to unpack .../086-libxmu-headers_2%3a1.1.2-2_all.deb ...
Unpacking libxmu-headers (2:1.1.2-2) ...
Selecting previously unselected package libxmu-dev:amd64.
Preparing to unpack .../087-libxmu-dev_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmu-dev:amd64 (2:1.1.2-2) ...
Selecting previously unselected package libxi-dev:amd64.
Preparing to unpack .../088-libxi-dev_2%3a1.7.9-1_amd64.deb ...
Unpacking libxi-dev:amd64 (2:1.7.9-1) ...
Selecting previously unselected package cuda-samples-10-0.
Preparing to unpack .../089-cuda-samples-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-samples-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-documentation-10-0.
Preparing to unpack .../090-cuda-documentation-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-documentation-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-libraries-dev-10-0.
Preparing to unpack .../091-cuda-libraries-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-libraries-dev-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-toolkit-10-0.
Preparing to unpack .../092-cuda-toolkit-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-toolkit-10-0 (10.0.130-1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../093-nvidia-modprobe_410.48-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (410.48-0ubuntu1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../094-pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu2) ...
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack .../095-screen-resolution-extra_0.17.3_all.deb ...
Unpacking screen-resolution-extra (0.17.3) ...
Selecting previously unselected package libxnvctrl0:amd64.
Preparing to unpack .../096-libxnvctrl0_418.56-0ubuntu0~gpu18.04.1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (418.56-0ubuntu0~gpu18.04.1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../097-nvidia-settings_418.56-0ubuntu0~gpu18.04.1_amd64.deb ...
Unpacking nvidia-settings (418.56-0ubuntu0~gpu18.04.1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../098-cuda-drivers_410.48-1_amd64.deb ...
Unpacking cuda-drivers (410.48-1) ...
Selecting previously unselected package cuda-libraries-10-0.
Preparing to unpack .../099-cuda-libraries-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-libraries-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-runtime-10-0.
Preparing to unpack .../100-cuda-runtime-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-runtime-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-demo-suite-10-0.
Preparing to unpack .../101-cuda-demo-suite-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-demo-suite-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda-10-0.
Preparing to unpack .../102-cuda-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-10-0 (10.0.130-1) ...
Selecting previously unselected package cuda.
Preparing to unpack .../103-cuda_10.0.130-1_amd64.deb ...
Unpacking cuda (10.0.130-1) ...
Setting up libopengl0:amd64 (1.0.0-2ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Setting up libxshmfence-dev:amd64 (1.3-1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libdrm-dev:amd64 (2.4.91-2) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up libx11-6:amd64 (2:1.6.4-3) ...
Processing triggers for sgml-base (1.29) ...
Setting up x11proto-dev (2018.4-4) ...
Setting up x11proto-damage-dev (1:2018.4-4) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up libx11-xcb1:amd64 (2:1.6.4-3) ...
Setting up xtrans-dev (1.3.5-1) ...
Setting up x11proto-xext-dev (2018.4-4) ...
Setting up libxdmcp-dev:amd64 (1:1.1.2-3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libice-dev:amd64 (2:1.0.9-2) ...
Setting up screen-resolution-extra (0.17.3) ...
Setting up x11proto-gl-dev (2018.4-4) ...
Setting up nvidia-modprobe (410.48-0ubuntu1) ...
Setting up cuda-license-10-0 (10.0.130-1) ...
*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and
conditions of the EULA (End User License Agreement). The EULA is located
at /usr/local/cuda-10.0/doc/EULA.txt. The EULA can also be found at
http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the
terms and conditions of the EULA, do not use the software.

Processing triggers for man-db (2.8.3-2) ...
Setting up cuda-nsight-10-0 (10.0.130-1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Setting up cuda-nvdisasm-10-0 (10.0.130-1) ...
Setting up cuda-nvml-dev-10-0 (10.0.130-1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
Setting up cuda-nvprof-10-0 (10.0.130-1) ...
Setting up cuda-nvrtc-10-0 (10.0.130-1) ...
Setting up cuda-nvtx-10-0 (10.0.130-1) ...
Setting up libglvnd-core-dev:amd64 (1.0.0-2ubuntu2) ...
Setting up x11proto-input-dev (2018.4-4) ...
Setting up libxnvctrl0:amd64 (418.56-0ubuntu0~gpu18.04.1) ...
Setting up cuda-nvgraph-10-0 (10.0.130-1) ...
Setting up x11proto-dri2-dev (2018.4-4) ...
Setting up freeglut3:amd64 (2.8.1-3) ...
Setting up cuda-nvprune-10-0 (10.0.130-1) ...
Setting up libsm-dev:amd64 (2:1.2.2-1) ...
Setting up x11proto-core-dev (2018.4-4) ...
Setting up cuda-cusparse-10-0 (10.0.130-1) ...
Setting up cuda-cuobjdump-10-0 (10.0.130-1) ...
Setting up cuda-nvjpeg-10-0 (10.0.130-1) ...
Setting up cuda-gdb-10-0 (10.0.130-1) ...
Setting up cuda-nvjpeg-dev-10-0 (10.0.130-1) ...
Setting up cuda-cufft-10-0 (10.0.130-1) ...
Setting up cuda-nsight-compute-10-0 (10.0.130-1) ...
Setting up cuda-cudart-10-0 (10.0.130-1) ...
Setting up x11proto-fixes-dev (1:2018.4-4) ...
Setting up cuda-npp-10-0 (10.0.130-1) ...
Setting up cuda-cufft-dev-10-0 (10.0.130-1) ...
Setting up x11proto-xf86vidmode-dev (2018.4-4) ...
Setting up libxau-dev:amd64 (1:1.0.8-1) ...
Setting up libglvnd-dev:amd64 (1.0.0-2ubuntu2) ...
Setting up cuda-cusolver-10-0 (10.0.130-1) ...
Setting up cuda-misc-headers-10-0 (10.0.130-1) ...
Setting up cuda-nvvp-10-0 (10.0.130-1) ...
Setting up cuda-curand-10-0 (10.0.130-1) ...
Setting up nvidia-settings (418.56-0ubuntu0~gpu18.04.1) ...
Setting up cuda-drivers (410.48-1) ...
Setting up cuda-driver-dev-10-0 (10.0.130-1) ...
Setting up cuda-gpu-library-advisor-10-0 (10.0.130-1) ...
Setting up cuda-cublas-10-0 (10.0.130-1) ...
Setting up cuda-nvgraph-dev-10-0 (10.0.130-1) ...
Setting up cuda-cudart-dev-10-0 (10.0.130-1) ...
Setting up cuda-memcheck-10-0 (10.0.130-1) ...
Setting up cuda-nvrtc-dev-10-0 (10.0.130-1) ...
Setting up libxcb1-dev:amd64 (1.13-1) ...
Setting up libxcb-glx0-dev:amd64 (1.13-1) ...
Setting up cuda-npp-dev-10-0 (10.0.130-1) ...
Setting up libx11-dev:amd64 (2:1.6.4-3) ...
Setting up cuda-nvcc-10-0 (10.0.130-1) ...
Setting up libxxf86vm-dev:amd64 (1:1.1.4-1) ...
Setting up libxfixes-dev:amd64 (1:5.0.3-1) ...
Setting up cuda-curand-dev-10-0 (10.0.130-1) ...
Setting up libxcb-sync-dev:amd64 (1.13-1) ...
Setting up cuda-cusparse-dev-10-0 (10.0.130-1) ...
Setting up cuda-cusolver-dev-10-0 (10.0.130-1) ...
Setting up libx11-xcb-dev:amd64 (2:1.6.4-3) ...
Setting up cuda-cublas-dev-10-0 (10.0.130-1) ...
Setting up libxt-dev:amd64 (1:1.1.5-1) ...
Setting up cuda-libraries-dev-10-0 (10.0.130-1) ...
Setting up mesa-common-dev:amd64 (18.0.0~rc5-1ubuntu1) ...
Setting up libxmu-headers (2:1.1.2-2) ...
Setting up cuda-cupti-10-0 (10.0.130-1) ...
Setting up cuda-command-line-tools-10-0 (10.0.130-1) ...
Setting up cuda-visual-tools-10-0 (10.0.130-1) ...
Setting up libxdamage-dev:amd64 (1:1.1.4-3) ...
Setting up cuda-libraries-10-0 (10.0.130-1) ...
Setting up libxcb-dri2-0-dev:amd64 (1.13-1) ...
Setting up libxcb-render0-dev:amd64 (1.13-1) ...
Setting up libxcb-dri3-dev:amd64 (1.13-1) ...
Setting up libxext-dev:amd64 (2:1.3.3-1) ...
Setting up libxcb-shape0-dev:amd64 (1.13-1) ...
Setting up cuda-compiler-10-0 (10.0.130-1) ...
Setting up libxi-dev:amd64 (2:1.7.9-1) ...
Setting up cuda-runtime-10-0 (10.0.130-1) ...
Setting up libxcb-randr0-dev:amd64 (1.13-1) ...
Setting up cuda-tools-10-0 (10.0.130-1) ...
Setting up libxmu-dev:amd64 (2:1.1.2-2) ...
Setting up libxcb-xfixes0-dev:amd64 (1.13-1) ...
Setting up cuda-demo-suite-10-0 (10.0.130-1) ...
Setting up libxcb-present-dev:amd64 (1.13-1) ...
Setting up libgl1-mesa-dev:amd64 (18.0.0~rc5-1ubuntu1) ...
Setting up libglu1-mesa-dev:amd64 (9.0.0-2.1build1) ...
Setting up freeglut3-dev:amd64 (2.8.1-3) ...
Setting up cuda-samples-10-0 (10.0.130-1) ...
Setting up cuda-documentation-10-0 (10.0.130-1) ...
Setting up cuda-toolkit-10-0 (10.0.130-1) ...
Setting up cuda-10-0 (10.0.130-1) ...
Setting up cuda (10.0.130-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBmLuvr4z4tZy4Z2Ahaljd52lThdiUptDO6-zXofyvyvqKv_B5bTmd3ThgbdUoQvCtro-E55rBHUhBfCot_AiDNT0ZkqC0NQogdYIPQ0RC8CNoBh5yNt6GhA-BBY1u5RHUE47_kg/s1600/ubuntu_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;814&quot; data-original-width=&quot;982&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBmLuvr4z4tZy4Z2Ahaljd52lThdiUptDO6-zXofyvyvqKv_B5bTmd3ThgbdUoQvCtro-E55rBHUhBfCot_AiDNT0ZkqC0NQogdYIPQ0RC8CNoBh5yNt6GhA-BBY1u5RHUE47_kg/s320/ubuntu_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/1480415503889460771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/1480415503889460771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1480415503889460771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/1480415503889460771'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/Ubuntu-CUDA-apt-installation-error-The-following-packages-have-unmet-dependencies.html' title='Ubuntu: CUDA apt installation error: The following packages have unmet dependencies:'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBmLuvr4z4tZy4Z2Ahaljd52lThdiUptDO6-zXofyvyvqKv_B5bTmd3ThgbdUoQvCtro-E55rBHUhBfCot_AiDNT0ZkqC0NQogdYIPQ0RC8CNoBh5yNt6GhA-BBY1u5RHUE47_kg/s72-c/ubuntu_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.3443145 75.097360000000066 64.6096955 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-729134719469620404</id><published>2019-12-26T20:41:00.000+08:00</published><updated>2019-12-26T20:41:27.432+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Linux: how to get the total amount of memory parsable by shell scripts</title><content type='html'>To output the amount of total memory in &lt;b&gt;kilobytes&lt;/b&gt; (KB), use this command&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ awk &#39;/MemTotal/ {print $2}&#39; /proc/meminfo
47869448



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
A slightly more user-friendly display&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ cat /proc/meminfo | grep MemTotal
MemTotal:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 47869448 kB



&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTn7NfK3hoLP-M08zRw8yIDJz_l-bkw34GZO0lq0sRswdcgcGJE_SplJ3ZGOam7W-pF3JH8GjQB2K_QnrPXXy0Y-veEmWCBsdCKqRUT67DRhG7lNC6peCpH49UrCgx9tk0aGPCQ/s1600/linux_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;317&quot; data-original-width=&quot;640&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTn7NfK3hoLP-M08zRw8yIDJz_l-bkw34GZO0lq0sRswdcgcGJE_SplJ3ZGOam7W-pF3JH8GjQB2K_QnrPXXy0Y-veEmWCBsdCKqRUT67DRhG7lNC6peCpH49UrCgx9tk0aGPCQ/s320/linux_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/729134719469620404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/729134719469620404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/729134719469620404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/729134719469620404'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/linux-how-to-get-total-amount-of-memory-parsable-by-shell-scripts.html' title='Linux: how to get the total amount of memory parsable by shell scripts'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTn7NfK3hoLP-M08zRw8yIDJz_l-bkw34GZO0lq0sRswdcgcGJE_SplJ3ZGOam7W-pF3JH8GjQB2K_QnrPXXy0Y-veEmWCBsdCKqRUT67DRhG7lNC6peCpH49UrCgx9tk0aGPCQ/s72-c/linux_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>15.3443145 75.097360000000066 64.6096955 157.71454800000006</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-5276614072288539380</id><published>2019-12-25T12:41:00.001+08:00</published><updated>2019-12-30T17:58:55.741+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apt"/><category scheme="http://www.blogger.com/atom/ns#" term="GCC"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to install GCC 7 on Ubuntu 16.04</title><content type='html'>Default version of GCC on Ubuntu Xenial 16.04 is 5.3.1-1ubuntu1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
I strongly suggest you to choose Ubuntu 18.04 if you have a choice, as 
the packages available are more up to date, and the Support and End of 
Life date is much further in the future - &lt;a class=&quot;external-link&quot; href=&quot;https://wiki.ubuntu.com/Releases&quot; rel=&quot;nofollow&quot;&gt;https://wiki.ubuntu.com/Releases&lt;/a&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h2&gt;
&amp;nbsp;GCC 7 From Ubuntu Toolchains PPA&lt;/h2&gt;
GCC 7.x is not available on Ubuntu 16 by default. To get GCC 7.x, you need to &lt;a href=&quot;https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test?field.series_filter=xenial&quot;&gt;add the Ubuntu Toolchains PPA&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Install the apt pre-requisites &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo apt-get install -y software-properties-common python-software-properties&lt;br /&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the repository&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo add-apt-repository ppa:ubuntu-toolchain-r/test&lt;br /&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Install GCC 7 Toolchain&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo apt update &amp;amp;&amp;amp; sudo apt install g++-7 -y&lt;br /&gt;
Reading package lists... Done&lt;br /&gt;Building dependency tree&lt;br /&gt;Reading state information... Done&lt;br /&gt;The following package was automatically installed and is no longer required:&lt;br /&gt;&amp;nbsp; gcc-5-base:i386&lt;br /&gt;Use &#39;sudo apt autoremove&#39; to remove it.&lt;br /&gt;The following additional packages will be installed:&lt;br /&gt;&amp;nbsp; cpp-7 gcc-7 gcc-7-base gcc-8-base gcc-9-base gcc-9-base:i386 libasan4&lt;br /&gt;&amp;nbsp; libatomic1 libcc1-0 libcilkrts5 libgcc-7-dev libgcc1 libgcc1:i386 libgomp1&lt;br /&gt;&amp;nbsp; libitm1 liblsan0 libmpx2 libquadmath0 libstdc++-7-dev libstdc++6&lt;br /&gt;&amp;nbsp; libstdc++6:i386 libtsan0 libubsan0&lt;br /&gt;Suggested packages:&lt;br /&gt;&amp;nbsp; gcc-7-locales g++-7-multilib gcc-7-doc libstdc++6-7-dbg gcc-7-multilib&lt;br /&gt;&amp;nbsp; libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg&lt;br /&gt;&amp;nbsp; liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg&lt;br /&gt;&amp;nbsp; libquadmath0-dbg libstdc++-7-doc&lt;br /&gt;The following NEW packages will be installed:&lt;br /&gt;&amp;nbsp; cpp-7 g++-7 gcc-7 gcc-7-base gcc-8-base gcc-9-base gcc-9-base:i386 libasan4&lt;br /&gt;&amp;nbsp; libgcc-7-dev libmpx2 libstdc++-7-dev&lt;br /&gt;The following packages will be upgraded:&lt;br /&gt;&amp;nbsp; libatomic1 libcc1-0 libcilkrts5 libgcc1 libgcc1:i386 libgomp1 libitm1&lt;br /&gt;&amp;nbsp; liblsan0 libquadmath0 libstdc++6 libstdc++6:i386 libtsan0 libubsan0&lt;br /&gt;13 upgraded, 11 newly installed, 0 to remove and 36 not upgraded.&lt;br /&gt;Need to get 28.0 MB of archives.&lt;br /&gt;After this operation, 109 MB of additional disk space will be used.&lt;br /&gt;Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-9-base amd64 9.2.1-17ubuntu1~16.04 [18.9 kB]&lt;br /&gt;Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main i386 gcc-9-base i386 9.2.1-17ubuntu1~16.04 [18.9 kB]&lt;br /&gt;Get:3 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main i386 libgcc1 i386 1:9.2.1-17ubuntu1~16.04 [48.0 kB]&lt;br /&gt;Get:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgcc1 amd64 1:9.2.1-17ubuntu1~16.04 [40.6 kB]&lt;br /&gt;Get:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main i386 libstdc++6 i386 9.2.1-17ubuntu1~16.04 [556 kB]&lt;br /&gt;Get:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libstdc++6 amd64 9.2.1-17ubuntu1~16.04 [516 kB]&lt;br /&gt;Get:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-7-base amd64 7.4.0-1ubuntu1~16.04~ppa1 [18.8 kB]&lt;br /&gt;Get:8 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-8-base amd64 8.3.0-16ubuntu3~16.04 [18.3 kB]&lt;br /&gt;Get:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 cpp-7 amd64 7.4.0-1ubuntu1~16.04~ppa1 [6,678 kB]&lt;br /&gt;Get:10 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libcc1-0 amd64 9.2.1-17ubuntu1~16.04 [40.3 kB]&lt;br /&gt;Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgomp1 amd64 9.2.1-17ubuntu1~16.04 [89.1 kB]&lt;br /&gt;Get:12 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libitm1 amd64 9.2.1-17ubuntu1~16.04 [27.8 kB]&lt;br /&gt;Get:13 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libatomic1 amd64 9.2.1-17ubuntu1~16.04 [9,096 B]&lt;br /&gt;Get:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libasan4 amd64 7.4.0-1ubuntu1~16.04~ppa1 [360 kB]&lt;br /&gt;Get:15 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 liblsan0 amd64 9.2.1-17ubuntu1~16.04 [139 kB]&lt;br /&gt;Get:16 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libtsan0 amd64 9.2.1-17ubuntu1~16.04 [301 kB]&lt;br /&gt;Get:17 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libubsan0 amd64 7.4.0-1ubuntu1~16.04~ppa1 [126 kB]&lt;br /&gt;Get:18 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libcilkrts5 amd64 7.4.0-1ubuntu1~16.04~ppa1 [42.4 kB]&lt;br /&gt;Get:19 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libmpx2 amd64 8.3.0-16ubuntu3~16.04 [11.6 kB]&lt;br /&gt;Get:20 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libquadmath0 amd64 9.2.1-17ubuntu1~16.04 [145 kB]&lt;br /&gt;Get:21 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgcc-7-dev amd64 7.4.0-1ubuntu1~16.04~ppa1 [2,382 kB]&lt;br /&gt;Get:22 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-7 amd64 7.4.0-1ubuntu1~16.04~ppa1 [7,394 kB]&lt;br /&gt;Get:23 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~16.04~ppa1 [1,475 kB]&lt;br /&gt;Get:24 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 g++-7 amd64 7.4.0-1ubuntu1~16.04~ppa1 [7,507 kB]&lt;br /&gt;Fetched 28.0 MB in 2min 9s (216 kB/s)&lt;br /&gt;Selecting previously unselected package gcc-9-base:amd64.&lt;br /&gt;(Reading database ... 298106 files and directories currently installed.)&lt;br /&gt;Preparing to unpack .../gcc-9-base_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking gcc-9-base:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Selecting previously unselected package gcc-9-base:i386.&lt;br /&gt;Preparing to unpack .../gcc-9-base_9.2.1-17ubuntu1~16.04_i386.deb ...&lt;br /&gt;Unpacking gcc-9-base:i386 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up gcc-9-base:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up gcc-9-base:i386 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;(Reading database ... 298114 files and directories currently installed.)&lt;br /&gt;Preparing to unpack .../libgcc1_1%3a9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;De-configuring libgcc1:i386 (1:6.0.1-0ubuntu1) ...&lt;br /&gt;Unpacking libgcc1:amd64 (1:9.2.1-17ubuntu1~16.04) over (1:6.0.1-0ubuntu1) ...&lt;br /&gt;Preparing to unpack .../libgcc1_1%3a9.2.1-17ubuntu1~16.04_i386.deb ...&lt;br /&gt;Unpacking libgcc1:i386 (1:9.2.1-17ubuntu1~16.04) over (1:6.0.1-0ubuntu1) ...&lt;br /&gt;Preparing to unpack .../libstdc++6_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;De-configuring libstdc++6:i386 (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Unpacking libstdc++6:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libstdc++6_9.2.1-17ubuntu1~16.04_i386.deb ...&lt;br /&gt;Unpacking libstdc++6:i386 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Selecting previously unselected package gcc-7-base:amd64.&lt;br /&gt;Preparing to unpack .../gcc-7-base_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking gcc-7-base:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Selecting previously unselected package gcc-8-base:amd64.&lt;br /&gt;Preparing to unpack .../gcc-8-base_8.3.0-16ubuntu3~16.04_amd64.deb ...&lt;br /&gt;Unpacking gcc-8-base:amd64 (8.3.0-16ubuntu3~16.04) ...&lt;br /&gt;Selecting previously unselected package cpp-7.&lt;br /&gt;Preparing to unpack .../cpp-7_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking cpp-7 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Preparing to unpack .../libcc1-0_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking libcc1-0:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libgomp1_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking libgomp1:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libitm1_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking libitm1:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libatomic1_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking libatomic1:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Selecting previously unselected package libasan4:amd64.&lt;br /&gt;Preparing to unpack .../libasan4_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking libasan4:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Preparing to unpack .../liblsan0_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking liblsan0:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libtsan0_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking libtsan0:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libubsan0_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking libubsan0:amd64 (7.4.0-1ubuntu1~16.04~ppa1) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Preparing to unpack .../libcilkrts5_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking libcilkrts5:amd64 (7.4.0-1ubuntu1~16.04~ppa1) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Selecting previously unselected package libmpx2:amd64.&lt;br /&gt;Preparing to unpack .../libmpx2_8.3.0-16ubuntu3~16.04_amd64.deb ...&lt;br /&gt;Unpacking libmpx2:amd64 (8.3.0-16ubuntu3~16.04) ...&lt;br /&gt;Preparing to unpack .../libquadmath0_9.2.1-17ubuntu1~16.04_amd64.deb ...&lt;br /&gt;Unpacking libquadmath0:amd64 (9.2.1-17ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.12) ...&lt;br /&gt;Selecting previously unselected package libgcc-7-dev:amd64.&lt;br /&gt;Preparing to unpack .../libgcc-7-dev_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking libgcc-7-dev:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Selecting previously unselected package gcc-7.&lt;br /&gt;Preparing to unpack .../gcc-7_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking gcc-7 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Selecting previously unselected package libstdc++-7-dev:amd64.&lt;br /&gt;Preparing to unpack .../libstdc++-7-dev_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Selecting previously unselected package g++-7.&lt;br /&gt;Preparing to unpack .../g++-7_7.4.0-1ubuntu1~16.04~ppa1_amd64.deb ...&lt;br /&gt;Unpacking g++-7 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Processing triggers for libc-bin (2.23-0ubuntu10) ...&lt;br /&gt;Processing triggers for man-db (2.7.5-1) ...&lt;br /&gt;Setting up libgcc1:i386 (1:9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libgcc1:amd64 (1:9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libstdc++6:i386 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libstdc++6:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up gcc-7-base:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up gcc-8-base:amd64 (8.3.0-16ubuntu3~16.04) ...&lt;br /&gt;Setting up cpp-7 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up libcc1-0:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libgomp1:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libitm1:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libatomic1:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libasan4:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up liblsan0:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libtsan0:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libubsan0:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up libcilkrts5:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up libmpx2:amd64 (8.3.0-16ubuntu3~16.04) ...&lt;br /&gt;Setting up libquadmath0:amd64 (9.2.1-17ubuntu1~16.04) ...&lt;br /&gt;Setting up libgcc-7-dev:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up gcc-7 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Setting up g++-7 (7.4.0-1ubuntu1~16.04~ppa1) ...&lt;br /&gt;Processing triggers for libc-bin (2.23-0ubuntu10) ...&lt;br /&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Set Default GCC Tools to 7&lt;/h2&gt;
You probably want your &quot;gcc&quot; command to be gcc &amp;amp; instead of the default GCC 5. Use &quot;update-alternatives&quot; to set the default version&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo update-alternatives \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/g++ g++ /usr/bin/g++-7 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-7 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-7 \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-7


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Check that the default version of the tools is set to 7.4.0&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0&lt;br /&gt;Copyright (C) 2017 Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions.&amp;nbsp; There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;&lt;br /&gt;$ g++ --version&lt;br /&gt;g++ (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1) 7.4.0&lt;br /&gt;Copyright (C) 2017 Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions.&amp;nbsp; There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjcyTHDNXC02pZQxD5Co342yMSwbXNX1yhyphenhyphenoK-M9bBKJUFyO1hQAcbrMMfOxf7BxySpA5-nOmRHvPcOQlcxNToaKDsxAHb4uw8_s4LkgbfPuarOfxUfyOQBz4fRDX7n1-et74Jsw/s1600/ubuntu_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;814&quot; data-original-width=&quot;982&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjcyTHDNXC02pZQxD5Co342yMSwbXNX1yhyphenhyphenoK-M9bBKJUFyO1hQAcbrMMfOxf7BxySpA5-nOmRHvPcOQlcxNToaKDsxAHb4uw8_s4LkgbfPuarOfxUfyOQBz4fRDX7n1-et74Jsw/s320/ubuntu_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/5276614072288539380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/5276614072288539380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/5276614072288539380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/5276614072288539380'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/how-to-install-gcc-7-on-ubuntu-1604.html' title='How to install GCC 7 on Ubuntu 16.04'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjcyTHDNXC02pZQxD5Co342yMSwbXNX1yhyphenhyphenoK-M9bBKJUFyO1hQAcbrMMfOxf7BxySpA5-nOmRHvPcOQlcxNToaKDsxAHb4uw8_s4LkgbfPuarOfxUfyOQBz4fRDX7n1-et74Jsw/s72-c/ubuntu_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Anzhenmen, Chaoyang Qu, Beijing Shi, China</georss:featurename><georss:point>39.977005 116.40595400000007</georss:point><georss:box>39.9754845 116.40343250000006 39.978525499999996 116.40847550000007</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-3162606346555936090</id><published>2019-12-20T13:06:00.000+08:00</published><updated>2019-12-20T13:06:09.307+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><title type='text'>How to fix Failed to initialize NVML - Driver/library version mismatch</title><content type='html'>This error happens:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
most likely due to upgrading the NVIDIA driver, and the old drivers are still loaded.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Reboot&lt;/h2&gt;
The first step you should do after successfully installing a new version of NVIDIA GPU driver is to reboot the server. Reboot should automatically resolve the issue.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Unload NVIDIA kernel module&lt;/h2&gt;
&lt;br /&gt;
If reboot does not help, you will need to manually unload all the NVIDIA kernel modules.&lt;br /&gt;
&lt;br /&gt;
Check to see which modules are loaded&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ lsmod | grep nvidia
nvidia_uvm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 634880&amp;nbsp; 8
nvidia_drm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 53248&amp;nbsp; 0
nvidia_modeset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 790528&amp;nbsp; 1 nvidia_drm
nvidia&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12312576&amp;nbsp; 86 nvidia_modeset,nvidia_uvm



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Unload the kernel module&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo rmmod nvidia_drm
sudo rmmod nvidia_modeset
sudo rmmod nvidia_uvm
sudo rmmod nvidi



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Note&lt;/b&gt;: You need to follow the sequence above, or else you will get error about dependencies.&lt;br /&gt;
&lt;br /&gt;
The error below means some processes are still using the GPU.&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
rmmod: ERROR: Module nvidia is in use


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Check which processes are using the GPU and terminate them&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo lsof /dev/nvidia*


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Reload the NVIDIA kernel modules&lt;/h3&gt;
&lt;br /&gt;
Finally, run nvidia-smi&amp;nbsp; to reload the new kernel modules&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ nvidia-smi
Fri Nov 22 09:48:00 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Driver Version: 410.104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUDA Version: 10.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
|-------------------------------+----------------------+----------------------+
| GPU&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Persistence-M| Bus-Id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disp.A | Volatile Uncorr. ECC |
| Fan&amp;nbsp; Temp&amp;nbsp; Perf&amp;nbsp; Pwr:Usage/Cap|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory-Usage | GPU-Util&amp;nbsp; Compute M. |
|===============================+======================+======================|
|&amp;nbsp;&amp;nbsp; 0&amp;nbsp; Tesla P100-PCIE...&amp;nbsp; Off&amp;nbsp; | 00000000:3B:00.0 Off |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 |
| N/A&amp;nbsp;&amp;nbsp; 24C&amp;nbsp;&amp;nbsp;&amp;nbsp; P0&amp;nbsp;&amp;nbsp;&amp;nbsp; 24W / 250W |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0MiB / 12198MiB |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Default |
+-------------------------------+----------------------+----------------------+
|&amp;nbsp;&amp;nbsp; 1&amp;nbsp; Tesla P100-PCIE...&amp;nbsp; Off&amp;nbsp; | 00000000:AF:00.0 Off |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 |
| N/A&amp;nbsp;&amp;nbsp; 29C&amp;nbsp;&amp;nbsp;&amp;nbsp; P0&amp;nbsp;&amp;nbsp;&amp;nbsp; 29W / 250W |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0MiB / 12198MiB |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Default |
+-------------------------------+----------------------+----------------------+
|&amp;nbsp;&amp;nbsp; 2&amp;nbsp; Tesla P100-PCIE...&amp;nbsp; Off&amp;nbsp; | 00000000:D8:00.0 Off |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 |
| N/A&amp;nbsp;&amp;nbsp; 28C&amp;nbsp;&amp;nbsp;&amp;nbsp; P0&amp;nbsp;&amp;nbsp;&amp;nbsp; 24W / 250W |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0MiB / 12198MiB |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPU Memory |
|&amp;nbsp; GPU&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PID&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp; Process name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Usage&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
|=============================================================================|
|&amp;nbsp; No running processes found&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |
+-----------------------------------------------------------------------------+
&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOlJGWIFFFcIArW0Z7cjvAE1iT60BMBFUYMB5beMDaPLuMluZF1E-No7klPnAeCyJEZjU1I2E3smIe9o_jp0sZxCMBOXp_bRtuEiILJoMXgmpDtB7c7syBMZiG0-umuJW95wocZg/s1600/Nvidia_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;945&quot; data-original-width=&quot;1280&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOlJGWIFFFcIArW0Z7cjvAE1iT60BMBFUYMB5beMDaPLuMluZF1E-No7klPnAeCyJEZjU1I2E3smIe9o_jp0sZxCMBOXp_bRtuEiILJoMXgmpDtB7c7syBMZiG0-umuJW95wocZg/s320/Nvidia_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/3162606346555936090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/3162606346555936090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/3162606346555936090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/3162606346555936090'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/12/nvidia-how-to-fix-failed-to-initialize-nvml-driver-library-version-mismatch.html' title='How to fix Failed to initialize NVML - Driver/library version mismatch'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOlJGWIFFFcIArW0Z7cjvAE1iT60BMBFUYMB5beMDaPLuMluZF1E-No7klPnAeCyJEZjU1I2E3smIe9o_jp0sZxCMBOXp_bRtuEiILJoMXgmpDtB7c7syBMZiG0-umuJW95wocZg/s72-c/Nvidia_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Nan Luo Gu Xiang, Dongcheng Qu, Beijing Shi, China</georss:featurename><georss:point>39.9371015 116.40315169999997</georss:point><georss:box>39.9249265 116.38298169999997 39.949276499999996 116.42332169999996</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-2219508261629617440</id><published>2019-11-21T11:26:00.000+08:00</published><updated>2019-11-21T11:26:50.980+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chocolatey"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>How to upgrade all outdated chocolatey packages</title><content type='html'>Let&#39;s first list out all outdated packages with &lt;kbd&gt;choco outdated&lt;/kbd&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ choco outdated
Chocolatey v0.10.15
Outdated Packages
&amp;nbsp;Output is package name | current version | available version | pinned?

adb|28.0.3|29.0.5|false
adwcleaner|7.3|7.4.1|false
autohotkey.portable|1.1.30.03|1.1.31.01|false
chocolatey-core.extension|1.3.3|1.3.5|false
cloc|1.80|1.82|false
Cmder|1.3.11|1.3.12|false
ConEmu|19.5.26.0|19.10.12.0|false
cuda|10.1.168|10.1.243|false
docker-desktop|2.0.0.3|2.1.0.5|false
dotnetfx|4.7.2.20180712|4.8.0.20190930|false
f.lux|4.104|4.111|false
ffmpeg|4.1.3|4.2.1|false
fiddler|5.0.20192.25091|5.0.20194.41348|false
flashplayerplugin|32.0.0.255|32.0.0.293|false
Ghostscript|9.27|9.50|false
Ghostscript.app|9.27|9.50|false
git.install|2.22.0|2.24.0.2|false
gogs|0.11.86|0.11.91|false
golang|1.12.6|1.13.4|false
gpu-z|2.21.0|2.26.0|false
handbrake|1.2.2|1.3.0|false
handbrake.install|1.2.2|1.3.0|false
heidisql|10.1.0.5464|10.2.0.559900|false
imageglass|6.0.12.29|7.0.7.26|false
imagemagick|7.0.8.48|7.0.9.5|false
imagemagick.app|7.0.8.48|7.0.9.5|false
kitty|0.71.0.3|0.73.1.1|false
malwarebytes|3.8.3.296511868|3.8.3.296513137|false
mobaxterm|12.1.0|12.3.0|false
nodejs-lts|10.16.0|12.13.1|false
paint.net|4.1.6|4.2.5|false
peazip|6.8.0|6.9.2|false
peazip.install|6.8.0|6.9.2|false
pgadmin4|4.8|4.14|false
picpick.portable|5.0.4|5.0.6|false
postgresql|10.6.0.20190131|12.1|false
postgresql10|10.6.0.0|10.11|false
putty|0.71|0.73|false
putty.portable|0.71|0.73|false
python|3.7.3|3.8.0|false
python3|3.7.3|3.8.0|false
qownnotes|19.7|19.11.17|false
rust|1.36.0|1.39.0.20191117|false
seafile-client|7.0.2|7.0.4|false
shadowsocks|4.1.6|4.1.8.0|false
sourcetree|3.1.3|3.2.6|false
spotify|1.1.12.449|1.1.19.480|false
SQLite|3.28.0|3.30.1|false
sysinternals|2019.6.14|2019.9.23|false
vcredist140|14.21.27702.2|14.23.27820|false
veracrypt|1.23.2|1.24.20191107|false
vlc|3.0.7|3.0.8|false
vnc-viewer|6.19.325|6.19.1115|false
vscode|1.35.0|1.40.1|false
winscp|5.15.2|5.15.5|false
winscp.install|5.15.2|5.15.5|false
wireshark|3.0.2|3.0.6|false
yarn|1.17.3|1.19.1|false
youtube-dl|2019.09.01|2019.11.05|false

Chocolatey has determined 59 package(s) are outdated.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Next, use &lt;kbd&gt;cup all -y&lt;/kbd&gt; to upgrade all of those outdated packages&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ cup all -y
Chocolatey v0.10.15
Upgrading the following packages:
all
By upgrading you accept licenses for the packages.
7zip v19.0 is the latest version available based on your source(s).
7zip.install v19.0 is the latest version available based on your source(s).

You have adb v28.0.3 installed. Version 29.0.5 is available based on your source(s).
Progress: Downloading adb 29.0.5... 100%

adb v29.0.5 [Approved]
adb package files upgrade completed. Performing other installation steps.
Downloading adb
&amp;nbsp; from &#39;https://dl-ssl.google.com/android/repository/platform-tools_r29.0.5-windows.zip&#39;
Progress: 100% - Completed download of C:\Users\hanxuel\AppData\Local\Temp\chocolatey\adb\29.0.5\platform-tools_r29.0.5-windows.zip (6.83 MB).
Download of platform-tools_r29.0.5-windows.zip (6.83 MB) completed.
Hashes match.
Extracting C:\Users\hanxuel\AppData\Local\Temp\chocolatey\adb\29.0.5\platform-tools_r29.0.5-windows.zip to C:\ProgramData\chocolatey\lib\adb\tools...
C:\ProgramData\chocolatey\lib\adb\tools
&amp;nbsp;ShimGen has successfully created a shim for adb.exe
&amp;nbsp;ShimGen has successfully created a shim for fastboot.exe
&amp;nbsp;ShimGen has successfully created a shim for make_f2fs.exe
&amp;nbsp;ShimGen has successfully created a shim for mke2fs.exe
&amp;nbsp;The upgrade of adb was successful.


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also upgrade individual package with&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ cup adb


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
λ choco upgrade adb


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information on upgrading Chocolatey packages, refer to &lt;a href=&quot;https://chocolatey.org/docs/commandsupgrade&quot;&gt;https://chocolatey.org/docs/commandsupgrade&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJojmf3tMTTIEH7N02Z9xNUwJVZz91-DJZXWNA354mKUhW78DI2UsIIvDhr3PDq3vg4awFsG3wxjJRDrD7JZzq_hwvNaGl0aiPKZVV_flov_6C4Isj8CR6p2JziwPRgO_b-FOv_A/s1600/chocolatey_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;875&quot; data-original-width=&quot;1300&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJojmf3tMTTIEH7N02Z9xNUwJVZz91-DJZXWNA354mKUhW78DI2UsIIvDhr3PDq3vg4awFsG3wxjJRDrD7JZzq_hwvNaGl0aiPKZVV_flov_6C4Isj8CR6p2JziwPRgO_b-FOv_A/s320/chocolatey_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/2219508261629617440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/2219508261629617440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2219508261629617440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2219508261629617440'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/11/how-to-upgrade-all-outdated-chocolatey.html' title='How to upgrade all outdated chocolatey packages'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJojmf3tMTTIEH7N02Z9xNUwJVZz91-DJZXWNA354mKUhW78DI2UsIIvDhr3PDq3vg4awFsG3wxjJRDrD7JZzq_hwvNaGl0aiPKZVV_flov_6C4Isj8CR6p2JziwPRgO_b-FOv_A/s72-c/chocolatey_logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Wudaokou, Haidian, Beijing, China</georss:featurename><georss:point>39.992419 116.33937000000003</georss:point><georss:box>39.9680885 116.29902950000003 40.016749499999996 116.37971050000003</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-2957965357107519335</id><published>2019-09-28T12:26:00.003+08:00</published><updated>2019-09-28T12:26:48.938+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ffmpeg"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>ffmpeg: default: No such process</title><content type='html'>You might be &lt;a href=&quot;https://superuser.com/a/1487111/98584&quot;&gt;running ffmpeg and performing encoding/decoding&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
ffmpeg -f x11grab -s 1824x984 -framerate 15 -i :0.0 -f pulse -ac 2 -i default -c:v libx264 -preset fast -pix_fmt yuv420p -s 1280x800 -c:a aac -b:a 160k -ar 44100 -threads 0 -f flv &quot;rtmp://a.rtmp.youtube.com/live2/key&quot;


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
and get this error message&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
&amp;nbsp; configuration: --prefix=/usr --extra-version=&#39;1~deb9u1+rpt1&#39; --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
&amp;nbsp; libavutil&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55. 34.101 / 55. 34.101
&amp;nbsp; libavcodec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 57. 64.101 / 57. 64.101
&amp;nbsp; libavformat&amp;nbsp;&amp;nbsp;&amp;nbsp; 57. 56.101 / 57. 56.101
&amp;nbsp; libavdevice&amp;nbsp;&amp;nbsp;&amp;nbsp; 57.&amp;nbsp; 1.100 / 57.&amp;nbsp; 1.100
&amp;nbsp; libavfilter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. 65.100 /&amp;nbsp; 6. 65.100
&amp;nbsp; libavresample&amp;nbsp;&amp;nbsp; 3.&amp;nbsp; 1.&amp;nbsp; 0 /&amp;nbsp; 3.&amp;nbsp; 1.&amp;nbsp; 0
&amp;nbsp; libswscale&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.&amp;nbsp; 2.100 /&amp;nbsp; 4.&amp;nbsp; 2.100
&amp;nbsp; libswresample&amp;nbsp;&amp;nbsp; 2.&amp;nbsp; 3.100 /&amp;nbsp; 2.&amp;nbsp; 3.100
&amp;nbsp; libpostproc&amp;nbsp;&amp;nbsp;&amp;nbsp; 54.&amp;nbsp; 1.100 / 54.&amp;nbsp; 1.100
[x11grab @ 0x2211710] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from &#39;:0.0&#39;:
&amp;nbsp; Duration: N/A, start: 1569634587.235443, bitrate: N/A
&amp;nbsp;&amp;nbsp;&amp;nbsp; Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1824x984, 15 fps, 1000k tbr, 1000k tbn, 1000k tbc
default: No such process



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Or perhaps audio capture on Linux&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i default output.mkv



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
and get this error message&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
ffmpeg exited with code 1: default: No such process



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
PulseAudio&lt;/h3&gt;
In the two scenarios above, the PulseAudio application is missing. Install PulseAudio to solve the problem.&lt;br /&gt;
&lt;br /&gt;
Here is how to install them on popular Linux distributions.&lt;br /&gt;
&lt;br /&gt;
Debian or Ubuntu&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo apt-get install pulseaudio-equalizer



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Fedora&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo dnf install pulseaudio-equalizer



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
CentOS and other RPM based distributions&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo yum install pulseaudio-equalizer



&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
ArchLinux&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
sudo pacman -S pulseaudio-equalizer


&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheIcMf_Bdu7aaLcNYtXiTcG8cxAne3BjdAjdnxUlmfiedI1DK_u3t1EkxqHYrCLPx6wXbnWGxKyyduKjb9YXhU2opw5vHzG5E2VQEmRraGnUWEbX-DQ9MccRuM8YKlthLPBZMeUQ/s1600/FFmpeg-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;315&quot; data-original-width=&quot;1280&quot; height=&quot;78&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheIcMf_Bdu7aaLcNYtXiTcG8cxAne3BjdAjdnxUlmfiedI1DK_u3t1EkxqHYrCLPx6wXbnWGxKyyduKjb9YXhU2opw5vHzG5E2VQEmRraGnUWEbX-DQ9MccRuM8YKlthLPBZMeUQ/s320/FFmpeg-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/2957965357107519335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/2957965357107519335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2957965357107519335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2957965357107519335'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/09/ffmpeg-default-no-such-process.html' title='ffmpeg: default: No such process'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheIcMf_Bdu7aaLcNYtXiTcG8cxAne3BjdAjdnxUlmfiedI1DK_u3t1EkxqHYrCLPx6wXbnWGxKyyduKjb9YXhU2opw5vHzG5E2VQEmRraGnUWEbX-DQ9MccRuM8YKlthLPBZMeUQ/s72-c/FFmpeg-Logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Nan Luo Gu Xiang, Dongcheng Qu, Beijing Shi, China</georss:featurename><georss:point>39.9371015 116.40315169999997</georss:point><georss:box>39.9249265 116.38298169999997 39.949276499999996 116.42332169999996</georss:box></entry><entry><id>tag:blogger.com,1999:blog-32920558.post-2200364830499463009</id><published>2019-09-24T14:36:00.001+08:00</published><updated>2019-09-24T14:36:27.849+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="octave"/><title type='text'>Installing Octave 5.1.0 dependencies</title><content type='html'>The following dependencies are needed on&amp;nbsp; CentOS 7.4 to run Octave 5.1.0&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;&lt;code&gt;
$ sudo yum install arpack portaudio alsa-lib jack-audio-connection-kit libffado libxml++ fontconfig libsndfile sundials-devel epstool gnuplot hdf5 java-1.8.0-openjdk-headless mesa-libGLU GraphicsMagick-c++ qt libX11 suitesparse libcurl&amp;nbsp; fftw-libs-double fltk freetype libgcc libgfortran gl2ps glpk ncurses-libs pcre qhull qrupdate qscintilla libquadmath readline libstdc++ atlas zlib texinfo


&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3gcxnsB_59vb21crD_R4XMA6raMsaYMNEEh_kAQZfbbxf__f6F25WP7XtQQ-aMXbOMm4_UVUTpIO5twfcHxa6n2RLHTb9Tf_200GV70_CqCGjXlYBo5IzR_iClZ50lUD2OVfChA/s1600/gnu-octave-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;171&quot; data-original-width=&quot;300&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3gcxnsB_59vb21crD_R4XMA6raMsaYMNEEh_kAQZfbbxf__f6F25WP7XtQQ-aMXbOMm4_UVUTpIO5twfcHxa6n2RLHTb9Tf_200GV70_CqCGjXlYBo5IzR_iClZ50lUD2OVfChA/s400/gnu-octave-logo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://flummox-engineering.blogspot.com/feeds/2200364830499463009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/32920558/2200364830499463009' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2200364830499463009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32920558/posts/default/2200364830499463009'/><link rel='alternate' type='text/html' href='http://flummox-engineering.blogspot.com/2019/09/installing-octave-510-dependencies.html' title='Installing Octave 5.1.0 dependencies'/><author><name>Hanxue</name><uri>http://www.blogger.com/profile/14117444242661786533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3gcxnsB_59vb21crD_R4XMA6raMsaYMNEEh_kAQZfbbxf__f6F25WP7XtQQ-aMXbOMm4_UVUTpIO5twfcHxa6n2RLHTb9Tf_200GV70_CqCGjXlYBo5IzR_iClZ50lUD2OVfChA/s72-c/gnu-octave-logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Wudaokou, Haidian, Beijing, China</georss:featurename><georss:point>39.992419 116.33937000000003</georss:point><georss:box>39.9680885 116.29902950000003 40.016749499999996 116.37971050000003</georss:box></entry></feed>