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