我一直试图从Ubuntu16.04的Omnibus包中安装gitlab-ce (GNU/Linux4.6.5-x86_64-linode71 x86_64),我完全被困住了。
所有的文档都说要运行命令sudo apt-get install gitlab-ce,但是我总是无法找到package错误。
做一个sudo apt search gitlab显示有一个名为gitlab的包,所以我假设文档是错误的,我应该安装它。
安装正常运行,直到达到执行nginx设置的程度,然后失败,出现以下错误:
Creating config file /etc/nginx/sites-available/gitlab.mydomain.net with new version
cp: cannot create regular file '/etc/nginx/sites-available/gitlab.mydomain.net': No such file or directory
dpkg: error processing package gitlab (--configure):
subprocess installed post-installation script returned error exit status 1 我的安装没有什么特别之处。
有人能给我什么提示吗?
我没有意识到Ubuntu中有一个gitlab包,所以这至少解释了我的部分问题。
为了澄清,我确实在“关于”页面上运行了完整的说明,因此我在我的apt源代码中添加了gitlab-ce回购:
-rw-r--r-- 1 root root 261 Aug 31 16:03 gitlab_gitlab-ce.list以上内容如下:
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ xenial main在执行apt-get update时,我还会看到gitlab源代码被引用:
Hit:10 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease我运行过sudo apt-get update,而且gitlab-ce包不在那里。我想知道是不是我的系统与软件包不兼容?
看来这是一个系统架构问题。
尽管运行uname -a会显示Linux li424-65 4.6.5-x86_64-linode71,但如果我尝试手动安装.deb,则会出现以下错误。
package architecture (amd64) does not match system (i386)这是一个Linode VM,所以我打赌它与此有关。
发布于 2016-09-01 02:17:17
安装gitlab1有多种方法。看上去你已经越过了其中的两个。特别是,您正在尝试遵循Omnibus指令(尽管缺少一两步),同时使用gitlab的股票Ubuntu包( GL正式禁止使用它)。
(你可能错过了卷发的那一段,然后再试着做好准备)。
1关于不同方法的一些细节,如果好奇的话,https://about.gitlab.com/installation/
发布于 2016-08-31 21:40:50
在运行之前,请确保已将gitlab存储库添加到系统中。
sudo apt-get install gitlab-ce。
您可以手动将存储库添加到系统中,也可以使用gitlabs网页上的脚本添加存储库。https://about.gitlab.com/downloads/#ubuntu1604,见第2部分。
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
gitlab不在任何一个ubuntu主要存储库中。
发布于 2016-09-01 12:51:04
看来这是一个系统架构问题。
尽管运行uname -a显示Linuxli424-65 4.6.5-x86_64-linode71 71,但如果我尝试手动安装.deb,则会出现以下错误。
package architecture (amd64) does not match system (i386)原来,当我运行64位内核时,这个Linode最初是作为32位系统创建的,所以所有的用户空间和库仍然是32位的。
因为Gitlab-ce软件包只有64位,所以它不能安装它。
https://serverfault.com/questions/800327
复制相似问题