kali linux 2.0 無法安裝vmware tools__linux

來源:互聯網
上載者:User

首先不是源的問題,。。我各種源各種更新,絕對不是源的問題。

其中我執行
apt-get install linux-headers-$(uname -r)
這個命令後提示:
E: 無法定位軟體包 linux-headers-4.3.0-kali1-686-pae
E: 無法按照 glob ‘linux-headers-4.3.0-kali1-686-pae’ 找到任何軟體包
E: 無法按照Regex linux-headers-4.3.0-kali1-686-pae 找到任何軟體包

我搜尋了一下:apt-cache search linux-headers
也確實沒有這個軟體包。。。。

再然後我各種百度,各種Google。。。反正最終我是按著:http://gdd.gd/980.html (這是我寫的,非打廣告)
找到了 linux-headers-4.3.0-kali1-686-pae ,也安裝了。。

但是問題來了,我安裝vmware tools最終現實是,成功,但是實際沒有成功。安裝過程中出現了很多錯誤。。

不知道朋友們遇到過嗎。  有知道如何解決這個問題的朋友嗎。 收藏 感謝(0) 分享到: 0 9 個回複 1# Pany自留地 () | 2016-03-16 10:39

apt-get update
apt-get install open-vm-tools-desktop fuse

使用Open-VM-Tools 2# 歐冠狂魔阿森納 | 2016-03-16 10:47

unmae -r 如果有了的話  你直接安裝vm-tools,  在安裝的過程中 你注意下,就可以安裝成功了,具體原因也沒搞清楚,反正這樣弄就OK 3# 40huo | 2016-03-16 10:59

直接去官網下虛擬機器檔案匯入就好了,內建vmtools 4# Mayter | 2016-03-16 11:01

1樓正解。https://www.kali.org/news/kali-linux-rolling-edition-2016-1/  官網有說明的。 5# sysALong (不用社工我那麼累,我HLJ的。部落格:gdd.gd) | 2016-03-16 11:05

------------------------error code-------------------------------



Searching for a valid kernel header path...
Detected the kernel headers at
"/lib/modules/4.3.0-kali1-686-pae/build/include".
The path "/lib/modules/4.3.0-kali1-686-pae/build/include" appears to be a valid
path to the 4.3.0-kali1-686-pae kernel headers.
Would you like to change it? [no]

make: Entering directory '/tmp/modconfig-FZpmhZ/vmhgfs-only'
Using 2.6.x kernel build system.
/usr/bin/make -C /lib/modules/4.3.0-kali1-686-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-4.3.0-kali1-686-pae'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
CC [M]  /tmp/modconfig-FZpmhZ/vmhgfs-only/message.o
CC [M]  /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.o
In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/backdoor.h:30:0,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/message.c:54:
/tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/kernel.h:13:0,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/kernelStubs.h:36,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/message.c:45:
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/printk.h:105:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
CC [M]  /tmp/modconfig-FZpmhZ/vmhgfs-only/rpcout.o
In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/hgfsProto.h:37,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:37:
/tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/kernel.h:13:0,
from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/list.h:8,
from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/module.h:9,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:29:
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/printk.h:105:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vmware.h:39:0,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/rpcout.c:43:
/tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from /usr/src/linux-headers-4.3.0-kali1-common/include/linux/kernel.h:13:0,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/kernelStubs.h:36,
from /tmp/modconfig-FZpmhZ/vmhgfs-only/rpcout.c:33:
/usr/src/linux-headers-4.3.0-kali1-common/include/linux/printk.h:105:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsPackDirOpenRequest’:
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:417:26: error: ‘struct file’ has no member named ‘f_dentry’
file->f_dentry) < 0) {
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsDirLlseek’:
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:707:32: error: ‘struct file’ has no member named ‘f_dentry’
struct dentry *dentry = file->f_dentry;
^
In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:39:0:
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsReaddirNextEntry’:
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:993:31: error: ‘struct file’ has no member named ‘f_dentry’
si = HGFS_SB_TO_COMMON(file->f_dentry->d_inode->i_sb);
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/module.h:89:62: note: in definition of macro ‘HGFS_SB_TO_COMMON’
#define HGFS_SB_TO_COMMON(sb)             ((HgfsSuperInfo *)(sb)->s_fs_info)
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1082:26: error: ‘struct file’ has no member named ‘f_dentry’
*entryIno = file->f_dentry->d_inode->i_ino;
^
In file included from /tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:30:0:
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1088:44: error: ‘struct file’ has no member named ‘f_dentry’
*entryIno = compat_parent_ino(file->f_dentry);
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/./shared/compat_fs.h:120:46: note: in definition of macro ‘compat_parent_ino’
#define compat_parent_ino(dentry) parent_ino(dentry)
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1093:52: error: ‘struct file’ has no member named ‘f_dentry’
*entryIno = HgfsGetFileInode(&entryAttrs, file->f_dentry->d_inode->i_sb);
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c: In function ‘HgfsDoReaddir’:
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1173:13: error: ‘struct file’ has no member named ‘f_dentry’
!(file->f_dentry) ||
^
/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.c:1174:13: error: ‘struct file’ has no member named ‘f_dentry’
!(file->f_dentry->d_inode)) {
^
/usr/src/linux-headers-4.3.0-kali1-common/scripts/Makefile.build:263: recipe for target '/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.o' failed
make[4]: *** [/tmp/modconfig-FZpmhZ/vmhgfs-only/dir.o] Error 1
make[4]: *** 正在等待未完成的任務....
/usr/src/linux-headers-4.3.0-kali1-common/Makefile:1395: recipe for target '_module_/tmp/modconfig-FZpmhZ/vmhgfs-only' failed
make[3]: *** [_module_/tmp/modconfig-FZpmhZ/vmhgfs-only] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.3.0-kali1-686-pae'
Makefile:130: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2
make: Leaving directory '/tmp/modconfig-FZpmhZ/vmhgfs-only'

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature. 6# sysALong (不用社工我那麼累,我HLJ的。部落格:gdd.gd) | 2016-03-16 11:13

@Pany自留地   gan xie pengyou de hui da .  dan shi  chu xian cuo wu..

正在讀取狀態資訊... 完成      
fuse is already the newest version (2.9.4-1).
fuse 已設定為手動安裝。
有一些軟體包無法被安裝。如果您用的是 unstable 發行版,這也許是
因為系統無法達到您要求的狀態造成的。該版本中可能會有一些您需要的軟體
包尚未被建立或是它們已被從新到(Incoming)目錄移出。
下列資訊可能會對解決問題有所協助:

下列軟體包有未滿足的依賴關係:
open-vm-tools-desktop : 依賴: libatkmm-1.6-1 (>= 2.22.1) 但是它將不會被安裝
                         依賴: libcairomm-1.0-1 (>= 1.6.4) 但是它將不會被安裝
                         依賴: libglibmm-2.4-1c2a (>= 2.42.0) 但是它將不會被安裝
                         依賴: libgtkmm-2.4-1c2a (>= 1:2.24.0) 但是它將不會被安裝
                         依賴: libpangomm-1.4-1 (>= 2.27.1) 但是它將不會被安裝
                         依賴: libsigc++-2.0-0c2a (>= 2.2.0) 但是它將不會被安裝
E: 無法修正錯誤,因為您要求某些軟體包保持現狀,就是它們破壞了軟體包間的依賴關係。 7# Pany自留地 () | 2016-03-16 11:22

@sysALong 試試用vm內建的perl安裝指令碼 加-d參數 8# sysALong (不用社工我那麼累,我HLJ的。部落格:gdd.gd) | 2016-03-16 11:31

@Pany自留地  白費。。。。。 已經崩潰。。。。 啥招都木有了。。。。我又從新回複到最初最初的快照 然後安裝,最終現實成功,但是 實際還是沒成功。。。。 9# 回複此人 感謝 紛紜 (:-)) | 2016-03-16 11:52

樓主看這裡:
首先更新系統到kali-rolling
cat << EOF > /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib
EOF

apt-get update
apt-get dist-upgrade # get a coffee, or 10.
reboot

之後 安裝vm tools

apt-get update
apt-get install open-vm-tools-desktop fuse
reboot

ps :  若下載速度慢,請使用國內kali源

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.