一、W: 无法下载 http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
解决方式:
1,打开 /etc/apt/sources.list.d/google-chrome.list 文件(用vim或者gedit等均可):
sudo vim /etc/apt/sources.list.d/google-chrome.list
2,修改文件内容:
原来是:
deb http://dl.google.com/linux/chrome/deb/ stable main
改为:
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
二、 GPG 错误:http://dl.google.com stable Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 1397BC53640DB551
解决方法:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E40EBBA24FF2FC69
注意:
解决方法中的 E40EBBA24FF2FC69要与你提示错误中的签名(如下)一致。
由于没有公钥,无法验证下列签名: NO_PUBKEY E40EBBA24FF2FC69
三、E: 未发现软件包
首先 sudo apt-get update ,如果不行,再进行如下设置
更换源
sudo gedit /etc/apt/sources.list
使用gedit打开文档,将下边的阿里源复制进去,然后点击保存关闭。
阿里源
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
更新源
sudo apt-get update
安装adb
sudo apt-get install android-tools-adb