AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-752710

Phrixus's questions

Martin Hope
Phrixus
Asked: 2018-09-19 00:28:29 +0800 CST

全新安装 Ubuntu 14.04 后,出现 shim-signed 错误

  • 5

我知道这是已知的错误,并且对于同一个错误有多个问题,但不幸的是,没有一个答案有助于解决我的问题。

我来自全新安装的 Ubuntu 14.04.05 Desktop 64bit。我使用“擦除磁盘并安装 Ubuntu”选项进行了全新安装,但无论我尝试清理安装 Ubuntu 多少次(目前是 3 次),每当我登录系统并尝试运行sudo apt-get update然后sudo apt-get upgrade我得到以下错误:

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.
 shim-signed : Depends: shim (= 13-0ubuntu2) but it is not installed
E: Unmet dependencies. Try using -f.

运行sudo apt-get -f install我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  shim
The following NEW packages will be installed
  shim
0 to upgrade, 1 to newly install, 0 to remove and 411 not to upgrade.
1 not fully installed or removed.
Need to get 0 B/440 kB of archives.
After this operation, 2,448 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg-deb: error: archive '/var/cache/apt/archives/shim_13-0ubuntu2_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/shim_13-0ubuntu2_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/shim_13-0ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

几点注意事项:

  • 我多次尝试以全新安装方式安装 Ubuntu,我什至尝试使用不同的 USB 记忆棒(因此 USB 记忆棒没有损坏),我尝试在另一台具有相同记忆棒的机器上安装 Ubuntu,并且它工作正常。
  • 我怀疑问题出在我的文件系统(甚至是 Grub?)上。
  • 这不是我第一次在这台计算机上安装 Ubuntu 14.04,过去我在这台计算机上没有遇到这样的问题。
  • 到目前为止,我尝试了以下解决方案:
    • 错误处理包 shim-signed
    • dpkg:错误处理包 shim-signed
    • 从 17.10 升级到 18.04 期间出现错误(shim-signed 和 grub-efi-amd64-signed)

文件的输出/etc/fstab

这是输出cat /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=e0f60d28-02c8-40e7-b014-aedd69a1577b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=BAF1-4AA1  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda3 during installation
#UUID=b34bcda0-da7d-4155-a603-43f8f262f562 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

检查磁盘是否有缺陷

我用live USB记忆棒重新启动系统,我选择了“检查磁盘是否有缺陷”选项,它运行了一段时间,它说有一个文件有错误或类似的东西,它没有说哪个文件和错误是什么,它要求我重新启动。我重新启动,但问题仍然存在。

的输出sudo fsck -f /

  • 我启动到 GRUB 菜单。
  • 选择“高级选项”->“恢复模式”->“根访问”
  • 我键入sudo fsck -f /并重新启动(以下命令的输出)。

输出sudo fsck -f /:

fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda2: 216775/59981824 files (0.1% non-contiguous), 4881222/239906048 blocks.

的输出ls -lAR /boot

运行输出ls -lAR /boot:

/boot:
total 107832
-rw-r--r-- 1 root root  1251923 Aug 28 18:22 abi-4.4.0-135-generic
-rw-r--r-- 1 root root  1240067 Jul 13  2016 abi-4.4.0-31-generic
-rw-r--r-- 1 root root   190632 Aug 28 18:22 config-4.4.0-135-generic
-rw-r--r-- 1 root root   189566 Jul 13  2016 config-4.4.0-31-generic
drwxr-xr-x 3 root root     4096 Jan  1  1970 efi
drwxr-xr-x 5 root root     4096 Sep 18 10:35 grub
-rw-r--r-- 1 root root 35931131 Sep 18 10:34 initrd.img-4.4.0-135-generic
-rw-r--r-- 1 root root 35233299 Sep 18 10:34 initrd.img-4.4.0-31-generic
-rw-r--r-- 1 root root   176500 Mar 12  2014 memtest86+.bin
-rw-r--r-- 1 root root   178176 Mar 12  2014 memtest86+.elf
-rw-r--r-- 1 root root   178680 Mar 12  2014 memtest86+_multiboot.bin
-rw-r--r-- 1 root root      255 Aug 28 18:22 retpoline-4.4.0-135-generic
-rw------- 1 root root  3918274 Aug 28 18:22 System.map-4.4.0-135-generic
-rw------- 1 root root  3879360 Jul 13  2016 System.map-4.4.0-31-generic
-rw------- 1 root root  7064752 Aug 28 18:22 vmlinuz-4.4.0-135-generic
-rw------- 1 root root  7066680 Sep 18 10:34 vmlinuz-4.4.0-135-generic.efi.signed
-rw-r--r-- 1 root root  6937248 Sep 18 10:32 vmlinuz-4.4.0-31-generic
-rw-r--r-- 1 root root  6939160 Aug  3  2016 vmlinuz-4.4.0-31-generic.efi.signed

/boot/efi:
total 4
drwxr-xr-x 3 root root 4096 Sep 18 09:08 EFI

/boot/efi/EFI:
total 4
drwxr-xr-x 2 root root 4096 Oct  2  2017 ubuntu

/boot/efi/EFI/ubuntu:
total 3240
-rwxr-xr-x 1 root root     126 Sep 18 09:35 grub.cfg
-rwxr-xr-x 1 root root  958328 Sep 18 09:35 grubx64.efi
-rwxr-xr-x 1 root root 1153336 Sep 14 09:56 mmx64.efi
-rwxr-xr-x 1 root root 1196736 Sep 18 09:35 shimx64.efi

/boot/grub:
total 2384
drwxr-xr-x 2 root root    4096 Sep 18 10:35 fonts
-r--r--r-- 1 root root    8169 Sep 18 10:35 grub.cfg
-rw-r--r-- 1 root root    1024 Sep 18 10:36 grubenv
drwxr-xr-x 2 root root    4096 Sep 18 10:35 locale
-rw-r--r-- 1 root root 2405285 Sep 18 10:35 unicode.pf2
drwxr-xr-x 2 root root   12288 Sep 18 10:35 x86_64-efi

/boot/grub/fonts:
total 2352
-rw-r--r-- 1 root root 2405285 Sep 18 10:35 unicode.pf2

/boot/grub/locale:
total 16
-rw-r--r-- 1 root root 1032 Sep 18 10:35 en_AU.mo
-rw-r--r-- 1 root root  587 Sep 18 10:35 en_CA.mo
-rw-r--r-- 1 root root 4464 Sep 18 10:35 en_GB.mo

/boot/grub/x86_64-efi:
total 3264
-rw-r--r-- 1 root root  17032 Sep 18 10:35 acpi.mod
-rw-r--r-- 1 root root   1928 Sep 18 10:35 adler32.mod
-rw-r--r-- 1 root root   8624 Sep 18 10:35 affs.mod
-rw-r--r-- 1 root root   8768 Sep 18 10:35 afs.mod
-rw-r--r-- 1 root root  23512 Sep 18 10:35 ahci.mod
-rw-r--r-- 1 root root   1017 Sep 18 10:35 all_video.mod
-rw-r--r-- 1 root root   1512 Sep 18 10:35 aout.mod
-rw-r--r-- 1 root root   5088 Sep 18 10:35 appleldr.mod
-rw-r--r-- 1 root root   4736 Sep 18 10:35 archelp.mod
-rw-r--r-- 1 root root   8984 Sep 18 10:35 ata.mod
-rw-r--r-- 1 root root   7424 Sep 18 10:35 at_keyboard.mod
-rw-r--r-- 1 root root   2512 Sep 18 10:35 backtrace.mod
-rw-r--r-- 1 root root  10152 Sep 18 10:35 bfs.mod
-rw-r--r-- 1 root root   3144 Sep 18 10:35 bitmap.mod
-rw-r--r-- 1 root root   5160 Sep 18 10:35 bitmap_scale.mod
-rw-r--r-- 1 root root   3216 Sep 18 10:35 blocklist.mod
-rw-r--r-- 1 root root   3304 Sep 18 10:35 boot.mod
-rw-r--r-- 1 root root  49984 Sep 18 10:35 bsd.mod
-rw-r--r-- 1 root root  19720 Sep 18 10:35 btrfs.mod
-rw-r--r-- 1 root root   2896 Sep 18 10:35 bufio.mod
-rw-r--r-- 1 root root   4256 Sep 18 10:35 cat.mod
-rw-r--r-- 1 root root   5472 Sep 18 10:35 cbfs.mod
-rw-r--r-- 1 root root   6376 Sep 18 10:35 cbls.mod
-rw-r--r-- 1 root root   3848 Sep 18 10:35 cbmemc.mod
-rw-r--r-- 1 root root   1624 Sep 18 10:35 cbtable.mod
-rw-r--r-- 1 root root   4072 Sep 18 10:35 cbtime.mod
-rw-r--r-- 1 root root   8552 Sep 18 10:35 chain.mod
-rw-r--r-- 1 root root   4728 Sep 18 10:35 cmdline_cat_test.mod
-rw-r--r-- 1 root root   2888 Sep 18 10:35 cmp.mod
-rw-r--r-- 1 root root   3593 Sep 18 10:35 command.lst
-rw-r--r-- 1 root root   3504 Sep 18 10:35 configfile.mod
-rw-r--r-- 1 root root 124416 Sep 18 10:35 core.efi
-rw-r--r-- 1 root root   4384 Sep 18 10:35 cpio_be.mod
-rw-r--r-- 1 root root   4384 Sep 18 10:35 cpio.mod
-rw-r--r-- 1 root root   2544 Sep 18 10:35 cpuid.mod
-rw-r--r-- 1 root root   2120 Sep 18 10:35 crc64.mod
-rw-r--r-- 1 root root  16200 Sep 18 10:35 cryptodisk.mod
-rw-r--r-- 1 root root    936 Sep 18 10:35 crypto.lst
-rw-r--r-- 1 root root   6920 Sep 18 10:35 crypto.mod
-rw-r--r-- 1 root root   3888 Sep 18 10:35 cs5536.mod
-rw-r--r-- 1 root root   2976 Sep 18 10:35 datehook.mod
-rw-r--r-- 1 root root   3192 Sep 18 10:35 date.mod
-rw-r--r-- 1 root root   1936 Sep 18 10:35 datetime.mod
-rw-r--r-- 1 root root  13680 Sep 18 10:35 diskfilter.mod
-rw-r--r-- 1 root root   3128 Sep 18 10:35 disk.mod
-rw-r--r-- 1 root root   5792 Sep 18 10:35 div_test.mod
-rw-r--r-- 1 root root   2688 Sep 18 10:35 dm_nv.mod
-rw-r--r-- 1 root root   3024 Sep 18 10:35 echo.mod
-rw-r--r-- 1 root root   2272 Sep 18 10:35 efifwsetup.mod
-rw-r--r-- 1 root root  13448 Sep 18 10:35 efi_gop.mod
-rw-r--r-- 1 root root   7040 Sep 18 10:35 efinet.mod
-rw-r--r-- 1 root root   7496 Sep 18 10:35 efi_uga.mod
-rw-r--r-- 1 root root  25544 Sep 18 10:35 ehci.mod
-rw-r--r-- 1 root root   7232 Sep 18 10:35 elf.mod
-rw-r--r-- 1 root root   2184 Sep 18 10:35 eval.mod
-rw-r--r-- 1 root root   8544 Sep 18 10:35 exfat.mod
-rw-r--r-- 1 root root   2280 Sep 18 10:35 exfctest.mod
-rw-r--r-- 1 root root   8736 Sep 18 10:35 ext2.mod
-rw-r--r-- 1 root root   7088 Sep 18 10:35 extcmd.mod
-rw-r--r-- 1 root root   8680 Sep 18 10:35 fat.mod
-rw-r--r-- 1 root root  24512 Sep 18 10:35 file.mod
-rw-r--r-- 1 root root   3000 Sep 18 10:35 fixvideo.mod
-rw-r--r-- 1 root root  17688 Sep 18 10:35 font.mod
-rw-r--r-- 1 root root   3784 Sep 18 10:35 fshelp.mod
-rw-r--r-- 1 root root    214 Sep 18 10:35 fs.lst
-rw-r--r-- 1 root root 118520 Sep 18 10:35 functional_test.mod
-rw-r--r-- 1 root root   2416 Sep 18 10:35 gcry_arcfour.mod
-rw-r--r-- 1 root root   9688 Sep 18 10:35 gcry_blowfish.mod
-rw-r--r-- 1 root root  30400 Sep 18 10:35 gcry_camellia.mod
-rw-r--r-- 1 root root  15336 Sep 18 10:35 gcry_cast5.mod
-rw-r--r-- 1 root root   3904 Sep 18 10:35 gcry_crc.mod
-rw-r--r-- 1 root root  17248 Sep 18 10:35 gcry_des.mod
-rw-r--r-- 1 root root   3440 Sep 18 10:35 gcry_dsa.mod
-rw-r--r-- 1 root root   4144 Sep 18 10:35 gcry_idea.mod
-rw-r--r-- 1 root root   4152 Sep 18 10:35 gcry_md4.mod
-rw-r--r-- 1 root root   4952 Sep 18 10:35 gcry_md5.mod
-rw-r--r-- 1 root root   3312 Sep 18 10:35 gcry_rfc2268.mod
-rw-r--r-- 1 root root  20272 Sep 18 10:35 gcry_rijndael.mod
-rw-r--r-- 1 root root   9136 Sep 18 10:35 gcry_rmd160.mod
-rw-r--r-- 1 root root   3400 Sep 18 10:35 gcry_rsa.mod
-rw-r--r-- 1 root root  13336 Sep 18 10:35 gcry_seed.mod
-rw-r--r-- 1 root root  16488 Sep 18 10:35 gcry_serpent.mod
-rw-r--r-- 1 root root   7888 Sep 18 10:35 gcry_sha1.mod
-rw-r--r-- 1 root root   6120 Sep 18 10:35 gcry_sha256.mod
-rw-r--r-- 1 root root   7480 Sep 18 10:35 gcry_sha512.mod
-rw-r--r-- 1 root root  13576 Sep 18 10:35 gcry_tiger.mod
-rw-r--r-- 1 root root  33944 Sep 18 10:35 gcry_twofish.mod
-rw-r--r-- 1 root root  23088 Sep 18 10:35 gcry_whirlpool.mod
-rw-r--r-- 1 root root   9104 Sep 18 10:35 geli.mod
-rw-r--r-- 1 root root   8600 Sep 18 10:35 gettext.mod
-rw-r--r-- 1 root root  61200 Sep 18 10:35 gfxmenu.mod
-rw-r--r-- 1 root root   4680 Sep 18 10:35 gfxterm_background.mod
-rw-r--r-- 1 root root   7848 Sep 18 10:35 gfxterm_menu.mod
-rw-r--r-- 1 root root  18440 Sep 18 10:35 gfxterm.mod
-rw-r--r-- 1 root root   5128 Sep 18 10:35 gptsync.mod
-rw-r--r-- 1 root root 124416 Sep 18 10:35 grub.efi
-rw-r--r-- 1 root root  11824 Sep 18 10:35 gzio.mod
-rw-r--r-- 1 root root   6544 Sep 18 10:35 halt.mod
-rw-r--r-- 1 root root   8616 Sep 18 10:35 hashsum.mod
-rw-r--r-- 1 root root  11512 Sep 18 10:35 hdparm.mod
-rw-r--r-- 1 root root   1848 Sep 18 10:35 hello.mod
-rw-r--r-- 1 root root   3968 Sep 18 10:35 help.mod
-rw-r--r-- 1 root root   4528 Sep 18 10:35 hexdump.mod
-rw-r--r-- 1 root root  10528 Sep 18 10:35 hfs.mod
-rw-r--r-- 1 root root   4408 Sep 18 10:35 hfspluscomp.mod
-rw-r--r-- 1 root root  10792 Sep 18 10:35 hfsplus.mod
-rw-r--r-- 1 root root   8944 Sep 18 10:35 http.mod
-rw-r--r-- 1 root root   4504 Sep 18 10:35 iorw.mod
-rw-r--r-- 1 root root  12560 Sep 18 10:35 iso9660.mod
-rw-r--r-- 1 root root   8984 Sep 18 10:35 jfs.mod
-rw-r--r-- 1 root root   8928 Sep 18 10:35 jpeg.mod
-rw-r--r-- 1 root root   6424 Sep 18 10:35 keylayouts.mod
-rw-r--r-- 1 root root   3144 Sep 18 10:35 keystatus.mod
-rw-r--r-- 1 root root   8728 Sep 18 10:35 ldm.mod
-rw-r--r-- 1 root root  44560 Sep 18 10:35 legacycfg.mod
-rw-r--r-- 1 root root  15904 Sep 18 10:35 legacy_password_test.mod
-rw-r--r-- 1 root root  12744 Sep 18 10:35 linux16.mod
-rw-r--r-- 1 root root  10392 Sep 18 10:35 linuxefi.mod
-rw-r--r-- 1 root root  21552 Sep 18 10:35 linux.mod
-rw-r--r-- 1 root root   4760 Sep 18 10:35 loadbios.mod
-rw-rw-r-- 1 root root     98 Sep 18 10:35 load.cfg
-rw-r--r-- 1 root root   9448 Sep 18 10:35 loadenv.mod
-rw-r--r-- 1 root root   4816 Sep 18 10:35 loopback.mod
-rw-r--r-- 1 root root   7248 Sep 18 10:35 lsacpi.mod
-rw-r--r-- 1 root root   3272 Sep 18 10:35 lsefimmap.mod
-rw-r--r-- 1 root root   5224 Sep 18 10:35 lsefi.mod
-rw-r--r-- 1 root root   3568 Sep 18 10:35 lsefisystab.mod
-rw-r--r-- 1 root root   2848 Sep 18 10:35 lsmmap.mod
-rw-r--r-- 1 root root   6688 Sep 18 10:35 ls.mod
-rw-r--r-- 1 root root   7368 Sep 18 10:35 lspci.mod
-rw-r--r-- 1 root root   4136 Sep 18 10:35 lssal.mod
-rw-r--r-- 1 root root   9536 Sep 18 10:35 luks.mod
-rw-r--r-- 1 root root   9848 Sep 18 10:35 lvm.mod
-rw-r--r-- 1 root root  12368 Sep 18 10:35 lzopio.mod
-rw-r--r-- 1 root root   4856 Sep 18 10:35 macbless.mod
-rw-r--r-- 1 root root  10952 Sep 18 10:35 macho.mod
-rw-r--r-- 1 root root   2832 Sep 18 10:35 mdraid09_be.mod
-rw-r--r-- 1 root root   2800 Sep 18 10:35 mdraid09.mod
-rw-r--r-- 1 root root   2664 Sep 18 10:35 mdraid1x.mod
-rw-r--r-- 1 root root   3192 Sep 18 10:35 memdisk.mod
-rw-r--r-- 1 root root   4520 Sep 18 10:35 memrw.mod
-rw-r--r-- 1 root root   5560 Sep 18 10:35 minicmd.mod
-rw-r--r-- 1 root root   5688 Sep 18 10:35 minix2_be.mod
-rw-r--r-- 1 root root   5592 Sep 18 10:35 minix2.mod
-rw-r--r-- 1 root root   5656 Sep 18 10:35 minix3_be.mod
-rw-r--r-- 1 root root   5576 Sep 18 10:35 minix3.mod
-rw-r--r-- 1 root root   5616 Sep 18 10:35 minix_be.mod
-rw-r--r-- 1 root root   5488 Sep 18 10:35 minix.mod
-rw-r--r-- 1 root root   9648 Sep 18 10:35 mmap.mod
-rw-r--r-- 1 root root   4810 Sep 18 10:35 moddep.lst
-rw-r--r-- 1 root root   2231 Sep 18 10:35 modinfo.sh
-rw-r--r-- 1 root root   3344 Sep 18 10:35 morse.mod
-rw-r--r-- 1 root root  44224 Sep 18 10:35 mpi.mod
-rw-r--r-- 1 root root   3672 Sep 18 10:35 msdospart.mod
-rw-r--r-- 1 root root  21112 Sep 18 10:35 multiboot2.mod
-rw-r--r-- 1 root root  19104 Sep 18 10:35 multiboot.mod
-rw-r--r-- 1 root root   6728 Sep 18 10:35 nativedisk.mod
-rw-r--r-- 1 root root  75112 Sep 18 10:35 net.mod
-rw-r--r-- 1 root root   4544 Sep 18 10:35 newc.mod
-rw-r--r-- 1 root root  10032 Sep 18 10:35 nilfs2.mod
-rw-r--r-- 1 root root 181456 Sep 18 10:35 normal.mod
-rw-r--r-- 1 root root   5752 Sep 18 10:35 ntfscomp.mod
-rw-r--r-- 1 root root  15432 Sep 18 10:35 ntfs.mod
-rw-r--r-- 1 root root   4384 Sep 18 10:35 odc.mod
-rw-r--r-- 1 root root   2192 Sep 18 10:35 offsetio.mod
-rw-r--r-- 1 root root  16680 Sep 18 10:35 ohci.mod
-rw-r--r-- 1 root root   2296 Sep 18 10:35 part_acorn.mod
-rw-r--r-- 1 root root   2576 Sep 18 10:35 part_amiga.mod
-rw-r--r-- 1 root root   2976 Sep 18 10:35 part_apple.mod
-rw-r--r-- 1 root root   4192 Sep 18 10:35 part_bsd.mod
-rw-r--r-- 1 root root   2616 Sep 18 10:35 part_dfly.mod
-rw-r--r-- 1 root root   2152 Sep 18 10:35 part_dvh.mod
-rw-r--r-- 1 root root   3232 Sep 18 10:35 part_gpt.mod
-rw-r--r-- 1 root root    111 Sep 18 10:35 partmap.lst
-rw-r--r-- 1 root root   3032 Sep 18 10:35 part_msdos.mod
-rw-r--r-- 1 root root   2528 Sep 18 10:35 part_plan.mod
-rw-r--r-- 1 root root   2216 Sep 18 10:35 part_sun.mod
-rw-r--r-- 1 root root   2448 Sep 18 10:35 part_sunpc.mod
-rw-r--r-- 1 root root     17 Sep 18 10:35 parttool.lst
-rw-r--r-- 1 root root   7280 Sep 18 10:35 parttool.mod
-rw-r--r-- 1 root root   2936 Sep 18 10:35 password.mod
-rw-r--r-- 1 root root   4448 Sep 18 10:35 password_pbkdf2.mod
-rw-r--r-- 1 root root   7560 Sep 18 10:35 pata.mod
-rw-r--r-- 1 root root   2016 Sep 18 10:35 pbkdf2.mod
-rw-r--r-- 1 root root   3464 Sep 18 10:35 pbkdf2_test.mod
-rw-r--r-- 1 root root   3824 Sep 18 10:35 pcidump.mod
-rw-r--r-- 1 root root   3848 Sep 18 10:35 play.mod
-rw-r--r-- 1 root root  10600 Sep 18 10:35 png.mod
-rw-r--r-- 1 root root   2200 Sep 18 10:35 priority_queue.mod
-rw-r--r-- 1 root root   4376 Sep 18 10:35 probe.mod
-rw-r--r-- 1 root root   3416 Sep 18 10:35 procfs.mod
-rw-r--r-- 1 root root   2960 Sep 18 10:35 progress.mod
-rw-r--r-- 1 root root   1984 Sep 18 10:35 raid5rec.mod
-rw-r--r-- 1 root root   3216 Sep 18 10:35 raid6rec.mod
-rw-r--r-- 1 root root   2264 Sep 18 10:35 read.mod
-rw-r--r-- 1 root root   1840 Sep 18 10:35 reboot.mod
-rw-r--r-- 1 root root  78488 Sep 18 10:35 regexp.mod
-rw-r--r-- 1 root root  14304 Sep 18 10:35 reiserfs.mod
-rw-r--r-- 1 root root  25888 Sep 18 10:35 relocator.mod
-rw-r--r-- 1 root root   5800 Sep 18 10:35 romfs.mod
-rw-r--r-- 1 root root   7520 Sep 18 10:35 scsi.mod
-rw-r--r-- 1 root root   5056 Sep 18 10:35 search_fs_file.mod
-rw-r--r-- 1 root root   4992 Sep 18 10:35 search_fs_uuid.mod
-rw-r--r-- 1 root root   4928 Sep 18 10:35 search_label.mod
-rw-r--r-- 1 root root   5384 Sep 18 10:35 search.mod
-rw-r--r-- 1 root root  14704 Sep 18 10:35 serial.mod
-rw-r--r-- 1 root root   1026 Sep 18 10:35 setjmp.mod
-rw-r--r-- 1 root root   2592 Sep 18 10:35 setjmp_test.mod
-rw-r--r-- 1 root root   9056 Sep 18 10:35 setpci.mod
-rw-r--r-- 1 root root   8008 Sep 18 10:35 sfs.mod
-rw-r--r-- 1 root root   8728 Sep 18 10:35 signature_test.mod
-rw-r--r-- 1 root root   3640 Sep 18 10:35 sleep.mod
-rw-r--r-- 1 root root   3424 Sep 18 10:35 sleep_test.mod
-rw-r--r-- 1 root root   3248 Sep 18 10:35 spkmodem.mod
-rw-r--r-- 1 root root   9800 Sep 18 10:35 squash4.mod
-rw-r--r-- 1 root root  31040 Sep 18 10:35 syslinuxcfg.mod
-rw-r--r-- 1 root root   4992 Sep 18 10:35 tar.mod
-rw-r--r-- 1 root root    162 Sep 18 10:35 terminal.lst
-rw-r--r-- 1 root root   6816 Sep 18 10:35 terminal.mod
-rw-r--r-- 1 root root  20064 Sep 18 10:35 terminfo.mod
-rw-r--r-- 1 root root   2040 Sep 18 10:35 test_blockarg.mod
-rw-r--r-- 1 root root   4040 Sep 18 10:35 testload.mod
-rw-r--r-- 1 root root   7864 Sep 18 10:35 test.mod
-rw-r--r-- 1 root root   3472 Sep 18 10:35 testspeed.mod
-rw-r--r-- 1 root root   8192 Sep 18 10:35 tftp.mod
-rw-r--r-- 1 root root   6584 Sep 18 10:35 tga.mod
-rw-r--r-- 1 root root   2344 Sep 18 10:35 time.mod
-rw-r--r-- 1 root root   2083 Sep 18 10:35 trig.mod
-rw-r--r-- 1 root root   3640 Sep 18 10:35 tr.mod
-rw-r--r-- 1 root root   1856 Sep 18 10:35 true.mod
-rw-r--r-- 1 root root  11312 Sep 18 10:35 udf.mod
-rw-r--r-- 1 root root   8032 Sep 18 10:35 ufs1_be.mod
-rw-r--r-- 1 root root   7888 Sep 18 10:35 ufs1.mod
-rw-r--r-- 1 root root   7888 Sep 18 10:35 ufs2.mod
-rw-r--r-- 1 root root  10520 Sep 18 10:35 uhci.mod
-rw-r--r-- 1 root root   5960 Sep 18 10:35 usb_keyboard.mod
-rw-r--r-- 1 root root  16088 Sep 18 10:35 usb.mod
-rw-r--r-- 1 root root  11184 Sep 18 10:35 usbms.mod
-rw-r--r-- 1 root root   3024 Sep 18 10:35 usbserial_common.mod
-rw-r--r-- 1 root root   3496 Sep 18 10:35 usbserial_ftdi.mod
-rw-r--r-- 1 root root   3792 Sep 18 10:35 usbserial_pl2303.mod
-rw-r--r-- 1 root root   2320 Sep 18 10:35 usbserial_usbdebug.mod
-rw-r--r-- 1 root root   5672 Sep 18 10:35 usbtest.mod
-rw-r--r-- 1 root root  19728 Sep 18 10:35 verify.mod
-rw-r--r-- 1 root root   9024 Sep 18 10:35 video_bochs.mod
-rw-r--r-- 1 root root   9528 Sep 18 10:35 video_cirrus.mod
-rw-r--r-- 1 root root  10096 Sep 18 10:35 video_colors.mod
-rw-r--r-- 1 root root  29608 Sep 18 10:35 video_fb.mod
-rw-r--r-- 1 root root   5880 Sep 18 10:35 videoinfo.mod
-rw-r--r-- 1 root root     41 Sep 18 10:35 video.lst
-rw-r--r-- 1 root root   9008 Sep 18 10:35 video.mod
-rw-r--r-- 1 root root   3824 Sep 18 10:35 videotest_checksum.mod
-rw-r--r-- 1 root root   5496 Sep 18 10:35 videotest.mod
-rw-r--r-- 1 root root   8896 Sep 18 10:35 xfs.mod
-rw-r--r-- 1 root root  42792 Sep 18 10:35 xnu.mod
-rw-r--r-- 1 root root   3264 Sep 18 10:35 xnu_uuid.mod
-rw-r--r-- 1 root root   3320 Sep 18 10:35 xnu_uuid_test.mod
-rw-r--r-- 1 root root  20696 Sep 18 10:35 xzio.mod
-rw-r--r-- 1 root root   8416 Sep 18 10:35 zfscrypt.mod
-rw-r--r-- 1 root root  11400 Sep 18 10:35 zfsinfo.mod
-rw-r--r-- 1 root root  57576 Sep 18 10:35 zfs.mod

grub-install和update-grub

我现在跑sudo grub-install了sudo update-grub,输出如下:

$ sudo grub-install
Installing for x86_64-efi platform.
Installation finished. No error reported.

$ sudo update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-135-generic
Found initrd image: /boot/initrd.img-4.4.0-135-generic
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
Adding boot menu entry for EFI firmware configuration
done

我重新启动系统后,仍然没有!

14.04
  • 1 个回答
  • 3854 Views
Martin Hope
Phrixus
Asked: 2018-07-22 12:06:36 +0800 CST

Boost.Numpy 从源代码安装但不工作

  • 1

我在 Ubuntu 14.04 上并且已经libboost-all-dev安装(Boost 1.54),我需要安装 Boost.NumPy 库。

我知道 NumPy 带有 Boost 1.64+,但我现在需要坚持使用 1.54,因此我需要从目前已弃用的这个repo 安装。

我按照 下的说明进行操作Boost.NumPy/libs/numpy/doc/cmakeBuild.rst。这些说明是:

  1. mkdir 构建
  2. 光盘构建
  3. 制作..
  4. 制作
  5. 须藤使安装

很好,在这些命令期间我没有收到任何错误,所以我假设 Boost.Numpy 已成功安装在我的系统上。

我尝试编译一个简单的 C++ 程序来检查系统是否可以找到该文件但它不工作。

C++ 文件仅包含以下标头:

#include <boost/python/numpy.hpp>

然后我像这样编译:

g++ test.cpp

我得到错误:

test.cpp:1:34: fatal error: boost/python/numpy.hpp: No such file or directory
 #include <boost/python/numpy.hpp>
                                  ^
compilation terminated.

我试图搜索头文件,我可以看到它在那里。

$ sudo find / -name "numpy.hpp"
/usr/local/include/boost/numpy.hpp

我还在我的.bashrc文件中添加了以下内容:

export INCLUDE="/usr/local/include/boost:$INCLUDE"
export LIBRARY_PATH="/usr/local/include/boost:$LIBRARY_PATH"
export CFLAGS="-I/usr/local/include/boost"

依然没有。

那么为什么 Boost.Numpy 没有正确安装呢?我想念什么?文档非常少,我找不到其他任何东西。

一般来说,我怎样才能知道我安装的 Boost 库是否可用于系统?

谢谢。

libraries boost
  • 1 个回答
  • 3350 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve