星期一, 8月 07, 2017

[Linux] Compiler environment for Ubuntu


sudo apt-get update
sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev xterm make \
xsltproc docbook-utils fop dblatex xmlto autoconf automake libtool \
libglib2.0-dev python-gtk2 bsdmainutils screen lib32stdc++6 lib32z1 \
libssl-dev curl u-boot-tools maven cmake

如果在update時出現錯誤訊息,

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release 
W: Some index files failed to download. They have been ignored, or old ones used instead.

那代表google改了他的key,所以重新把key加入就好。

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -


Ref

沒有留言: