dpkg: error processing archive /var/cache/apt/archives/gconf-service_3.2.6-3_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/gconf/gconfd-2', which is also in package gconf-service-backend 3.2.6-0ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gconf-service_3.2.6-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
对于 Java:
- 打开终端。
- 输入
sudo apt-get install openjdk-7-jdk openjdk-7-jre
- 输入
对于 Android Studio:
- 打开终端。
- 类型
sudo add-apt-repository ppa: paolorotolo / android-studio
- 类型
- 类型
sudo apt-get update
- 类型
- 类型
sudo apt-get install android-studio
- 类型
- 打开安装它的存储库并右键单击,然后选择“在终端中运行”。
您可能需要将 jdk 连接到 Android Studio,具体取决于哪个版本,如果出现错误,则尝试安装 OracleJDK。