RT
x2openEuler-upgrade-3.0.0-20240125.x86_64.rpm 在哪里?搜遍全网只有core和database,upgrade的rpm 在哪里呢?
https://repo.oepkgs.net/openEuler/rpm/openEuler-20.03-LTS-SP1/contrib/x2openEuler/x86_64/Packages/
不管三七二十一,把这些upgrade的全放进去
OK ,多谢,包拷贝到目录下去了,权限也没问题,还是一样的错误
检查环境不通过,程序是去/opt/x2openEuler下面scp 包去了,报错也是莫名其妙的,这路径下面已经从 /etc/x2openEuler/rpms 把包拷过去了还是截图的错误
我去O3社区抄来的,你看一下有用不?
2.2、x2openEuler-upgrad安装失败-Centos6.X升级场景(二)
现象描述
x2openEuler工具日志报错如下:
位置/usr/local/x2openEuler/portal/logs/backend/${待升级机器IP地址}_${待升级机器ssh端口}_task_manager.log
原因
x2openEuler-upgrade-for6-x.x.x-x.x86_64.rpm 文件会从x2openEuler机器的/etc/x2openEuler/rpms 目录通过x2openEuler账号传输到待升级机器的/opt/x2openEuler目录下,然后通过yum install -y /opt/x2openEuler/x2openEuler-upgrade-for6-x.x.x-x.x86_64.rpm的方式安装x2openEuler工具。
x2openEuler-upgrade-for6-x.x.x-x.x86_64.rpm文件所属是root用户,x2openEuler用户scp过去待升级机器时候没有权限。
排查测试方式可以参考以下方法:
usermod -s /bin/bash x2openEuler
su - x2openEuler
scp x2openEuler-upgrade-for6-x.x.x-x.x86_64.rpm root@${待升级机器的IP地址}:/opt/x2openEuler
解决方法
(1)使用SSH远程登录工具,进入x2openEuler工具的Linux操作系统命令行界面。
(2)修改文件所属用户和用户组
chown x2openEuler:x2openEuler x2openEuler-upgrade-for6-x.x.x-x.x86_64.rpm
好的,感谢,我试试,待升级节点是7.4的
不通过原因 安装 x2openEuler-upgrade 包失败,出现错误为:failed to install x2openEuler-upgrade, result is Failed to set locale, defaulting to C Error: Package: x2openEuler-upgrade-3.0.0-20240125.x86_64 (/x2openEuler-upgrade-3.0.0-20240125.x86_64) Requires: rsync >= 3.1.0 Installed: rsync-3.0.9-18.el7.x86_64 (@anaconda) rsync = 3.0.9-18.el7 Loaded plugins: fastestmirror, langpacks Examining /opt/x2openEuler/x2openEuler-upgrade-3.0.0-20240125.x86_64.rpm: x2openEuler-upgrade-3.0.0-20240125.x86_64 Marking /opt/x2openEuler/x2openEuler-upgrade-3.0.0-20240125.x86_64.rpm to be installed Resolving Dependencies → Running transaction check —> Package x2openEuler-upgrade.x86_64 0:3.0.0-20240125 will be installed → Processing Dependency: rsync >= 3.1.0 for package: x2openEuler-upgrade-3.0.0-20240125.x86_64 Loading mirror speeds from cached hostfile → Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
我又得编译下3.1.0 ?
rpm -qa|grep rsync
rsync-3.1.2-10.el7.x86_64
不通过原因 安装 x2openEuler-upgrade 包失败,出现错误为:failed to install x2openEuler-upgrade, result is Failed to set locale, defaulting to C Error: Package: x2openEuler-upgrade-3.0.0-20240125.x86_64 (/x2openEuler-upgrade-3.0.0-20240125.x86_64) Requires: rsync >= 3.1.0 Installed: rsync-3.0.9-18.el7.x86_64 (@anaconda) rsync = 3.0.9-18.el7 Loaded plugins: fastestmirror, langpacks Examining /opt/x2openEuler/x2openEuler-upgrade-3.0.0-20240125.x86_64.rpm: x2openEuler-upgrade-3.0.0-20240125.x86_64 Marking /opt/x2openEuler/x2openEuler-upgrade-3.0.0-20240125.x86_64.rpm to be installed Resolving Dependencies → Running transaction check —> Package x2openEuler-upgrade.x86_64 0:3.0.0-20240125 will be installed → Processing Dependency: rsync >= 3.1.0 for package: x2openEuler-upgrade-3.0.0-20240125.x86_64 Loading mirror speeds from cached hostfile → Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
解决方案 请根据失败问题对应检查