[問題] Apache 無法安裝

看板Linux作者 (Up2u)時間9年前 (2016/11/21 16:45), 9年前編輯推噓1(1016)
留言17則, 7人參與, 最新討論串1/1
sudo apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: apache2 : Depends: apache2-bin (= 2.4.18-2ubuntu3.1) but it is not going to be installed Depends: apache2-utils (>= 2.4) Depends: apache2-data (= 2.4.18-2ubuntu3.1) but it is not going to be installed libethereum : Depends: libcryptopp-dev but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). ======================= 如果下這行指令 sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: libcryptopp-dev The following NEW packages will be installed: libcryptopp-dev 0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded. 3 not fully installed or removed. Need to get 0 B/1,653 kB of archives. After this operation, 12.2 MB of additional disk space will be used. Do you want to continue? [Y/n] 會重複一直出現這段訊息 也沒有安裝好 -- When we toss a coin , we obtain either head or tail. Now we toss a coin 5 times. There are 2^5 possible outcomes. How many of them contain no two consecutive heads? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.160.135.152 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1479717946.A.E2F.html ※ 編輯: bjk (118.160.135.152), 11/21/2016 16:48:15

11/21 17:03, , 1F
那你選擇Y之後出現甚麼…
11/21 17:03, 1F

11/21 17:10, , 2F
....有先update嗎?
11/21 17:10, 2F
有update 抱歉剛剛忘了貼 Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: libcryptopp-dev The following NEW packages will be installed: libcryptopp-dev 0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded. 3 not fully installed or removed. Need to get 0 B/1,653 kB of archives. After this operation, 12.2 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 332239 files and directories currently installed.) Preparing to unpack .../libcryptopp-dev_5.6.2+0wily-0ubuntu1_amd64.deb ... Unpacking libcryptopp-dev (5.6.2+0wily-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libcryptopp-dev_5.6.2+0wily-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/lib/libcryptopp.so', which is also in package libcrypto++-dev 5.6.1-9 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libcryptopp-dev_5.6.2+0wily-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) ※ 編輯: bjk (118.160.135.152), 11/21/2016 17:18:55

11/21 18:19, , 3F
error 1 是?
11/21 18:19, 3F

11/21 18:51, , 4F
作業系統散佈版版本?
11/21 18:51, 4F
ubuntu 16.04 lts

11/21 19:16, , 6F
ess-usr-bin-dpkg-returned-an-error-code-1-relate
11/21 19:16, 6F

11/21 19:16, , 7F
d-to-google-chrom
11/21 19:16, 7F

11/21 19:18, , 8F
抱歉 沒縮
11/21 19:18, 8F

11/21 19:18, , 9F
11/21 19:18, 9F
照著做後出現這個錯誤http://imgur.com/a/fgXUB 我覺得我現在是libcrypto++-dev 5.6.1-9 這個東西殺不掉~~ ※ 編輯: bjk (118.160.135.152), 11/22/2016 14:35:00

11/22 20:06, , 10F
那手動 dpkg -r 方式移除掉呢
11/22 20:06, 10F

11/23 16:37, , 11F
我後來受不了就重灌了
11/23 16:37, 11F

11/23 18:41, , 12F
哦?
11/23 18:41, 12F

11/25 07:46, , 13F
Linux越做越回去了,Apache本就應該內建,不用就別開
11/25 07:46, 13F

11/25 07:47, , 14F
它,硬碟如此大根本不差這一點。
11/25 07:47, 14F

11/25 09:19, , 15F
apache內建? linux不跑web server多的是 內建幹啥
11/25 09:19, 15F

11/25 09:20, , 16F
然後硬碟如此大? AWS上你就是錢如此多不差那一點了
11/25 09:20, 16F

11/25 09:22, , 17F
喔 還有 這是ubuntu的問題 一竿子打linux... 算了
11/25 09:22, 17F
文章代碼(AID): #1OChGwul (Linux)