好的……Ubuntu 10.04 分区由于某种原因无法再启动。我不太清楚我做了什么。我感觉我无意中删除了一些重要的软件包。但是,当我在恢复模式下启动并选择“dpkg:修复损坏的软件包”时,我得到了以下输出:
rm: cannot remove `/var/lib/apt/lists/partial/*': No such file or directory
rm: cannot remove `/var/cache/apt/archives/partial/*': No such file or directory
Reading Cache
Reading Package lists: Done
Reading State Information: Done
Reading State Information: Done
Reading State Information: Done
No candidate ver: libisc44
No candidate ver: readahead
No candidate ver: libdirectfb-1.0-0
No candidate ver: upstart-logd
No candidate ver: libparted1.8-10
No candidate ver: libflickrnet2.1.5-cil
No candidate ver: libicu38
No candidate ver: fast-user-switch-applet
No candidate ver: linux-restricted-modules-2.6.28-11-generic
No candidate ver: libnm-util0
No candidate ver: libwebkit-1.0-1
No candidate ver: libopal3.6.1
No candidate ver: libbind9-40
No candidate ver: linux-restricted-modules-common
No candidate ver: upstart-compat-sysv
No candidate ver: linux-restricted-modules-2.6.28-13-generic
No candidate ver: chromium-browser
No candidate ver: libisc45
No candidate ver: belocs-locales-bin
No candidate ver: libxcb-xlib0
No candidate ver: libpoppler4
No candidate ver: libpulsecore9
No candidate ver: libpulsecore5
No candidate ver: linux-image-2.6.28-15-generic
No candidate ver: libntfs-3g49
No candidate ver: libisccfg40
No candidate ver: libavahi-core5
No candidate ver: linux-restricted-modules-2.6.27-7-generic
No candidate ver: libparted1.8-9
No candidate ver: libmagickwand1
No candidate ver: libwvstreams4.4-base
No candidate ver: linux-image-2.6.28-14-generic
No candidate ver: libraw1394-8
No candidate ver: libdatrie0
No candidate ver: libboost-program-options1.35.0
No candidate ver: libgnomekbdui3
No candidate ver: libsgutils1
No candidate ver: libass1
No candidate ver: linux-restricted-modules-2.6.28-15-generic
No candidate ver: libindicate1
No candidate ver: libgnomekbd3
No candidate ver: system-services
No candidate ver: linux-image-2.6.28-13-generic
No candidate ver: libmagick10
No candidate ver: libcolamd-3.2.0
No candidate ver: desktop-effects-kde
No candidate ver: picasa
No candidate ver: libgnome-desktop-2-7
No candidate ver: libntfs-3g28
No candidate ver: libxklavier12
No candidate ver: libgpod3
No candidate ver: libmagickcore1
No candidate ver: libffado0
No candidate ver: libzephyr3
No candidate ver: libuniconf4.4
No candidate ver: libmbca0
No candidate ver: liblwres40
No candidate ver: hotkey-setup
No candidate ver: libkrb53
No candidate ver: ttf-bitstream-vera
No candidate ver: libee12-2
No candidate ver: libopal-2.2
No candidate ver: songbird
No candidate ver: plib1.8.4c2
No candidate ver: linux-image-2.6.27-7-generic
No candidate ver: libpoppler3
No candidate ver: google-chrome-unstable
No candidate ver: linux-image-2.6.28-11-generic
No candidate ver: linux-restricted-modules-2.6.28-14-generic
No candidate ver: simgear1.0.0
No candidate ver: libpoppler-glib3
No candidate ver: mono-common
No candidate ver: libx264-65
No candidate ver: libwvstreams4.4-extras
No candidate ver: libdns43
No candidate ver: libnm-glib0
No candidate ver: libpt2.6.1
No candidate ver: libisccc40
No candidate ver: libdns45
No candidate ver: libisc44
No candidate ver: readahead
No candidate ver: libdirectfb-1.0-0
No candidate ver: upstart-logd
No candidate ver: libparted1.8-10
No candidate ver: libflickrnet2.1.5-cil
No candidate ver: libicu38
No candidate ver: fast-user-switch-applet
No candidate ver: linux-restricted-modules-2.6.28-11-generic
No candidate ver: libnm-util0
No candidate ver: libwebkit-1.0-1
No candidate ver: libopal3.6.1
No candidate ver: libbind9-40
No candidate ver: linux-restricted-modules-common
No candidate ver: upstart-compat-sysv
No candidate ver: linux-restricted-modules-2.6.28-13-generic
No candidate ver: chromium-browser
No candidate ver: libisc45
No candidate ver: belocs-locales-bin
No candidate ver: libxcb-xlib0
No candidate ver: libpoppler4
No candidate ver: libpulsecore9
No candidate ver: lipulsecore5
No candidate ver: linux-image-2.6.28-15-generic
No candidate ver: libntfs-3g49
No candidate ver: libisccfg40
No candidate ver: libavahi-core5
No candidate ver: linux-restricted-modules-2.6.27-7-generic
No candidate ver: libparted1.8-9
No candidate ver: libmagickwand1
No candidate ver: linux-image-2.6.28-14-generic
No candidate ver: libraw1394-8
No candidate ver: libdatrie0
No candidate ver: libboost-program-options1.35.0
No candidate ver: libgnomekbdui3
No candidate ver: libsgutils1
No candidate ver: libass1
No candidate ver: linux-restricted-modules-2.6.28-15-generic
No candidate ver: libindicate1
No candidate ver: libgnomekbd3
No candidate ver: system-services
No candidate ver: linux-image-2.6.28-13-generic
No candidate ver: libmagick10
No candidate ver: libcolamd-3.2.0
No candidate ver: desktop-effects-kde
No candidate ver: picasa
No candidate ver: libgnome-desktop-2-7
No candidate ver: libntfs-3g28
No candidate ver: libxklavier12
No candidate ver: libgpod3
No candidate ver: libmagickcore1
No candidate ver: libffado0
No candidate ver: libzephyr3
No candidate ver: libuniconf4.4
No candidate ver: libmbca0
No candidate ver: liblwres40
No candidate ver: hotkey-setup
No candidate ver: libkrb53
No candidate ver: ttf-bitstream-vera
No candidate ver: libeel2-2
No candidate ver: libopal-2.2
No candidate ver: songbird
No candidate ver: plib1.8.4c2
No candidate ver: linux-image-2.6.27-7-generic
No candidate ver: libpoppler3
No candidate ver: google-chrome-unstable
No candidate ver: linux-image-2.6.28-11-generic
No candidate ver: linux-restricted-modules-2.6.28-14-generic
No candidate ver: simgear1.0.0
No candidate ver: libpoppler-glib3
No candidate ver: mono-common
No candidate ver: libx264-65
No candidate ver: libwvstreams4.4-extras
No candidate ver: libdns43
No candidate ver: libnm-glib0
No candidate ver: libpt2.6.1
No candidate ver: libisccc40
No candidate ver: libdns45
Your system is up-to-date
There are no upgrades available for your system. The upgrade will now be canceled.
Do you want to start the upgrade?
Continue [yN] Details [d]
我假设我缺少每个软件包。但是,当我尝试安装它们时,例如:
sudo apt-get install libisc44
我收到一些回复说这个包丢失了和/或它可能是另一个包的一部分。
我不太清楚我该怎么做。我不想重新安装 ubuntu,因为我已将其与 Windows Vista 双启动,并且我不想在 Windows 分区上冒任何风险。
你怎么看?
编辑:我已经在 Ubuntu 论坛上发布了此消息,但没有人回复,所以...是的
答案1
您似乎删除了一些系统目录。根据损坏程度,您可能需要重新安装。
如果只有一个目录,请执行以下操作:
sudo mkdir -p /var/lib/apt/lists/partial/
答案2
双启动不会阻止您重新安装,它不会比初始安装更具风险。
听起来你丢失了一些重要的文件,rm 就是其中之一。或者你的路径搞砸了。
尝试运行命令
rm
如果它告诉你找不到该命令,请运行此命令
echo $PATH
并将输出放在评论中