尝试在 Debian 服务器上安装 owncloud,遇到一些问题

尝试在 Debian 服务器上安装 owncloud,遇到一些问题

我正在尝试在我的 Debian 服务器上安装 owncloud,但一些软件包造成了一些麻烦。我不太习惯 Linux,可能需要一些帮助来解决问题:

这是我正在使用的命令:

cd && apt-get update && 
apt-get -y install apache2 php5 php-pear php-xml-parser php5-sqlite php5-json \
sqlite php5-mysql mp3info curl libcurl3 libcurl3-dev php5-curl zip php5-gd wget \
&& wget http://owncloud.org/releases/owncloud-3.0.0.tar.bz2 && \
tar xfj owncloud-3.0.0.tar.bz2 && \
cp -r owncloud /var/www/ && chown -R www-data:www-data /var/www/owncloud && \ 
/etc/init.d/apache2 restart

这是我收到的错误消息:

The following packages have unmet dependencies:
 initscripts : Breaks: console-setup (< 1.74) but 1.68+squeeze2 is to be installed
               Breaks: initramfs-tools (< 0.104) but 0.98.8 is to be installed
 klibc-utils : Breaks: initramfs-tools (< 0.103) but 0.98.8 is to be installed
E: Broken packages

所以我想我的 initscripts 和 klibc-utils 存在依赖问题。

这是完整的控制台输出

Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php5-common' instead of 'php5-json'
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 initscripts : Breaks: console-setup (< 1.74) but 1.68+squeeze2 is to be installed
               Breaks: initramfs-tools (< 0.104) but 0.98.8 is to be installed
 klibc-utils : Breaks: initramfs-tools (< 0.103) but 0.98.8 is to be installed
E: Broken packages

有人知道如何解决这个问题吗?

来源列表:

###############################################################################
# Hetzner mirror

deb     http://mirror.hetzner.de/debian/packages squeeze main contrib non-free
deb     http://mirror.hetzner.de/debian/security squeeze/updates main contrib non-free



###############################################################################
# backup mirror
#

deb     http://cdn.debian.net/debian/  squeeze  main non-free contrib
deb-src http://cdn.debian.net/debian/  squeeze  main non-free contrib

deb     http://security.debian.org/  squeeze/updates  main contrib non-free
deb-src http://security.debian.org/  squeeze/updates  main contrib non-free

## backports
deb     http://mirror.hetzner.de/debian/backports squeeze-backports main contrib non-free
deb     http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

## Phpmyadmin
deb http://ftp.us.debian.org/debian testing main contrib non-free

答案1

http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud

现在安装过程相当简单。

Add repository and install manually(hide)

对于 Debian 6.0,以 root 身份运行以下命令:

回显'debhttp://download.opensuse.org/repositories/isv:ownCloud:community/Debian_6.0//' >> /etc/apt/sources.list.d/owncloud.list

apt-get 更新

apt-get 安装 owncloud


您可以像这样将存储库密钥添加到 apt:

wget apt-key 添加-< Release.key

答案2

让我们先来简化一下情况。

第一次运行apt-get update && apt-get upgrade

如果运行正常,则运行wget http://owncloud.org/releases/owncloud-3.0.0.tar.bz2 && tar xfj owncloud-3.0.0.tar.bz2 && cp -r owncloud /var/www/ && chown -R www-data:www-data /var/www/owncloud && /etc/init.d/apache2 restart

相关内容