# 我的 Debian 服务器上安装失败

**URL:** <https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859>\
**Category:** Self-hosting\
**Created:** [2019年三月17日 15:43 UTC](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859 "2019-03-17T15:43:05Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年三月18日 22:10 UTC](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859/21 "2019-03-18T22:10:31Z")

</div>

> [@DustVoice](#):
>
> Should I use [get.docker.com](http://get.docker.com) for docker again, or use the apt package?

Like I said above, install with `get.docker.com | sh`, not whatever comes with the OS.

You’ll be sorry if you use `apt`.

This would likely obviate your need to switch from Debian.

---

<div class="post-metadata">

**Author:** ![DustVoice](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dustvoice/32/134289_2.png) [@DustVoice](https://meta.discourse.org/u/DustVoice)\
**Post date:** [2019年三月18日 22:11 UTC](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859/22 "2019-03-18T22:11:09Z")

</div>

Okay thank you very much. I’ll try my very best. Thanks for the support

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2019年三月18日 22:13 UTC](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859/23 "2019-03-18T22:13:58Z")

</div>

> [@DustVoice](#):
>
> ```plaintext
> I, [2019-03-17T20:16:52.419559 #14] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
> cp: cannot create regular file '/etc/nginx/conf.d/discourse.conf': No such file or directory
> 
> ```

This is a very strange error. I would say either docker is broken or the docker FS is busted.

> [@DustVoice](#):
>
> The command `sudo apt list --installed | grep -i docker` produces the following output:
> 
> ```plaintext
> docker/stable,now 1.5-1+b1 amd64 [installiert]
> docker-ce/stretch,now 5:18.09.3~3-0~debian-stretch amd64 [installiert]
> 
> ```

Do you have two dockers installed? 😱

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2019年三月18日 22:14 UTC](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859/24 "2019-03-18T22:14:49Z")

</div>

> [@pfaffman](#):
>
> You’ll be sorry if you use `apt` .

To be fair all [get.docker.com](http://get.docker.com) does is add a different repo for up to date versions. It’s still hit and miss depending on what else is on the machine.

> [@Falco](#):
>
> Do you have two dockers installed? 😱

Beat me to it!

---

<div class="post-metadata">

**Author:** ![DustVoice](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dustvoice/32/134289_2.png) [@DustVoice](https://meta.discourse.org/u/DustVoice)\
**Post date:** [2019年三月18日 22:15 UTC](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859/25 "2019-03-18T22:15:38Z")

</div>

This was merely because I didn’t know better. But no I uninstalled everything and installed docker through [get.docker.com](http://get.docker.com). I have now issued a reimage to ubuntu and I am gonna report my results

[上一頁](https://meta.discourse.org/t/installation-fails-on-my-debian-server/111859.md?page=1)
