查看各种包信息:
0001 Make a backup of/var/lib/dpkg/status:
sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bkup
0002 Open/var/lib/dpkg/status:
sudo nano /var/lib/dpkg/status
0003
Search through the file for any reference to that package name (i.e.linux-headers-3.0.0-19) andCAREFULLYdelete that entry. Don't delete anything else. Save the file and quit.
0004
Dosudo apt-get update.
系统:Linux g0 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux
1.安装opera浏览器出现的错误
2.安装shutter错误
3.安装内核头部错误
安装opera浏览器出现的错误:
Check failed: sandbox::Credentials::MoveToNewUserNS().
#0 0x7fdfbc63da7e
#1 0x7fdfbc65185b
#2 0x7fdfc04456fd
#3 0x7fdfbf09aac3
#4 0x7fdfbc60aaa6
#5 0x7fdfbc60bf2b
#6 0x7fdfbc60a7a0
#7 0x7fdfbc1bc46a ChromeMain
#8 0x7fdfb46a5b45 __libc_start_main
#9 0x7fdfbc1bc319
Received signal 6
#0 0x7fdfbc63d558
#1 0x7fdfbb28a8d0
#2 0x7fdfb46b9067 gsignal
#3 0x7fdfb46ba448 abort
#4 0x7fdfbc63ca42
#5 0x7fdfbc651b63
#6 0x7fdfc04456fd
#7 0x7fdfbf09aac3
#8 0x7fdfbc60aaa6
#9 0x7fdfbc60bf2b
#10 0x7fdfbc60a7a0
#11 0x7fdfbc1bc46a ChromeMain
#12 0x7fdfb46a5b45 __libc_start_main
#13 0x7fdfbc1bc319
r8: ffffffe38a912118 r9: ffffffe38a912108 r10: 0000000000000008 r11: 0000000000000202
r12: 00007ffc38d9c7e8 r13: 00007fdfc36aacb0 r14: 00007ffc38d9be48 r15: 00007ffc38d9be38
di: 0000000000000001 si: 0000000000000001 bp: 00007fdfc13c19e0 bx: 0000000000000000
dx: 0000000000000006 ax: 0000000000000000 cx: ffffffffffffffff sp: 00007ffc38d9b368
ip: 00007fdfb46b9067 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
[16552:16552:1127/103127:FATAL:zygote_host_impl_linux.cc(196)] Check failed: ReceiveFixedMessage(fds[0], kZygoteHelloMessage, sizeof(kZygoteHelloMessage), &real_pid).
#0 0x7fe89a719a7e
#1 0x7fe89a72d85b
#2 0x7fe89d175255
#3 0x7fe89d1742ae
#4 0x7fe89d17489e
#5 0x7fe89d20be80
#6 0x7fe89cfce03d
#7 0x7fe89cfcdbca
#8 0x7fe89a6e7f2b
#9 0x7fe89a6e67a0
#10 0x7fe89a29846a ChromeMain
#11 0x7fe892781b45 __libc_start_main
#12 0x7fe89a298319
Aborted
解决办法:
终端输入命令:
root@g0:~/Downloads# opera --no-sandbox
2.安装shutter错误
root@g0:~# add-apt-repository ppa:shutter/ppa
add-apt-repository 是由python-software-properties 这个工具包提供的
需要先安装python-software-properties 才能使用 add-apt-repository
解决办法:
root@g0:~# apt-get install python-software-properties
root@g0:~# apt-get install software-properties-common
3.安装内核头部错误
apt-get install linux-headers-$(uname -r)
出现如下错误:
E: Unable to locate package linux-headers-4.6.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64
E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64
解决办法:
1.下载inux-kbuild,链接:(http://http.kali.org/kali/pool/main/l/linux-tools/)版本信息参考自己的主机:uname -r,更全信息:uname -a;
2.编译linux-kbuild;
dkpg -i linux-kbuild-4.3_4.3.1-2kali1_amd64.deb
3.下载linux-header-common和主机版本对应的linux-header。链接(http://http.kali.org/kali/pool/main/l/linux/),具体版本参见自己的主机
4.首先编译linux-header-common
dkpg -i linux-headers-4.6.0-kali1-common_4.6.4-1kali1_amd64.deb
5.最后编译linux-header
dkpg -i linux-headers-4.6.0-kali1-amd64_4.6.4-5kali1_amd64.deb
6.搞定。