求助!APT问题

最大的社区版本,Ubuntu的发源地
回复
luckfatman
帖子: 1
注册时间: 2016-03-27 19:42
系统: debian

求助!APT问题

#1

帖子 luckfatman » 2016-03-27 20:15

我想删除CUPS打印系统。输入:apt-get remove cups,结果出来一大堆要安装,删除和升级的软件,我没仔细看就确认了。结果apt,aptitude,dselect,man等,还有桌面的所有软件都被删除了。没一个个确认。现在想装软件就得用dpkg了,但是需要一大堆依赖的软件太烦人了。有什么方法能比较简单的装回APT,APTITUDE中的一个就可以啊!哪位大神帮帮忙,谢谢了!

/var/log/apt/history.log 的内容已经贴到:http://paste.ubuntu.com/15520982/
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 求助!APT问题

#2

帖子 vickycq » 2016-03-27 20:45

luckfatman 写了:history的内容,http://paste.ubuntu.com/15520982/
谢谢!
首先猜测你的系统是 wheezy,而且是从 squeeze 升上来的,而且升级不完全

如果你的系统是 wheezy:(注意,不是 wheezy 不要进行)
1. 从 https://packages.debian.org/wheezy/amd64/apt/download 下载 apt 的 deb 包,用 dpkg -i 安装。我看了依赖应该都满足
2. 有了 apt 后,编辑 /etc/apt/sources.list 将无关条目删除,指向 wheezy
看起来像这样:

代码: 全选

deb http://httpredir.debian.org/debian/ wheezy main non-free contrib
deb-src http://httpredir.debian.org/debian/ wheezy main non-free contrib
3. 执行

代码: 全选

# apt-get update
# apt-get install aspell-en openoffice.org-draw python-coherence libgweather1 python-gnome2 menu gnome-media-common libwpd8c2a gnome-power-manager espeak gcj-4.4-jre-headless python-notify libevolution python-cupshelpers python-pyorbit rpm2cpio openoffice.org-evolution pnm2ppa python-debian python-gnomedesktop tasksel-data gnome-accessibility unattended-upgrades gnome-media libcupsppdc1 metacity libgnome2-vfs-perl nautilus libopenraw1 libgnome2-0 python-twisted-bin python-numpy aspell libgtkhtml-editor0 openoffice.org-officebean gnome-session-bin gstreamer0.10-plugins-bad openoffice.org-emailmerge libbrasero-media0 cndrvcups-ufr2-uk libgcj-bc gcj-4.4-base telnet gnome-applets poppler-utils python-reportbug libicu44 openoffice.org-impress gstreamer0.10-plugins-ugly libseed0 totem-plugins gnome-panel-data evolution-plugins hplip-cups libmagickcore3 libpangomm-1.4-1 scim-bridge-client-gtk evolution libspectre1 python-openssl libgnomeui-0 openoffice.org-base-core libgtkmm-2.4-1c2a gnome-settings-daemon python-pyatspi python-louie python-louis libboost-python1.42.0 bsh-gcj ghostscript-cups epiphany-browser alacarte gedit gnome-menus python-imaging python-httplib2 gnome-system-monitor libmagickwand3 python-nevow libgnomevfs2-common gnome-terminal gnome-session libpolkit-gtk-1-0 hpijs libplot2c2 libgnomevfs2-extra python-software-properties reportbug hplip libboost-date-time1.42.0 gconf2 python-zope.interface libjack-jackd2-0 librpmio1 python-twisted-conch librpm1 libwps-0.1-1 libmagick++3 aptitude libgomp1 hylafax-client apt-listchanges python-apt gcj-4.4-jre-lib openoffice.org-help-en-us gcj-jre groff-base python-central gettext-base libfftw3-3 python-gnomekeyring python-gtksourceview2 libboost-iostreams1.42.0 python-twisted-web python-apt-common scim python-axiom libexiv2-9 mysql-server-core-5.1 libsigc++-2.0-0c2a liblapack3gf libcanberra-gtk-module libcwidget3 libscim8c2a libgweather-common evolution-webcal python-serial grub-pc openoffice.org-math openoffice.org-writer gcc-4.4 metacity-common openoffice.org-gcj gstreamer0.10-plugins-good libgcj10 cups-ppdc libglibmm-2.4-1c2a dasher apt-utils cndrvcups-common python-epsilon libhsqldb-java-gcj openoffice.org-report-builder-bin browser-plugin-gnash python-gmenu libportaudio2 openoffice.org-gtk libpstoedit0c2a python-pam libgegl-0.0-0 libcairomm-1.0-1 libgcj10-awt libgtkspell0 libgail-gnome-module gnome-orca pstoedit apt ufraw-batch python-glade2 gnash-common python-brlapi uno-libs3 gnome-about python-clientform libexempi3 iceweasel fbi openoffice.org-java-common gcc libgnome2-common eog python-xapian apt-xapian-index deskbar-applet libept1 totem-coherence libpanel-applet2-0 python-uno dasher-data python gcj-4.4-jre libgtkglext1 gok python-xdg cups-driver-gutenprint libgtkhtml3.14-19 libgnomevfs2-0 im-config xulrunner-1.9.1 python-cairo gnome-applets-data system-config-printer-udev libgme0 at-spi libpoppler5 librarian0 software-properties-gtk rarian-compat w3m scim-gtk2-immodule libboost-thread1.42.0 libevince2 python-dbus openoffice.org-filter-mobiledev python-mechanize libxapian22 gdm3 gnome-terminal-data cups python-tagpy libdjvulibre21 libpoppler-glib4 openoffice.org-filter-binfilter evince python-chardet system-config-printer python-twisted-core gcj-jre-headless python-utidylib libespeak1 libgnome-media0 python-configobj x-ttcidfont-conf nautilus-data openoffice.org python-gnupginterface scim-bridge-agent cdrdao libblas3gf tasksel libgs9 libhunspell-1.2-0 gnome-dictionary gimp ure twm python-gobject openoffice.org-base libvisual-0.4-plugins libmozjs2d yelp libperl5.10 libgnome-speech7 synaptic openoffice.org-style-tango fbterm libwebkit-1.0-2 gksu libsidplay1 gnash gnome-screensaver python-gdbm python-cups gnome-core openoffice.org-calc ghostscript libbonoboui2-0 python-gst0.10 libsoundtouch1c2 hylafax-server libgksu2-0 libgnome2-perl scim-pinyin xorg libgfortran3 python-gnomeapplet python-support gnome-control-center man-db python-pexpect evolution-data-server imagemagick gnome-user-guide libgraphite3 exiv2 libmusicbrainz4c2a python-wnck brasero libwpg-0.1-1 libgc1c2 libmagickcore3-extra openoffice.org-common python-gdata gnome-panel capplets-data libgcj-common sun-java6-fonts grub-common dvd+rw-tools libglu1-mesa openoffice.org-style-galaxy totem python-pkg-resources libmetacity-private0 perlmagick binutils python-beautifulsoup python-pysqlite2 openoffice.org-gnome openoffice.org-thesaurus-en-us inkscape p7zip-full defoma python-rdflib python-feedparser mysql-server-5.1 lsb-release python-gtk2 python-gconf python-crypto openoffice.org-core gnome-doc-utils libofa0 python-libxml2 file-roller libmythes-1.2-0 mysql-client-5.1 python-pyasn1 gnome-netstatus-applet scim-modules-socket hplip-data libtag1-vanilla 
4. 执行

代码: 全选

# apt-get update
# apt-get dist-upgrade
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复