无法从 VGA 切换到 Nvidia 卡,出现“错误:BrokenCount > 0”,无法更新 libvdpau1 文件

无法从 VGA 切换到 Nvidia 卡,出现“错误:BrokenCount > 0”,无法更新 libvdpau1 文件

好吧,这是一个奇怪的现象。

使用 HP Pavillion Slimline,采用 Nvidia GeForce 6150SE nForce 430,驱动程序为 304.128,以及 Ubuntu 14.04 LTS。

运行结果

lshw

显示以下内容(不确定是否全部/任何内容相关):

description: Desktop Computer
product: s5602la (BM437AA#ABM)
vendor: Hewlett-Packard
version: Chassis Version
width: 64 bits
capabilities: smbios-2.5 dmi-2.5 vsyscall32
configuration: boot=normal chassis=desktop family=103C_53316J G=D     sku=BM437AA#ABM uuid=8088F359-CB59-1610-A395-8546BA7CF8F9
  *-core
   description: Motherboard
   product: 2A99
   vendor: PEGATRON CORPORATION
   physical id: 0
   version: 6.01
   serial: 107396950000153
 *-firmware
      description: BIOS
      vendor: American Megatrends Inc.
      physical id: 0
      version: 6.13
      date: 09/08/2010
      size: 64KiB
      capacity: 960KiB
      capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification


 *-pci:0
      description: PCI bridge
      product: MCP61 PCI bridge
      vendor: NVIDIA Corporation
      physical id: 100
      bus info: pci@0000:00:04.0
      version: a1
      width: 32 bits
      clock: 66MHz
      capabilities: pci ht subtractive_decode bus_master cap_list
 *-multimedia
      description: Audio device
      product: MCP61 High Definition Audio
      vendor: NVIDIA Corporation
      physical id: 5
      bus info: pci@0000:00:05.0
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: pm msi ht bus_master cap_list
      configuration: driver=snd_hda_intel latency=0 maxlatency=5 mingnt=2
      resources: irq:22 memory:fbff8000-fbffbfff

 *-pci:1
      description: PCI bridge
      product: MCP61 PCI Express bridge
      vendor: NVIDIA Corporation
      physical id: 9
      bus info: pci@0000:00:09.0
      version: a2
      width: 32 bits
      clock: 33MHz
      capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
      configuration: driver=pcieport
      resources: irq:40
 *-pci:2
      description: PCI bridge
      product: MCP61 PCI Express bridge
      vendor: NVIDIA Corporation
      physical id: b
      bus info: pci@0000:00:0b.0
      version: a2
      width: 32 bits
      clock: 33MHz
      capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
      configuration: driver=pcieport
      resources: irq:41
 *-pci:3
      description: PCI bridge
      product: MCP61 PCI Express bridge
      vendor: NVIDIA Corporation
      physical id: c
      bus info: pci@0000:00:0c.0
      version: a2
      width: 32 bits
      clock: 33MHz
      capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
      configuration: driver=pcieport
      resources: irq:42
 *-display
      description: VGA compatible controller
      product: C61 [GeForce 6150SE nForce 430]
      vendor: NVIDIA Corporation
      physical id: d
      bus info: pci@0000:00:0d.0
      version: a2
      width: 64 bits
      clock: 66MHz
      capabilities: pm msi vga_controller bus_master cap_list rom
      configuration: driver=nvidia latency=0
      resources: irq:21 memory:fa000000-faffffff memory:e0000000-efffffff memory:f9000000-f9ffffff memory:fbfc0000-fbfdffff

我想玩英雄联盟,所以我成功安装了 PlayOnLinux 和 LoL 本身。我的 FPS 非常低(最多 10 左右),所以我开始寻找解决方案。我唯一能推断出缺少更高 FPS 的东西是较新的 nvidia 驱动程序,所以我尝试安装版本 331(我目前使用的是 304)。

我从终端执行了此操作:

sudo apt-get install nvidia-331 nvidia-331-updates

331 驱动程序安装失败,我遇到了黑屏登录循环,我通过在恢复模式下重新启动,然后清除 nvidia 驱动程序并重新安装 304 来解决这个问题。我收到一条错误消息,指出无法覆盖“/etc/vdpau_wrapper.cfg”,并且 libvdpau1_1.1 给出了错误代码 (1)

我尝试使用 'rm' 命令从终端删除这两个文件,然后尝试再次使用

sudo apt-get install -f 

结果相同:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
    libvdpau1
    Suggested packages:
      nvidia-vdpau-driver vdpau-driver
    The following NEW packages will be installed:
      libvdpau1
    0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/26.4 kB of archives.
    After this operation, 120 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 1403913 files and directories          currently                 installed.)
    Preparing to unpack .../libvdpau1_1.1-0ubuntu1~xedgers14.04.1_amd64.deb ...
    Unpacking libvdpau1:amd64 (1.1-0ubuntu1~xedgers14.04.1) ...
    dpkg: error processing archive /var/cache/apt/archives        /libvdpau1_1.1-0ubuntu1~xedgers14.04.1_amd64.deb (--unpack):
             trying to overwrite shared '/etc/vdpau_wrapper.cfg', which         is        different from other instances of package         libvdpau1:amd64
    Errors were encountered while processing:
     /var/cache/apt/archives/libvdpau1_1.1-0ubuntu1~xedgers14.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

执行 -f 命令后,我得到了与上述相同的错误。此外,我还得到了“Error: BrokenCount > 0”警告。

尝试使用 Ubuntu 软件中心时,系统提示“由于系统损坏,我无法安装或更新”,并显示以下消息:“无法安装新软件,因为当前安装的软件存在问题。您想立即修复此问题吗?”我单击“修复”,得到以下信息:“软件包操作失败。软件包的安装或删除失败。”并显示:

(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 1403913 files and directories currently installed.)
Preparing to unpack .../libvdpau1_1.1-0ubuntu1~xedgers14.04.1_amd64.deb ...
Unpacking libvdpau1:amd64 (1.1-0ubuntu1~xedgers14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives    /libvdpau1_1.1-0ubuntu1~xedgers14.04.1_amd64.deb (--unpack):
 trying to overwrite shared '/etc/vdpau_wrapper.cfg', which is different     from other instances of package libvdpau1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libvdpau1_1.1-0ubuntu1~xedgers14.04.1_amd64.deb
Error in function: 
dpkg: dependency problems prevent configuration of nvidia-settings:
 nvidia-settings depends on libvdpau1; however:
  Package libvdpau1:amd64 is not installed.

dpkg: error processing package nvidia-settings (--configure):
 dependency problems - leaving unconfigured

然后软件中心崩溃了,我收到以下消息:“软件包系统已损坏。请检查您是否正在使用第三方存储库。”

不确定这个额外的信息是否有用,但是在运行时

lspci -vnn | grep -i VGA -A 12

我得到以下信息:

00:0d.0 VGA compatible controller [0300]: NVIDIA Corporation C61 [GeForce     6150SE nForce 430] [10de:03d0] (rev a2) (prog-if 00 [VGA     controller])
    Subsystem: Hewlett-Packard Company Device [103c:2a99]
    Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
    Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    Memory at f9000000 (64-bit, non-prefetchable) [size=16M]
    [virtual] Expansion ROM at fbfc0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: nvidia

00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 10h     Processor HyperTransport Configuration [1022:1200]
    Flags: fast devsel
    Capabilities: <access denied>

另外,当我输入

sudo lshw -C display; lsb_release -a; uname -a:

我得到以下信息:

 *-display               
   description: VGA compatible controller
   product: C61 [GeForce 6150SE nForce 430]
   vendor: NVIDIA Corporation
   physical id: d
   bus info: pci@0000:00:0d.0
   version: a2
   width: 64 bits
   clock: 66MHz
   capabilities: pm msi vga_controller bus_master cap_list rom
   configuration: driver=nvidia latency=0
   resources: irq:21 memory:fa000000-faffffff memory:e0000000-efffffff memory:f9000000-f9ffffff memory:fbfc0000-fbfdffff

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

uname: invalid option -- ':'
Try 'uname --help' for more information.

所以:

  1. 我怎样才能解决这个问题?
  2. 331驱动能装吗?

多谢!


uname -a

Linux alfredo-s5602la 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

sudo apt-get remove libvdpau1

[sudo] password for alfredo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libvdpau1' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 nvidia-settings : Depends: libvdpau1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libjansson4 libxnvctrl0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libvdpau1
Suggested packages:
  nvidia-vdpau-driver vdpau-driver
The following NEW packages will be installed:
  libvdpau1
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
3 not fully installed or removed.
Need to get 0 B/27.6 kB of archives.
After this operation, 124 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 1403926 files and directories currently installed.)
Preparing to unpack .../libvdpau1_1.1.1-0ubuntu0~gpu14.04.1_amd64.deb ...
Unpacking libvdpau1:amd64 (1.1.1-0ubuntu0~gpu14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libvdpau1_1.1.1-0ubuntu0~gpu14.04.1_amd64.deb (--unpack):
 trying to overwrite shared '/etc/vdpau_wrapper.cfg', which is different from other instances of package libvdpau1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libvdpau1_1.1.1-0ubuntu0~gpu14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-cache policy libvdpau1

libvdpau1:
  Installed: (none)
  Candidate: 1.1.1-0ubuntu0~gpu14.04.1
  Version table:
     1.1.1-0ubuntu0~gpu14.04.1 0
        500 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/ trusty/main amd64 Packages
     0.7-1ubuntu0.1 0
    500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.7-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

sudo dpkg -r --force-all libvdpau1:amd64

dpkg: warning: ignoring request to remove libvdpau1:amd64, only the config
files of which are on the system; use --purge to remove them too

sudo apt-get purge libvdpau1

[sudo] password for alfredo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 nvidia-settings : Depends: libvdpau1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or secify a solution).

答案1

一切apt-get purge …似乎apt-get remove …都不起作用!:\

有一些有效的武器,例如

sudo dpkg --remove --force-all libvdpau1:amd64
sudo dpkg --purge --force-all libvdpau1:amd64

但在这里却没用......

最后...解决方案很简单

sudo rm /etc/vdpau_wrapper.cfg

其次是

sudo apt-get install -f

不可以 - 您不能安装比 304 更新的驱动程序 - 它们不支持 GeForce 6150 SE GPU!

相关内容