遵循文档中的步骤
$ curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add -
$ echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/migrate.list
$ apt-get update
$ apt-get install -y migrate
我在第一步中遇到的错误是
sudo curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0E: This command can only be used by root.
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 3954 100 3954 0 0 2244 0 0:00:01 0:00:01 --:--:-- 17651
(23) Failed writing body
Please help me with this?