Installation error: INSTALL_FAILED_UID_CHANGED 的解决办法

本文详细介绍了如何解决由于apk冲突导致的应用问题。通过卸载冲突应用或删除相关文件及修改配置文件等步骤,可以有效解决该问题。方法一通常能解决大部分情况,而方法二是作为备用解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

出现此问题的原因大多是apk冲突造成,解决的办法如下:

1.  Settings -> Applications, 卸载出现问题的apk,重新安装即可。

2. 如果apk无法卸载,则将apk相关文件和相关内容删除(必须是有root权限的手机)。Step:

    (1) 删除可能相关的文件:/data/app(apk file), /system/app/(apk file), /data/data/(data file),

    (2) 除了删除以上文件之外,还需要将/data/system/packages.xml文件中与apk相关的内容全部删除。Step:

         a. adb pull /data/system/packages.xml  ~/Desktop.

         b. 修改pakcages.xml,将与apk相关的packages标签及其内容删除。

         c. adb push ~/Desktop/packages.xml /data/system/.

    (3) 重启手机

    (4) 重新安装apk文件。


一般方法一就能解决问题,方法二算是后补。



在ubuntu22.04码安装autoware.universe时报错如下,怎么解决码wuhen@PC:~/autoware$ ./setup-dev-env.sh Setting up the build environment can take up to 1 hour. > Are you sure you want to run setup? [y/N] y /home/wuhen/.local/bin is already in PATH. ⚠️ All pipx binary directories have been appended to PATH. If you are sure you want to proceed, try again with the '--force' flag. Otherwise pipx is ready to go! ✨ 🌟 ✨ Installing to existing venv 'ansible' installed package ansible 6.7.0, installed using Python 3.10.12 These apps are now globally available - ansible - ansible-community - ansible-config - ansible-connection - ansible-console - ansible-doc - ansible-galaxy - ansible-inventory - ansible-playbook - ansible-pull - ansible-test - ansible-vault done! ✨ 🌟 ✨ ansible-galaxy collection install -f -r /home/wuhen/autoware/ansible-galaxy-requirements.yaml Starting galaxy collection install process Process install dependency map Starting collection install process Installing 'autoware.dev_env:0.1.0' to '/home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env' Created collection for autoware.dev_env:0.1.0 at /home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env autoware.dev_env:0.1.0 was installed successfully ansible-playbook autoware.dev_env.universe --ask-become-pass --extra-vars install_devel=y --extra-vars data_dir=/home/wuhen/autoware_data --extra-vars rosdistro=humble --extra-vars rmw_implementation=rmw_cyclonedds_cpp --extra-vars base_image=ros:humble-ros-base-jammy --extra-vars cuda_version=12.3 --extra-vars cudnn_version=8.9.5.29-1+cuda12.2 --extra-vars tensorrt_version=8.6.1.6-1+cuda12.0 --extra-vars pre_commit_clang_format_version=17.0.5 BECOME password: [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection autoware.dev_env [Warning] Some Autoware components depend on the CUDA, cuDNN and TensorRT NVIDIA libraries which have end-user license agreements that should be reviewed before installation. Install NVIDIA libraries? [y/N]: y [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N]: y PLAY [Set up source development environments for Autoware Universe] ************ TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Verify OS] *************************************************************** skipping: [localhost] TASK [Print args] ************************************************************** ok: [localhost] => { "msg": [ { "rosdistro": "humble" }, { "rmw_implementation": "rmw_cyclonedds_cpp" }, { "cuda_version": "12.3" }, { "cudnn_version": "8.9.5.29-1+cuda12.2" }, { "tensorrt_version": "8.6.1.6-1+cuda12.0" } ] } TASK [Show a warning if the NVIDIA libraries will not be installed] ************ skipping: [localhost] TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** ok: [localhost] TASK [autoware.dev_env.ros2 : Authorize ROS GPG key] *************************** fatal: [localhost]: FAILED! => {"changed": false, "dest": "/usr/share/keyrings/ros-archive-keyring.gpg", "elapsed": 10, "gid": 0, "group": "root", "mode": "01204", "msg": "Request failed: <urlopen error _ssl.c:990: The handshake operation timed out>", "owner": "root", "size": 1167, "state": "file", "uid": 0, "url": "https://raw.githubusercontent.com/ros/rosdistro/master/ros.key"} PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed.
07-22
wuhen@PC:~/autoware$ ./setup-dev-env.sh Setting up the build environment can take up to 1 hour. > Are you sure you want to run setup? [y/N] y /home/wuhen/.local/bin is already in PATH. ⚠️ All pipx binary directories have been appended to PATH. If you are sure you want to proceed, try again with the '--force' flag. Otherwise pipx is ready to go! ✨ 🌟 ✨ Installing to existing venv 'ansible' installed package ansible 6.7.0, installed using Python 3.10.12 These apps are now globally available - ansible - ansible-community - ansible-config - ansible-connection - ansible-console - ansible-doc - ansible-galaxy - ansible-inventory - ansible-playbook - ansible-pull - ansible-test - ansible-vault done! ✨ 🌟 ✨ ansible-galaxy collection install -f -r /home/wuhen/autoware/ansible-galaxy-requirements.yaml Starting galaxy collection install process Process install dependency map Starting collection install process Installing 'autoware.dev_env:0.1.0' to '/home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env' Created collection for autoware.dev_env:0.1.0 at /home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env autoware.dev_env:0.1.0 was installed successfully ansible-playbook autoware.dev_env.universe --ask-become-pass --extra-vars install_devel=y --extra-vars data_dir=/home/wuhen/autoware_data --extra-vars rosdistro=humble --extra-vars rmw_implementation=rmw_cyclonedds_cpp --extra-vars base_image=ros:humble-ros-base-jammy --extra-vars cuda_version=12.3 --extra-vars cudnn_version=8.9.5.29-1+cuda12.2 --extra-vars tensorrt_version=8.6.1.6-1+cuda12.0 --extra-vars pre_commit_clang_format_version=17.0.5 BECOME password: [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection autoware.dev_env [Warning] Some Autoware components depend on the CUDA, cuDNN and TensorRT NVIDIA libraries which have end-user license agreements that should be reviewed before installation. Install NVIDIA libraries? [y/N]: y [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N]: y PLAY [Set up source development environments for Autoware Universe] ************ TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Verify OS] *************************************************************** skipping: [localhost] TASK [Print args] ************************************************************** ok: [localhost] => { "msg": [ { "rosdistro": "humble" }, { "rmw_implementation": "rmw_cyclonedds_cpp" }, { "cuda_version": "12.3" }, { "cudnn_version": "8.9.5.29-1+cuda12.2" }, { "tensorrt_version": "8.6.1.6-1+cuda12.0" } ] } TASK [Show a warning if the NVIDIA libraries will not be installed] ************ skipping: [localhost] TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** ok: [localhost] TASK [autoware.dev_env.ros2 : Authorize ROS GPG key] *************************** fatal: [localhost]: FAILED! => {"changed": false, "dest": "/usr/share/keyrings/ros-archive-keyring.gpg", "elapsed": 10, "gid": 0, "group": "root", "mode": "01204", "msg": "Request failed: <urlopen error _ssl.c:990: The handshake operation timed out>", "owner": "root", "size": 1167, "state": "file", "uid": 0, "url": "https://raw.githubusercontent.com/ros/rosdistro/master/ros.key"} PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed. wuhen@PC:~/autoware$
最新发布
07-22
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值