E:无法定位软件包Apache24
Tofloor
poster avatar
leidinghao725
deepin
2019-10-23 19:27
Author
这样的问题怎么解决 ?

我把Apache24直接放在系统盘的。



Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2019-10-23 19:48
#1
  1. apt-cache search apache
Copy the Code
Reply View the author
avatar
leidinghao725
deepin
2019-10-23 20:00
#2

为什么会查找不到文件呢, 我是在“系统盘的窗口”启动的在“终端中打开的窗口”的啊。 linux小白搞不明白
Reply View the author
avatar
Feng Yu
deepin
2019-10-23 20:02
#3
debian将apache打包为apache2这个包,没有apache24这个包
Reply View the author
avatar
leidinghao725
deepin
2019-10-23 20:04
#4
https://bbs.deepin.org/post/184137
debian将apache打包为apache2这个包,没有apache24这个包

Apache2同样找不到 应该不是这个问题。。  
Reply View the author
avatar
deepinuser17
deepin
2019-10-23 21:05
#5
  1. $ sudo apt install apache2
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6.   apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
  7. Suggested packages:
  8.   apache2-doc apache2-suexec-pristine | apache2-suexec-custom
  9. The following NEW packages will be installed:
  10.   apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
  11. 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
  12. Need to get 2,021 kB of archives.
  13. After this operation, 6,658 kB of additional disk space will be used.
Copy the Code
Reply View the author
avatar
Feng Yu
deepin
2019-10-23 21:12
#6
https://bbs.deepin.org/post/184137
Apache2同样找不到 应该不是这个问题。。

特地看了下,我就是没记错,不可能记错的,Ubuntu都运维了这么多年了,apache的软件包就是叫apache2

  1. $ apt show apache2
  2. Package: apache2
  3. Version: 2.4.25-3+deb9u6
  4. Priority: optional
  5. Section: httpd
  6. Maintainer: Debian Apache Maintainers
  7. Installed-Size: 592 kB
  8. Provides: httpd, httpd-cgi
  9. Pre-Depends: dpkg (>= 1.17.14)
  10. Depends: init-system-helpers (>= 1.18~), lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.25-3+deb9u6), apache2-utils (= 2.4.25-3+deb9u6), apache2-data (= 2.4.25-3+deb9u6), perl:any
  11. Recommends: ssl-cert
  12. Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom
  13. Conflicts: apache2.2-bin, apache2.2-common
  14. Replaces: apache2.2-bin, apache2.2-common
  15. Homepage: http://httpd.apache.org/
    Download-Size: 236 kB
  16. APT-Sources: http://packages.deepin.com/deepin lion/main amd64 Packages
  17. Description: Apache HTTP Server
  18. The Apache HTTP Server Project's goal is to build a secure, efficient and
  19. extensible HTTP server as standards-compliant open source software. The
  20. result has long been the number one web server on the Internet.
  21. .
  22. Installing this package results in a full installation, including the
  23. configuration files, init scripts and support scripts.
Copy the Code


你检查下你有没有刷新软件包缓存? sudo apt update,之后再sudo apt install -y apache2
Reply View the author
avatar
leidinghao725
deepin
2019-10-23 23:40
#7
https://bbs.deepin.org/post/184137
特地看了下,我就是没记错,不可能记错的,Ubuntu都运维了这么多年了,apache的软件包就是叫apache2

谢谢你,这下可以正常的安装了,  我Apache2 找不到, apache2就找到了,  真是汗颜,还有大小写的区别。

  Linux的这些安装包是内置的吗?  我如果要安装我下载好的东西, 应该查看什么文件夹哦, 感觉linux需要系统的学一下才行了。  就像这次我apache的文件夹名字就叫Apache24,, 结果apache2找到了, 我就不能理解了。
Reply View the author
avatar
WENWEN
deepin
2019-10-24 00:02
#8
https://bbs.deepin.org/post/184137
谢谢你,这下可以正常的安装了,  我Apache2 找不到, apache2就找到了,  真是汗颜,还有大小写的区别。 ...

https://www.appinn.com/linux-probe-pdf-book/
Reply View the author