Я попробовал после их руководства за установку OpenVPN через репозиторий для Ubuntu 18, но столкнулся с несколькими проблемами. После ввода первой команды:
apt update && apt -y install ca-certificates wget net-tools
Я поражен следующими ошибками.
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
Я затем пытался добавить "sudo" перед исходной командой, это, кажется, решило одну из проблем, но все еще получило ошибки в конце.
Hit:1 http://ca.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [586 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [740 kB]
Get:7 http://ca.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,007 kB]
Get:8 http://ca.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [980 kB]
Fetched 3,564 kB in 6s (601 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Я не уверен, что сделать отсюда. Совет?
Выполнение команд отдельно как показано ниже должно решить проблему, поскольку команды портятся вместе с "& &";
sudo apt update
Затем
sudo apt -y install ca-certificates wget net-tools
Благодаря user535733 для его комментария.