i get this error
when i follow PeerTube documentation
please help me why i get this error?
Get:24 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/main Translation-en [1120 B]
Get:25 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [400 B]
Get:26 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
Get:27 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [5800 B]
Get:28 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [2068 B]
Get:29 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [276 B]
Get:30 http://asia-northeast3.gce.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:31 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [867 kB]
Get:32 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [167 kB]
Get:33 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [8712 B]
Get:34 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [406 kB]
Get:35 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [58.3 kB]
Get:36 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [508 B]
Get:37 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [639 kB]
Get:38 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [102 kB]
Get:39 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [12.4 kB]
Get:40 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [21.9 kB]
Get:41 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [4948 B]
Get:42 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [540 B]
Fetched 20.0 MB in 4s (5274 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
21 packages can be upgraded. Run ‹ apt list --upgradable › to see them.
root@kouac:~# sudo apt install python-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‹ python-dev-is-python2 › instead of ‹ python-dev ›
The following packages were automatically installed and are no longer required:
libatasmart4 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2
libblockdev-utils2 libblockdev2 libnspr4 libnss3 libnuma1 libparted-fs-resize0 libudisks2-0
Use ‹ sudo apt autoremove › to remove them.
The following additional packages will be installed:
libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libpython2-dev libpython2-stdlib libpython2.7
libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib linux-libc-dev manpages-dev python-is-python2 python2
python2-dev python2-minimal python2.7 python2.7-dev python2.7-minimal
Suggested packages:
glibc-doc python2-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libpython2-dev libpython2-stdlib libpython2.7
libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib linux-libc-dev manpages-dev python-dev-is-python2
python-is-python2 python2 python2-dev python2-minimal python2.7 python2.7-dev python2.7-minimal
0 upgraded, 20 newly installed, 0 to remove and 21 not upgraded.
Need to get 13.8 MB of archives.
After this operation, 65.5 MB of additional disk space will be used.
createuser: error: creation of new role failed: ERROR: role « peertube » already exists
kouac2000@kouac:/var/www/peertube$ sudo -u postgres createdb -O peertube -E UTF8 -T template0 peertube_prod
createdb: error: database creation failed: ERROR: database « peertube_prod » already exists
kouac2000@kouac:/var/www/peertube$ sudo -u postgres psql -c « CREATE EXTENSION pg_trgm; » peertube_prod
ERROR: extension « pg_trgm » already exists
kouac2000@kouac:/var/www/peertube$ sudo -u postgres psql -c « CREATE EXTENSION unaccent; » peertube_prod
ERROR: extension « unaccent » already exists
kouac2000@kouac:/var/www/peertube$ $ VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/la
test | grep tag_name | cut -d ‹ " › -f 4) && echo « Latest Peertube version is $VERSION »
$: command not found
kouac2000@kouac:/var/www/peertube$ $VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/lat
est | grep tag_name | cut -d ‹ " › -f 4) && echo « Latest Peertube version is $VERSION »
=v3.4.0: command not found
kouac2000@kouac:/var/www/peertube$ sudo -u peertube mkdir config storage versions
mkdir: cannot create directory ‘config’: File exists
mkdir: cannot create directory ‘storage’: File exists
mkdir: cannot create directory ‘versions’: File exists
kouac2000@kouac:/var/www/peertube$ sudo -u peertube chmod 750 config/
kouac2000@kouac:/var/www/peertube$ cd /var/www/peertube/versions
kouac2000@kouac:/var/www/peertube/versions$ sudo -u peertube wget -q « https://github.com/Chocobozzz/PeerTube/releas
es/download/${VERSION}/peertube-${VERSION}.zip »
kouac2000@kouac:/var/www/peertube/versions$ sudo -u peertube unzip -q peertube-${VERSION}.zip && sudo -u peertube r
m peertube-${VERSION}.zip
unzip: cannot find or open peertube-.zip, peertube-.zip.zip or peertube-.zip.ZIP.
kouac2000@kouac:/var/www/peertube/versions$ cd /var/www/peertube
kouac2000@kouac:/var/www/peertube$ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
ln: failed to create symbolic link ‹ ./peertube-latest ›: File exists
kouac2000@kouac:/var/www/peertube$ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-loc
kfile
-bash: cd: ./peertube-latest: No such file or directory
kouac2000@kouac:/var/www/peertube$ cd /var/www/peertube
kouac2000@kouac:/var/www/peertube$ sudo -u peertube cp peertube-latest/config/default.yaml config/default.yaml
cp: cannot stat ‹ peertube-latest/config/default.yaml ›: No such file or directory
kouac2000@kouac:/var/www/peertube$ sudo -u peertube cp peertube-latest/config/production.yaml.example config/produc
tion.yaml
cp: cannot stat ‹ peertube-latest/config/production.yaml.example ›: No such file or directory
kouac2000@kouac:/var/www/peertube$ sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/site
s-available/peertube
cp: cannot stat ‹ /var/www/peertube/peertube-latest/support/nginx/peertube ›: No such file or directory
kouac2000@kouac:/var/www/peertube$ sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/site
s-available/peertube
cp: cannot stat ‹ /var/www/peertube/peertube-latest/support/nginx/peertube ›: No such file or directory
kouac2000@kouac:/var/www/peertube$