我已经从更新管理器将 Ubuntu 18.04 升级到 20.04 LTS。升级后没有成功,重启后我发现系统有部分升级(一些图标来自 Ubuntu 20.04)。运行时
sudo apt--fix-broken 安装
出现以下错误。
正在读取软件包列表...完成 构建依赖关系树 正在读取状态信息...完成 纠正依赖关系...完成 以下软件包已自动安装并且不再需要: g++-7 gcc-8-base:i386 gir1.2-mutter-2 gnome-themes-extra gnome 主题-额外数据 gtk2-引擎-pixbuf libarmadillo8 libatomic1:i386 libboost-iostreams1.65.1 libboost-locale1.65.1 libbsd0:i386 libcdio17 libctemplate3 libdouble-conversion1 libdrm-amdgpu1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libedit2:i386 libelf1:i386 libexpat1:i386 libffi6:i386 libffi7:i386 libgeos-3.6.2 libgeotiff2 libgmime-3.0-0 libip4tc0 libip6tc0 libiptc0 libisl19 libllvm10:i386 libmozjs-52-0 libmutter-2-0 libmysqlcppconn7v5 libnm-gtk0 libomxil-bellagio-bin libomxil-bellagio0 liborcus-0.13-0 libpcre3:i386 libpcrecpp0v5 libperl5.26 libpodofo0.9.3 libpython3.6-dev libstdc++-7-dev libstdc++6:i386 libsynctex1 libtexlua52 libtinfo5:i386 libtinyxml2.6.2v5 libunistring2:i386 libva2:i386 libvdpau1:i386 libvsqlitepp3v5 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 libxcb-xfixes0:i386 libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxshmfence1:i386 libxxf86vm1:i386 libzstd1:i386 mesa-vdpau-驱动程序:i386 mysql-实用程序 mysql-workbench-数据 python-asn1crypto python-cffi-后端 python-加密 python-dnspython python-enum34 python-idna python-ipaddress python-mysql.connector python-paramiko python-pexpect python-ptyprocess python-pyasn1 python-pyodbc python-pysqlite2 python3-click python3-colorama python3.6-dev vdpau-driver-all:i386 x11proto-input-dev x11proto-kb-dev 使用“sudo apt autoremove”来删除它们。 将会安装以下附加软件包: dbus 字体-opensymbol gdal-data gir1.2-rb-3.0 libaec0 libaom0 libarmadillo9 libavcodec58 libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56 libboost-date-time1.71.0 libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-locale1.71.0 libboost-thread1.71.0 libbrlapi0.7 libcfitsio8 libcharls2 libcodec2-0.9 libcoin80c libcollada-dom2.4-dp0 libdap25 libdapclient6v5 libdc1394-22 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5 libgpgmepp6 libgraphicsmagick-q16-3 libgsm1 libhdf5-103 libjson-c4 liblilv-0-0 libmysofa1 libnetcdf15 libogdi4.1 libopenal-data libopenal1 libopengl0 libopenscenegraph160 libopenthreads21 liborcus-0.15-0 libpodofo0.9.6 libpostproc55 libproj15 libqxp-0.0-0 libreoffice-gtk libreoffice-pdfimport libreoffice-style-breeze librhythmbox-core10 librubberband2 libsdl2-2.0-0 libserd-0-0 libsnappy1v5 libsndio7.0 libsord-0-0 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libsz2 libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 libva-drm2 libva-x11-2 libva2 libva2:i386 libvidstab1.1 libx264-155 libx265-179 libxmlsec1 libxmlsec1-nss libzmf-0.0-0 ocl-icd-libopencl1 proj-data 节奏盒 节奏盒数据 scribus scribus-数据 uno-libs-私有 建议的软件包: libopenal0a libsimage-dev libbullet2 geotiff-bin gdal-bin libgeotiff-epsg graphicsmagick-dbg ogdi-bin breeze-icon-theme serdi sndiod sordi opencl-icd gstreamer1.0-插件-糟糕 gstreamer1.0-插件-丑陋 gnome-编解码器-安装 rhythmbox-plugin-cdrecorder icc-profiles scribus-ng-doc scribus-template 推荐套餐: va-驱动程序-全部:i386 | va-驱动程序:i386 下列软件包将被删除: appmenu-qt libdbusmenu-qt2 libebook-1.2-19 libgdal20 libhdf5-100 libnetcdf13 libogdi3.2 libqt4-dbus libqt4-declarative libqt4-network libqt4-script libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-xml libqt4-xmlpatterns libqtdbus4 libqtgui4 qdbus qt-at-spi uno-libs3 将会安装以下新软件包: libaom0 libarmadillo9 libavcodec58 libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56 libboost-date-time1.71.0 libboost-文件系统1.71.0 libboost-iostreams1.71.0 libboost-本地化1.71.0 libboost-thread1.71.0 libbrlapi0.7 libcfitsio8 libcharls2 libcodec2-0.9 libcoin80c libcollada-dom2.4-dp0 libdc1394-22 libgdal26 libgeos-3.8.0 libgeotiff5 libgfortran5 libgraphicsmagick-q16-3 libhdf5-103 libjson-c4 liblilv-0-0 libmysofa1 libnetcdf15 libogdi4.1 libopenal-data libopenal1 libopengl0 libopenscenegraph160 libopenthreads21 liborcus-0.15-0 libpodofo0.9.6 libpostproc55 libproj15 libqxp-0.0-0 libsdl2-2.0-0 libserd-0-0 libsndio7.0 libsord-0-0 libsratom-0-0 libswresample3 libswscale5 libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 libvidstab1.1 libx264-155 libx265-179 libzmf-0.0-0 ocl-icd-libopencl1 uno-libs-私有 以下软件包将会升级: dbus 字体-opensymbol gdal-data gir1.2-rb-3.0 libaec0 libdap25 libdapclient6v5 libgeos-c1v5 libgpgmepp6 libgsm1 libreoffice-gtk libreoffice-pdfimport libreoffice-style-breeze librhythmbox-core10 librubberband2 libsnappy1v5 libssh-gcrypt-4 libsz2 libva-drm2 libva-x11-2 libva2 libva2:i386 libxmlsec1 libxmlsec1-nss proj-data 节奏盒 rhythmbox-数据 scribus scribus-数据 29 个已升级,59 个已新安装,21 个已删除,还有 1148 个未升级。 162 未完全安装或删除。 需要获取 0 B/83.4 MB 的档案。 此操作后,将使用158 MB的额外磁盘空间。 您想继续吗?[Y/n] y 从包中提取模板:100% (正在读取数据库...当前安装了 299569 个文件和目录。) 准备解压 .../dbus_1.12.16-2ubuntu2.1_amd64.deb ... 正在将 dbus (1.12.16-2ubuntu2.1) 解压到 (1.12.2-1ubuntu1.2) 上... dpkg:处理存档 /var/cache/apt/archives/dbus_1.12.16-2ubuntu2.1_a 时出错 md64.deb (--解包): 无法安装(假定的)新信息文件“/var/lib/dpkg/tmp.ci/prerm”:是广告 教区 处理时遇到错误: /var/cache/apt/archives/dbus_1.12.16-2ubuntu2.1_amd64.deb E: 子进程 /usr/bin/dpkg 返回错误代码 (1)
无法解决问题。如何获得 Ubuntu 20.0 的完整安装?
答案1
首先删除有问题的对象/目录
sudo rm -rf /var/lib/dpkg/tmp.ci
然后清理下载的软件包
sudo apt-get clean
并恢复升级程序:
sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get dist-upgrade