How to install ia32-libs in Ubuntu 14.04 LTS (Trusty Tahr)

You can try this to install the 32-bit library (not all in ia32-libs): sudo apt-get install program:i386 sudo dpkg –add-architecture i386 may be required (if you haven’t ever run that). Or if you want to install the whole ia32-lib instead, try the following order: sudo -i cd /etc/apt/sources.list.d echo “deb raring main restricted universe … Read more

How to download all files (but not HTML) from a website using wget?

To filter for specific file extensions: wget -A pdf,jpg -m -p -E -k -K -np http://site/path/ Or, if you prefer long option names: wget –accept pdf,jpg –mirror –page-requisites –adjust-extension –convert-links –backup-converted –no-parent http://site/path/ This will mirror the site, but the files without jpg or pdf extension will be automatically removed.

How to Compile 32-bit Apps on 64-bit Ubuntu?

This is known to work on Ubuntu 16.04 through 22.04: sudo apt install gcc-multilib g++-multilib Then a minimal hello world: main.c #include <stdio.h> int main(void) { puts(“hello world”); return 0; } compiles without warning with: gcc -m32 -ggdb3 -O0 -pedantic-errors -std=c89 \ -Wall -Wextra -pedantic -o main.out main.c And ./main.out outputs: hello world And: file … Read more

Trying to include a library, but keep getting ‘undefined reference to’ messages

The trick here is to put the library AFTER the module you are compiling. The problem is a reference thing. The linker resolves references in order, so when the library is BEFORE the module being compiled, the linker gets confused and does not think that any of the functions in the library are needed. By … Read more

Error in python after ‘import tensorflow’: TypeError: __init__() got an unexpected keyword argument ‘syntax’

Several users have reported issues that arise when an older version of protobuf is installed. TensorFlow requires (and uses a copy of) protobuf-3.0.0a4. However it seems to be conflicting with your installed version (perhaps due to how the PYTHONPATH environment variable is configured on your system?). Can you try uninstalling the python-protobuf package if it … Read more

Docker missing layer IDs in output

As mentioned in your issue 20131, this could be the consequence of the new docker 1.10 content addressability migration From the Docker blog post: Starting from v1.10 we completely change the way Docker addresses the image data on disk. Previously, every image and layer used a randomly assigned UUID. In 1.10 we implemented a content … Read more

apt-get update’ returned a non-zero code: 100

Because you have an https sources. Install apt-transport-https before executing update. FROM ubuntu:14.04.4 RUN apt-get update && apt-get install -y apt-transport-https RUN echo ‘deb HDP main’ >> /etc/apt/sources.list.d/HDP.list RUN echo ‘deb HDP-UTILS main’ >> /etc/apt/sources.list.d/HDP.list RUN echo ‘deb [arch=amd64] trusty main’ >> /etc/apt/sources.list.d/azure-public-trusty.list …. Rest of your Dockerfile.