当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 9 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 19:23 
头像

注册: 2009-12-16 10:09
帖子: 85
送出感谢: 3
接收感谢: 0 次
安装debian8.2, 重新安装了libreoffice最新版,卸载了游戏。使用aptitude安装包时,居然提示要卸载144个包,应该是我把包依赖给破坏了。请问这有解决办法吗?如何可靠的修复包依赖?谢谢!


_________________
高山仰止,景行行止。虽不能至,然心向往之。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 20:01 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
1.
把 /var/log/apt/history.log 发上来看看
代码:
sudo apt-get install pastebinit
sudo cat /var/log/apt/history.log | pastebinit -b http://paste.ubuntu.com/

会回应一个网址 (http://paste.ubuntu.com/XXXXXXXX)
把该网址贴上来

如果不能安装软件,手工将 /var/log/apt/history.log 的内容贴到 http://paste.ubuntu.com/

2.
居然提示要卸载144个包 的列表发上来看看


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
3 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 20:30 

注册: 2009-08-04 16:33
帖子: 16886
送出感谢: 21
接收感谢: 1826
引用:
使用 aptitude 安装包时

如果平時你習慣使用 apt-get 建議就使用 apt-get 不要混雜使用 aptitude
如果你習慣使用 aptitude 建議就使用aptitude 不要混雜使用 apt-get
混雜使用 有時 會出現跟你預期不同的訊息

參閱
1. http://askubuntu.com/questions/7644/pos ... d-synaptic
Possible problems in mixed use of apt-get, aptitude and synaptic
2. http://askubuntu.com/questions/27402/ap ... patibility
apt-get vs. aptitude .vs synaptic compatibility


页首
 用户资料  
 
4 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 21:11 
头像

注册: 2009-12-16 10:09
帖子: 85
送出感谢: 3
接收感谢: 0 次
代码:
$ cat /var/log/apt/history.log


Start-Date: 2015-12-15  00:45:22
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y --no-remove install grub-common
Install: os-prober:amd64 (1.65, automatic), grub-common:amd64 (2.02~beta2-22)
End-Date: 2015-12-15  00:45:28

Start-Date: 2015-12-15  00:45:36
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y --no-remove install grub-pc
Install: grub2-common:amd64 (2.02~beta2-22, automatic), grub-pc-bin:amd64 (2.02~beta2-22, automatic), grub-pc:amd64 (2.02~beta2-22)
End-Date: 2015-12-15  00:45:43

Start-Date: 2015-12-15  00:50:00
Install: sudo:amd64 (1.8.10p3-1+deb8u2)
End-Date: 2015-12-15  00:50:12

Start-Date: 2015-12-15  00:55:52
Commandline: apt-get install firmware-linux-nonfree libgl1-mesa-dri xserver-xorg-video-ati
Install: firmware-linux-nonfree:amd64 (0.43)
End-Date: 2015-12-15  00:56:06

Start-Date: 2015-12-15  01:02:42
Commandline: apt-get -f install
Install: libappindicator1:amd64 (0.4.92-3.1, automatic), libindicator7:amd64 (0.5.0-2, automatic), libdbusmenu-gtk4:amd64 (12.10.2-1, automatic), libdbusmenu-glib4:amd64 (12.10.2-1, automatic), libcurl3:amd64 (7.38.0-4+deb8u2, automatic)
End-Date: 2015-12-15  01:02:50

Start-Date: 2015-12-15  01:05:05
Commandline: apt-get -y purge libreoffice*
Purge: libreoffice-base-core:amd64 (4.3.3-2+deb8u2), libreoffice:amd64 (4.3.3-2+deb8u2), libreoffice-writer:amd64 (4.3.3-2+deb8u2), libreoffice-impress:amd64 (4.3.3-2+deb8u2), libreoffice-avmedia-backend-gstreamer:amd64 (4.3.3-2+deb8u2), libreoffice-base:amd64 (4.3.3-2+deb8u2), libreoffice-draw:amd64 (4.3.3-2+deb8u2), libreoffice-core:amd64 (4.3.3-2+deb8u2), libreoffice-gnome:amd64 (4.3.3-2+deb8u2), libreoffice-sdbc-firebird:amd64 (4.3.3-2+deb8u2), unoconv:amd64 (0.6-6), libreoffice-help-zh-cn:amd64 (4.3.3-2+deb8u2), libreoffice-report-builder-bin:amd64 (4.3.3-2+deb8u2), libreoffice-help-en-us:amd64 (4.3.3-2+deb8u2), gnome:amd64 (3.14+3), python3-uno:amd64 (4.3.3-2+deb8u2), libreoffice-common:amd64 (4.3.3-2+deb8u2), libreoffice-l10n-zh-cn:amd64 (4.3.3-2+deb8u2), libreoffice-sdbc-hsqldb:amd64 (4.3.3-2+deb8u2), libreoffice-gtk:amd64 (4.3.3-2+deb8u2), libreoffice-java-common:amd64 (4.3.3-2+deb8u2), libreoffice-style-tango:amd64 (4.3.3-2+deb8u2), libreoffice-style-galaxy:amd64 (4.3.3-2+deb8u2), mythes-en-us:amd64 (3.3.0-4), libreoffice-base-drivers:amd64 (4.3.3-2+deb8u2), libreoffice-math:amd64 (4.3.3-2+deb8u2), libreoffice-calc:amd64 (4.3.3-2+deb8u2), libreoffice-evolution:amd64 (4.3.3-2+deb8u2)
End-Date: 2015-12-15  01:05:54

Start-Date: 2015-12-15  06:54:22
Commandline: /usr/sbin/synaptic
Install: binutils:amd64 (2.25-5, automatic), flashplugin-nonfree:amd64 (3.6.1)
End-Date: 2015-12-15  06:55:56

Start-Date: 2015-12-15  06:57:05
Commandline: /usr/sbin/synaptic
Remove: gnome-games:amd64 (3.14+3), aisleriot:amd64 (3.14.1-1)
End-Date: 2015-12-15  06:57:15

Start-Date: 2015-12-15  06:58:09
Commandline: /usr/sbin/synaptic
Remove: brasero:amd64 (3.11.4-1.1)
End-Date: 2015-12-15  06:58:11

Start-Date: 2015-12-15  07:11:02
Commandline: /usr/sbin/synaptic
Remove: lightsoff:amd64 (3.14.1-1), iagno:amd64 (3.14.1-2), xboard:amd64 (4.8.0-2), swell-foop:amd64 (3.14.0-1), gnome-tetravex:amd64 (3.14.0-1), tali:amd64 (3.14.0-1), quadrapassel:amd64 (3.14.0-1), hoichess:amd64 (0.10.3-6.1), fortune-mod:amd64 (1.99.1-7), hitori:amd64 (3.14.0.1-1), gnome-chess:amd64 (3.14.0-1), gnome-sudoku:amd64 (3.14.1-1), fortunes-min:amd64 (1.99.1-7), fairymax:amd64 (4.8v-1), gnome-nibbles:amd64 (3.14.1-1), fortune-zh:amd64 (1.10), gnome-mahjongg:amd64 (3.14.1-1), five-or-more:amd64 (3.14.1-1), gnome-klotski:amd64 (3.14.1-1), four-in-a-row:amd64 (3.14.1-1), gnome-robots:amd64 (3.14.1-1), gnome-mines:amd64 (3.14.1-2)
End-Date: 2015-12-15  07:11:47

Start-Date: 2015-12-15  07:13:12
Commandline: /usr/sbin/synaptic
Remove: evolution:amd64 (3.12.9~git20141130.241663-1+b1), evolution-plugins:amd64 (3.12.9~git20141130.241663-1+b1)
End-Date: 2015-12-15  07:13:16

Start-Date: 2015-12-15  07:20:12
Commandline: /usr/sbin/synaptic
Remove: polari:amd64 (3.14.1-1)
End-Date: 2015-12-15  07:20:25

Start-Date: 2015-12-15  07:23:07
Commandline: /usr/sbin/synaptic
Install: libasan1:amd64 (4.9.2-10, automatic), libubsan0:amd64 (4.9.2-10, automatic), libtsan0:amd64 (4.9.2-10, automatic), libcilkrts5:amd64 (4.9.2-10, automatic), libc-dev-bin:amd64 (2.19-18+deb8u1, automatic), libatomic1:amd64 (4.9.2-10, automatic), gcc:amd64 (4.9.2-2), gcc-4.9:amd64 (4.9.2-10, automatic), manpages-dev:amd64 (3.74-1, automatic), libgcc-4.9-dev:amd64 (4.9.2-10, automatic), linux-libc-dev:amd64 (3.16.7-ckt11-1+deb8u6, automatic), liblsan0:amd64 (4.9.2-10, automatic), libitm1:amd64 (4.9.2-10, automatic), libc6-dev:amd64 (2.19-18+deb8u1, automatic)
End-Date: 2015-12-15  07:23:34

Start-Date: 2015-12-15  07:25:23
Commandline: /usr/sbin/synaptic
Install: libstdc++-4.9-dev:amd64 (4.9.2-10, automatic), g++:amd64 (4.9.2-2), g++-4.9:amd64 (4.9.2-10, automatic)
End-Date: 2015-12-15  07:25:30

Start-Date: 2015-12-15  07:26:27
Commandline: /usr/sbin/synaptic
Install: libxcb1-dev:amd64 (1.10-3+b1, automatic), libxau-dev:amd64 (1.0.8-1, automatic), x11proto-core-dev:amd64 (7.0.26-1, automatic), libxt-dev:amd64 (1.1.4-1+b1, automatic), openjdk-7-jdk:amd64 (7u91-2.6.3-1~deb8u1), libx11-dev:amd64 (1.6.2-3, automatic), x11proto-kb-dev:amd64 (1.0.6-2, automatic), xtrans-dev:amd64 (1.3.4-1, automatic), libxdmcp-dev:amd64 (1.1.1-1+b1, automatic), libx11-doc:amd64 (1.6.2-3, automatic), xorg-sgml-doctools:amd64 (1.11-1, automatic), libsm-dev:amd64 (1.2.2-1+b1, automatic), x11proto-input-dev:amd64 (2.3.1-1, automatic), libpthread-stubs0-dev:amd64 (0.3-4, automatic), libice-dev:amd64 (1.0.9-1+b1, automatic)
End-Date: 2015-12-15  07:26:49

Start-Date: 2015-12-15  07:28:11
Commandline: /usr/sbin/synaptic
Install: libresid-builder0c2a:amd64 (2.1.1-14, automatic), libcrystalhd3:amd64 (0.0~git20110715.fdd2f19-11, automatic), vlc-plugin-notify:amd64 (2.2.0~rc2-2+deb8u1, automatic), libsdl-image1.2:amd64 (1.2.12-5+b5, automatic), libvlccore8:amd64 (2.2.0~rc2-2+deb8u1, automatic), libdvbpsi9:amd64 (1.2.0-1, automatic), libproxy-tools:amd64 (0.4.11-4+b2, automatic), vlc-nox:amd64 (2.2.0~rc2-2+deb8u1, automatic), libupnp6:amd64 (1.6.19+git20141001-1, automatic), vlc-plugin-samba:amd64 (2.2.0~rc2-2+deb8u1, automatic), libusageenvironment1:amd64 (2014.01.13-1, automatic), libebml4:amd64 (1.3.0-2, automatic), libcddb2:amd64 (1.3.2-5, automatic), libbasicusageenvironment0:amd64 (2014.01.13-1, automatic), libgroupsock1:amd64 (2014.01.13-1, automatic), libiso9660-8:amd64 (0.83-4.2, automatic), vlc-data:amd64 (2.2.0~rc2-2+deb8u1, automatic), libgles2-mesa:amd64 (10.3.2-1+deb8u1, automatic), fonts-freefont-ttf:amd64 (20120503-4, automatic), libgles1-mesa:amd64 (10.3.2-1+deb8u1, automatic), libpostproc52:amd64 (0.git20120821-4, automatic), libxcb-composite0:amd64 (1.10-3+b1, automatic), libva-x11-1:amd64 (1.4.1-1, automatic), libshine3:amd64 (3.1.0-2.1, automatic), vlc:amd64 (2.2.0~rc2-2+deb8u1), libvlc5:amd64 (2.2.0~rc2-2+deb8u1, automatic), libmatroska6:amd64 (1.4.1-2, automatic), liblivemedia23:amd64 (2014.01.13-1, automatic), libvcdinfo0:amd64 (0.7.24+dfsg-0.2, automatic), libsidplay2:amd64 (2.1.1-14, automatic), libva-drm1:amd64 (1.4.1-1, automatic), libvncclient0:amd64 (0.9.9+dfsg2-6.1+deb8u1, automatic)
End-Date: 2015-12-15  07:28:46

Start-Date: 2015-12-15  07:30:24
Commandline: apt-get install vim
Install: vim:amd64 (7.4.488-7), vim-runtime:amd64 (7.4.488-7, automatic)
End-Date: 2015-12-15  07:30:35

Start-Date: 2015-12-15  13:11:55
Commandline: apt-get install -t jessie-backports iceweasel
Upgrade: iceweasel:amd64 (38.4.0esr-1~deb8u1, 43.0~b9-1~bpo80+1), iceweasel-l10n-zh-cn:amd64 (38.4.0esr-1~deb8u1, 43.0~b9-1~bpo80+1)
End-Date: 2015-12-15  13:12:17


_________________
高山仰止,景行行止。虽不能至,然心向往之。


页首
 用户资料  
 
5 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 21:21 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
居然提示要卸载144个包 的列表发上来看看

感觉应该没问题。卸掉的应该都是 libreoffice 的依赖
是安装软件时提示 The following packages are automatically installed and no longer required?


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
6 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 21:33 
头像

注册: 2009-12-16 10:09
帖子: 85
送出感谢: 3
接收感谢: 0 次
vickycq 写道:
居然提示要卸载144个包 的列表发上来看看

感觉应该没问题。卸掉的应该都是 libreoffice 的依赖
是安装软件时提示 The following packages are automatically installed and no longer required?


可能是我后面通过apt-get安装了别的软件,刚刚测试了一下,发现已经没有那么多了,
代码:
$ sudo aptitude purge gnash
[sudo] password for yexingying:
下列软件包将被“删除”:           
  bogofilter{u} bogofilter-bdb{u} bogofilter-common{u} brasero-cdrkit{u}
  dvdauthor{u} evolution-common{u} genisoimage{u} growisofs{u}
  guile-2.0-libs{u} libevolution{u} libgtkhtml-4.0-0{u}
  libgtkhtml-4.0-common{u} libgtkhtml-editor-4.0-0{u} libgtkspell3-3-0{u}
  libhz0{u} libpst4{u} libqqwing2{u} librecode0{u} libytnef0{u} wodim{u}
  zh-autoconvert{u}
0 个软件包被升级,新安装 0 个,21 个将被删除, 同时 0 个将不升级。
需要获取 0 B 的存档。解包后将释放 78.1 MB。
您要继续吗?[Y/n/?] n
放弃。


上面的包可以卸载吗?

记得之前显示的144,很恐怖,大概记得有gedit, libreoffice, transsmion等等。


_________________
高山仰止,景行行止。虽不能至,然心向往之。


页首
 用户资料  
 
7 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 21:54 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
应该没有问题。
之前要卸载很多包 估计是卸载游戏引起的。


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
8 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 22:12 
头像

注册: 2009-12-16 10:09
帖子: 85
送出感谢: 3
接收感谢: 0 次
vickycq 写道:
应该没有问题。
之前要卸载很多包 估计是卸载游戏引起的。

奇怪,我刚刚重复了一下那个aptitude命令,居然又说需要卸载0个软件包……


_________________
高山仰止,景行行止。虽不能至,然心向往之。


页首
 用户资料  
 
9 楼 
 文章标题 : Re: debian8.2包依赖被破坏,如何修复?
帖子发表于 : 2015-12-15 22:45 
头像

注册: 2008-07-30 23:21
帖子: 13427
地址: freebuilder@yeah.net
系统: Debian stable AMD64
送出感谢: 38
接收感谢: 127
这种事情只能靠自己慢慢积累经验


_________________
(2015-11-16 更新)适合 WM 的截图脚本
(2015-08-24 更新)Debian、Ubuntu 源列表说明
(2013-02-01 首发)文字如何绘出
▷▷ 【更 多 在 此】 ◁◁
箪食瓢饮随遇安,不求栋梁求参天。
【初韵】一门牛逼的编程语言。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 9 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译