问题1: ubuntu弹出提示: unlock login keyring
Enter password to unlock your login keyring
要反复输入开机密码.
原因: 无线连接的安全设置
解决方法:
1.sudo rm /home/user/.local/share/keyrings/login.keyring
每个人电脑中, keyrings文件夹的路径可能不一样, 建议用以下命令先查找一下.
cd /
sudo find -name "keyrings"
2.重复之前会弹出该提示框的操作, 如:使用wifi上网/打开google浏览器/连接mysql数据库, 会弹出该提示框, 要求设置新密码, 输入新密码或空密码后, 选择use unsafe storage, 设置密码成功后, 即可解决.
问题2: sudo apt-get update 失败
错误日志如下:
$ sudo apt-get update
......
W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E3757B8E0D988D6E
W: GPG error: https://atlassian.artifactoryonline.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBA59E53CC64091D
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
1) NO_PUBKEY解决方法参考:https://askubuntu.com/questions/522114/cant-get-rid-of-gpg-error-http-download-opensuse-org
执行以下命令:
$ grep -iR opensuse /etc/apt/sources.list*
/etc/apt/sources.list.d/dukto.list.save:deb http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_14.04/ /
/etc/apt/sources.list.d/dukto.list:deb http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_14.04/ /
$ sudo sed -i '/opensuse/ s/^/#/' /etc/apt/sources.list.d/*.list
再次执行sudo apt-get update, 报错情况如下:
$ sudo apt-get update
...
W: GPG error: https://atlassian.artifactoryonline.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EBA59E53CC64091D
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
可以看到,opensuse的报错已经解决了,同理解决掉atlassian的报错:
$ grep -iR atlassian /etc/apt/sources.list*
/etc/apt/sources.list.d/atlassian-hipchat4.list:##deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client trusty main
/etc/apt/sources.list.d/atlassian-hipchat4.list.save:deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client trusty main
$ sudo sed -i '/atlassian/ s/^/#/' /etc/apt/sources.list.d/*.list
2) 第二种报错:
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
待解决...
网上基本上都是这个答案, 是解决google earth的问题, 和这个不一样: https://blog.csdn.net/liuk10/article/details/50955407