首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在18.04成功安装openjdk-8-jre

无法在18.04成功安装openjdk-8-jre
EN

Ask Ubuntu用户
提问于 2019-11-11 03:16:14
回答 1查看 385关注 0票数 1
代码语言:javascript
复制
pcu29@pcu29:~$ sudo apt-get install openjdk-8-jre
[sudo] password for pcu29: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  openjdk-8-jre-headless
Suggested packages:
  icedtea-8-plugin fonts-ipafont-gothic fonts-ipafont-mincho
  fonts-wqy-microhei fonts-wqy-zenhei
The following NEW packages will be installed:
  openjdk-8-jre openjdk-8-jre-headless
0 upgraded, 2 newly installed, 0 to remove and 173 not upgraded.
Need to get 0 B/27.5 MB of archives.
After this operation, 100 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package openjdk-8-jre-headless:amd64.
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'astyle' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
EN

回答 1

Ask Ubuntu用户

发布于 2019-11-11 04:23:12

文件已损坏。使用下列方法除去它:

代码语言:javascript
复制
sudo rm /var/lib/dpkg/info/astyle.list

然后使用以下方法重新安装包:

代码语言:javascript
复制
sudo apt install --reinstall openjdk-8-jre
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1187837

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档