[Notice] 现在安装AMH-7.0吗?确认安装请输入y回车:y
[Notice] 即将安装AMH ...
Ign:1 http://mirrors.cloud.aliyuncs.com/ubuntu jammy InRelease
Ign:2 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-updates InRelease
Ign:3 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-backports InRelease
Ign:4 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-security InRelease
Ign:1 http://mirrors.cloud.aliyuncs.com/ubuntu jammy InRelease
Ign:2 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-updates InRelease
Ign:3 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-backports InRelease
Ign:4 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-security InRelease
Ign:1 http://mirrors.cloud.aliyuncs.com/ubuntu jammy InRelease
Ign:2 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-updates InRelease
Ign:3 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-backports InRelease
Ign:4 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-security InRelease
Err:1 http://mirrors.cloud.aliyuncs.com/ubuntu jammy InRelease
Could not resolve 'mirrors.cloud.aliyuncs.com'
Err:2 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-updates InRelease
Could not resolve 'mirrors.cloud.aliyuncs.com'
Err:3 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-backports InRelease
Could not resolve 'mirrors.cloud.aliyuncs.com'
Err:4 http://mirrors.cloud.aliyuncs.com/ubuntu jammy-security InRelease
Could not resolve 'mirrors.cloud.aliyuncs.com'
Reading package lists...
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/dists/jammy/InRelease Could not resolve 'mirrors.cloud.aliyuncs.com'
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/dists/jammy-updates/InRelease Could not resolve 'mirrors.cloud.aliyuncs.com'
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/dists/jammy-backports/InRelease Could not resolve 'mirrors.cloud.aliyuncs.com'
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu/dists/jammy-security/InRelease Could not resolve 'mirrors.cloud.aliyuncs.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package ntpdate
chronyc: /usr/bin/chronyc /usr/share/man/man1/chronyc.1.gz
200 OK
Start time: Thu Oct 20 20:50:25 CST 2022
groupadd: group 'www' already exists
useradd: user 'www' already exists
--2022-10-20 20:50:25-- http://code3.amh.sh/files/amh-conf-7.0.tar.gz
Resolving code3.amh.sh (code3.amh.sh)... 120.25.120.249
Connecting to code3.amh.sh (code3.amh.sh)|120.25.120.249|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://code-qn.amh.sh/files/amh-conf-7.0.tar.gz?e=1666270286&token=0NF7JAWuDruc9bVDEkNPyU-WcEmBn4QKftrucw_a:QiJdSCEc8ehw6foi-GPfhLPs8EI= [following]
--2022-10-20 20:50:26-- http://code-qn.amh.sh/files/amh-conf-7.0.tar.gz?e=1666270286&token=0NF7JAWuDruc9bVDEkNPyU-WcEmBn4QKftrucw_a:QiJdSCEc8ehw6foi-GPfhLPs8EI=
Resolving code-qn.amh.sh (code-qn.amh.sh)... 240e:f7:c000:317::12, 240e:f7:c000:317::13, 240e:f7:ef00:3:0:4:0:8, ...
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:f7:c000:317::12|:80...
failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:f7:c000:317::13|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:f7:ef00:3:0:4:0:8|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:f7:ef00:3:0:4:0:9|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:938:a03:607::19|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:938:a03:607::20|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:940:e006:4:0:5:0:a|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|240e:dd:d800:702::7|:80... failed: Connection timed out.
Connecting to code-qn.amh.sh (code-qn.amh.sh)|222.243.40.157|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
cp: cannot stat './amh-conf-7.0/conf': No such file or directory
cc1: fatal error: ./amh-conf-7.0/conf/amh.c: No such file or directory
compilation terminated.
chmod: cannot access '/bin/amh': No such file or directory
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.54496 s, 164 MB/s
Setting up swapspace version 1, size = 1024 MiB (1073737728 bytes)
no label, UUID=a9397d67-1d72-46cd-b6ec-6ea0199cd1eb
amh.sh: line 193: amh: command not found
amh.sh: line 194: amh: command not found
amh.sh: line 195: amh: command not found
amh.sh: line 196: amh: command not found
amh.sh: line 197: amh: command not found
[Error] libiconv-1.14 download failed.
[Error] mysql-5.6 download failed.
[Error] nginx-1.20 download failed.
[Error] php-7.4 download failed.
[Error] amh-7.0 download failed.
=======================
主机:阿里云
系统:Linux version 5.15.0-46-generic (buildd@lcy02-amd64-115) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
DNS已经改为114跟阿里云的223
真的烦,以前自己的论坛不好用嘛,换这个垃圾玩意,想看看别人提交的问题搜索出来的都是什么东西,乱七八糟的文章
问题1:最后发现根本没法ping通code-qn.amh.sh这个域名
解决1:
echo "124.236.103.51 code-qn.amh.sh" >> /etc/hosts
问题2:
configure: error: Package requirements (libxml-2.0 >= 2.7.6) were not met:
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
mkdir: cannot create directory '/usr/local/php-7.4/var/run/pid': No such file or directory
mv: cannot move '/tmp/ext_7.4' to '/usr/local/php-7.4/extcode': No such file or directory
[Notice] php-7.4 is not installed.
跟amh联系说是libicu等级过低,先移除然后添加了ubuntu有对应版本的源,因为ubuntu不建议通过手工编辑的方式来管理。
root@iZhp3ijiyybupidilitkfxZ:/home/down# apt install libxml2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
libicu-dev : Depends: libicu70 (= 70.1-2) but 70.1-2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
用在 AMD64 上 libicu70_70.1-2_amd64.deb 的下載頁面
deb http://cz.archive.ubuntu.com/ubuntu jammy main
不一定使用官方的源,可以自行查找有这个版本的源,不建议使用阿里的源,慢
解决2:sudo apt-get --purge remove libicu70
再次执行amh wegt命令
重新梳理下:
1.解决无法访问code-qn.amh.sh,同时修改dns
echo "124.236.103.51 code-qn.amh.sh" >> /etc/hosts
echo -e "options timeout:1 attempts:1 rotate\nnameserver 8.8.8.8\nnameserver 114.114.114.114" >/etc/resolv.conf;
2.libicu70问题
移除系统自带版本
sudo apt-get --purge remove libicu70
更新包含所需版本的源,建议更改原系统自带源为清华的
deb http://cz.archive.ubuntu.com/ubuntu jammy main
本问题系统为:Linux version 5.15.0-46-generic (buildd@lcy02-amd64-115) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
请对号入座,其他版本不一定又这些问题。
时间:2022.10.21
是的,一个是域名解析的问题,更换DNS或是直接指定IP。
另一个是软件包匹配依赖的问题,要安装同一个软件源的,要么会与其它分支的软件包不匹配问题。