An error occurs when codedeploy-agent is installed in Ubuntu Server 20.04

ubuntu@ip-172-31-48-49:~$ sudo ./install auto
Traceback (most recent call last):
	8: from ./install:34:in `<main>'
	7: from ./install:34:in `new'
	6: from /usr/lib/ruby/2.7.0/logger.rb:389:in `initialize'
	5: from /usr/lib/ruby/2.7.0/logger.rb:389:in `new'
	4: from /usr/lib/ruby/2.7.0/logger/log_device.rb:18:in `initialize'
	3: from /usr/lib/ruby/2.7.0/logger/log_device.rb:83:in `set_dev'
	2: from ./install:22:in `method_missing'
	1: from ./install:22:in `map'
./install:23:in `block in method_missing': undefined method `path' for #<IO:<STDOUT>> (NoMethodError)

Correspondence below

sudo apt-get update
sudo apt-get install -y ruby
sudo wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/releases/codedeploy-agent_1.0-1.1597_all.deb
sudo mkdir codedeploy-agent_1.0-1.1597_ubuntu20
sudo dpkg-deb -R codedeploy-agent_1.0-1.1597_all.deb codedeploy-agent_1.0-1.1597_ubuntu20
sudo sed 's/2.0/2.7/' -i ./codedeploy-agent_1.0-1.1597_ubuntu20/DEBIAN/control
sudo dpkg-deb -b codedeploy-agent_1.0-1.1597_ubuntu20
sudo dpkg -i codedeploy-agent_1.0-1.1597_ubuntu20.deb
sudo systemctl start codedeploy-agent
sudo systemctl enable codedeploy-agent

Recommended Posts

An error occurs when codedeploy-agent is installed in Ubuntu Server 20.04
When an error occurs even though validation is not set
Collecting client information when an error occurs in a web application
Command when dependency is broken in Ubuntu 20.04
A reminder when an aapt.exe error occurs
What to do and how to install when an error occurs in DXRuby 1.4.7
[Rails] Solution when migration error occurs in acts-as-taggable-on
500 Internal Server Error occurs in Rails production environment
When using a list in Java, java.awt.List comes out and an error occurs
Customize the display when an error such as 404 Not Found occurs in Spring Boot
Let's create a TODO application in Java 12 Processing when a request comes in with an unused HttpMethod ・ Processing when an error occurs in the server
Workaround for Bundler.require error when executing ruby with crontab
[Ruby] How to use rbenv (version `x.x.x'is not installed)
Correspondence when Ruby version does not switch in rbenv
Yarn is not installed
When an error occurs even though validation is not set
An error occurs when codedeploy-agent is installed in Ubuntu Server 20.04
"tx" is not bound error
[Memorandum] What is an error?
[Ruby] The gem should have been installed in vendor / bundle, but an error occurs in require
Exit code 1 occurs when Rails is stopped in Docker environment
Show detailed error in Logger when running Java on server
What to do if an error occurs when doing npm install axios in React + Typescript project
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
What to do if an error occurs in VS Code when importing a django module or your own module installed by pip install
What to do if an error occurs when nokogiri enters when bundle install
Error when the member of Entity class used in SpringWebFlux is final
I want to display an error message when registering in the database
If the JDK version is correct in Eclipse but an error occurs or the compiler does not work properly
Error in implementation when implementing Spring validation
Possibility when deploying to EC2 but nothing is displayed in the error log
A reminder when an aapt.exe error occurs
I get an error when I try to use "^" or "$" in ruby ​​regular expression
Solution that gives an error when trying to connect to DB (MySQL) in Java
[Error resolution] Occurs when trying to build an environment for spring with docker
When you want to notify an error somewhere when using graphql-spring-boot in Spring Boot
[Heroku] How to solve when an error is displayed on git push heroku master
Summary when trying to use Solr in Java and getting an error (Solr 6.x)
How to set when "The constructor Empty () is not visible" occurs in junit
Error 400 occurs when executing Query by specifying Japanese as a condition in SOQL
Send an email when an ERROR level log occurs with the logback SMTP Appender
407 error when trying to access an HTTPS site in Java via an authenticated proxy