公司生产环境相关的Ubuntu VM需要升级到最新的LTS版本,期间遇到了两个奇怪的小问题

1.Can not run the upgrade This usually is caused by a system where /tmp mounted noexec. Please remount without noexec and run the upgrade again.

tmp被以禁止执行任何二进制包和脚本的形式挂载,用命令sudo mount -o remount,exec /tmp 即可解决

2.ppa.launchpad.net连不上

因为是生产环境VM,所以长期断网,导致公钥无法及时更新,手动从Keyserver下载公钥即可解决

报错形式为The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY XXXXXXXXXXXXX

sudo gpg –keyserver keyserver.ubuntu.com –recv XXXXXXXXXXXXX

sudo gpg –export –armor XXXXXXXXXXXXX | sudo apt-key add -

版权声明

作者: Starveler

链接: https://tapebox.top/posts/ubuntu%E5%8D%87%E7%BA%A7%E7%89%88%E6%9C%AC%E6%8A%A5%E9%94%99/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键