Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, 7 March 2022

Configuring Hashicorp repositories in Linux Mint (and other Ubuntu based distributions)

Hashicorp distributes Packer and Terraform as both binaries and packages for popular Linux distributions.  

They also have a handy apt repository for use with Ubuntu and Debian, but it generates a 404 error during apt-get update with other derivatives:

e.g.
Err: 9 https://apt.releases.hashicorp.com ulyssa Release
404  Not Found [IP: 151.101.2.49 443]

The reason is the respository only appears to contain branches for the Ubuntu and Debian codenames.

The solution is to edit the sources list and change it to use the equivalent Ubuntu/Debian codename instead:

  • Edit /etc/apt/sources.list.d/additional-repositories.list with your text editor of choice
  • The line that contains apt.releases.hashicorp.com will have the distribution codename in it
    • e.g. for Linux Mint 20.1 which has codeame ulyssa:
    • deb [arch=amd64] https://apt.releases.hashicorp.com ulyssa main
    • (use lsb_release -a to identify the codename)
  • Change the codename in the entry to the equivalent Ubuntu or Debian codename
    • deb [arch=amd64] https://apt.releases.hashicorp.com focal main
Then update the apt repository list and it should find the packages when you try to install Terraform or Packer with apt-get install





Thursday, 2 July 2020

Error after docker upgrade: "docker: Error response from daemon: OCI runtime create failed"

After upgrading docker and docker cli (CentOS 7), a previously working container decided to bomb out with the following error: 

docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"write /proc/self/attr/keycreate: permission denied\"": unknown. 

 It turns out that container-selinux also needs to upgraded to match.  

e.g. run yum upgrade docker-ce.x86_64 docker-ce-cli.x86_64 container-selinux 

Wednesday, 12 March 2014

Changing network settings in Linux

Change IP
ifconfig eth0 192.168.0.10 netmask 255.255.255.0 up
or edit configs:
Debian / Ubuntu: /etc/network/interfaces
Redhat: /etc/sysconfig/network/network-scripts/ifcfg-eth0 or run command /usr/sbin/netconfig

Add a new IP
ifconfig - a 192.168.0.11 netmask 255.255.255.0

Set default gateway
route add default gw 192.168.0.1

Change dns servers
edit resolv.conf with:
nameserver 8.8.8.8 #google public dns
nameserver 208.67.222.222 #opendns

Friday, 6 January 2012

Increase A VMware Disk Size (VMDK) Formatted As Linux LVM ~ Mattias Geniar

Increase A VMware Disk Size (VMDK) Formatted As Linux LVM

This is a very well written and concise article on extending an LVM drive. Well done Matti!

Posted via email from Pio's work related musings