Tag: 的dpkg

E:Mysql-server-5.5安装错误

我尝试在我的ubuntu vps上安装mysql-server一段时间没有成功 在安装过程中的全新安装(完全清除所有与mysql相关的软件包)期间,它要求设置root密码,之后它会显示一个错误屏幕,其中包含: 设置MySQL管理用户的密码时发生错误。 这可能是因为帐户已经有密码,或者是因为MySQL服务器存在通信问题。 Unpacking mysql-server (from …/mysql-server_5.5.34-0ubuntu0.12.04.1_all.deb) … Processing triggers for man-db … Setting up libmysqlclient18 (5.5.34-0ubuntu0.12.04.1) … Setting up libdbd-mysql-perl (4.020-1build2) … Setting up mysql-client-core-5.5 (5.5.34-0ubuntu0.12.04.1) … Setting up mysql-client-5.5 (5.5.34-0ubuntu0.12.04.1) … Setting up mysql-server-core-5.5 (5.5.34-0ubuntu0.12.04.1) … Setting up mysql-server-5.5 (5.5.34-0ubuntu0.12.04.1) … 131130 18:01:34 [Warning] Using unique option prefix key_buffer instead of […]

如何强制部分安装的软件包的配置?

每当我运行aptitude safe-upgrade ,我得到这个输出: The following partially installed packages will be configured: cups gconf2 ufw update-manager No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. 如何配置提到的四个包? 我试过dpkg-reconfigure gconf2但是失败了 /usr/sbin/dpkg-reconfigure: gconf2 […]

安装后脚本始终失败时如何强制删除

我在我的Ubuntu 10.10上安装了一个自定义包,并尝试删除它,我得到了: $ sudo dpkg -r package sub-process script post-installation installed returne an error state 127 (从命令返回的消息是从葡萄牙语(br)翻译而来的。 所以,我注意到在这个软件包的安装脚本中,它所做的是在我的启动时创建一个条目,在/ opt上创建一个文件夹并创建一个用户。 我删除了所有创建的内容。 但是现在,我只想将它从dpkg列表中删除,因为如果我从未安装过这个包,我想让我的linux变得像。 我怎样才能做到这一点?

错误:在55497包’indicator-displex’附近解析文件’/ var / lib / dpkg / status’

在从Ubuntu 11.10(Oneiric Ocelot)升级到12.04LTS(精确穿山甲)后,弹出一个窗口说升级失败,我应该运行sudo dpkg –configure -a 。 运行该命令给了我: sudo dpkg –configure -a dpkg: error: parsing file ‘/var/lib/dpkg/status’ near line 55497 package ‘indicator-displex’: blank line in value of field ‘Description 尝试运行apt-get install -f会给我带来很多依赖性错误以及同样的dpkg错误。

dpkg:错误:在第0行附近解析文件’/ var / lib / dpkg / updates / 0045’:

我在Ubuntu 12.04中收到此错误,同时执行以下操作。 frank@august:~$ sudo apt-get install ttf-mscorefonts-installer [sudo] password for frank: E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem. frank@august:~$ sudo dpkg –configure -a dpkg: error: parsing file ‘/var/lib/dpkg/updates/0045′ near line 0: newline in field name `#padding’ frank@august:~$ & frank@august:~$ head /var/lib/dpkg/updates/0045 #padding #padding #padding #padding frank@august:~$ […]

升级内核时“gzip:stdout:设备上没有剩余空间”

尝试运行下面显示的命令时,我看到以下错误。 我在某处读到我的/ boot分区磁盘空间不足。 如何增加/ boot分区的大小以便安装更多软件? 我有一个500GB的硬盘,所以有足够的空间可以玩。 sudo apt-get install libdvdread4 gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-3.2.0-33-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-33-generic.postinst line 1010. dpkg: error processing linux-image-3.2.0-33-generic (–configure): subprocess installed post-installation script returned […]

如何恢复已删除的“dpkg”目录?

不幸的是我在删除锁时删除了dpkg目录。 我打错了 root@sam:~$ rm -r /var/lib/dpkg 现在,当我尝试安装/卸载软件包时,它会向我显示以下错误。 E: Could not open lock file /var/lib/dpkg/lock – open (2: No such file or directory) 我现在应该怎么做?

dpkg退出,解析文件`/ var / lib / dpkg / status`时出错,该怎么办?

当我尝试安装任何软件时,我遇到此错误,因此我无法更新。 Preconfiguring packages … dpkg: error: parsing file ‘/var/lib/dpkg/status’ near line 51245 package ‘oracle-xe’: mixed non-coinstallable and coinstallable package instances present N: Ignoring file ‘gcl’ in directory ‘/etc/apt/sources.list.d/’ as it has no filename extension N: Ignoring file ‘gcl’ in directory ‘/etc/apt/sources.list.d/’ as it has no filename extension E: Sub-process /usr/bin/dpkg returned an error code (2)

使用dpkg安装软件包时“无法访问存档:没有此类文件或目录”

我在下载文件中下载了QQ2012的deb,但是当我安装deb时,系统告诉我: collins@collins-Aspire-3830TG:~$ sudo dpkg -i wineqq2012-20120719-longene.deb [sudo] password for collins: dpkg: error processing wineqq2012-20120719-longene.deb (–install): cannot access archive: No such file or directory Errors were encountered while processing: wineqq2012-20120719-longene.deb

dpkg:错误:dpkg状态数据库被另一个进程锁定

我只是想知道是否有人可以告诉我这意味着什么: E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem. reidsr@ubuntu:~$ sudo dpkg –configure -a dpkg: error: dpkg status database is locked by another process reidsr@ubuntu:~$ 如何手动运行sudo dpkg –configure -a ?