0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

codedeploy-agentをUbuntu Server 20.04 に入れるとエラーが発生する件

0
Posted at
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)

以下で対応

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?