免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: Dr-Zuo
打印 上一主题 下一主题

[系统安装] Ubuntu升级后能挂载但是不能打开U盘 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2012-09-07 20:45 |只看该作者
回复 19# chenyx


   是不是这样: 但是
mirinda@mirinda-B202:~$ sudo apt-get install kernel-source
[sudo] password for mirinda:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
现在没有可用的软件包 kernel-source,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 kernel-source 没有可供安装的候选者
mirinda@mirinda-B202:~$

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
22 [报告]
发表于 2012-09-07 20:47 |只看该作者
你从系统菜单进入添加删除程序,看看你的内核源码包是否安装了

论坛徽章:
0
23 [报告]
发表于 2012-09-07 20:54 |只看该作者
回复 22# chenyx

我的系统版本:
mirinda@mirinda-B202:~$ uname -a
Linux mirinda-B202 3.2.0-30-generic-pae #47-Ubuntu SMP Wed Aug 15 18:52:06 UTC 2012 i686 i686 i386 GNU/Linux
你看是不是已经安装了:

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
24 [报告]
发表于 2012-09-07 21:06 |只看该作者
ubuntu我不是很熟,很少用
你试试以下操作,看看能不能生成version.h
内核源码,而如果只将内核源码包解压,并不存在version.h这个文件,所以需要做如下步骤:
在内核源码目录下(/usr/src/linux)
1)make include/linux/version.h 生成version.h文件
2)make include/asm

论坛徽章:
0
25 [报告]
发表于 2012-09-07 21:18 |只看该作者
回复 24# chenyx


   还是不行阿,不过这次./configure 能找到version.h了:
mirinda@mirinda-B202:~$ cd /usr/src/linux-3.5.3
mirinda@mirinda-B202:/usr/src/linux-3.5.3$ sudo make include/linux/version.h
  CHK     include/linux/version.h
mirinda@mirinda-B202:/usr/src/linux-3.5.3$ sudo make include/asm
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] 错误 1
make[1]: *** [silentoldconfig] 错误 2

make: *** 没有规则可以创建目标“include/asm”。 停止。
mirinda@mirinda-B202:/usr/src/linux-3.5.3$ cd
mirinda@mirinda-B202:~$ cd /home/mirinda/下载/alsa-driver-1.0.25
mirinda@mirinda-B202:~/下载/alsa-driver-1.0.25$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/mirinda/下载/alsa-driver-1.0.25
checking cross compile...
checking for directory with ALSA kernel sources... /home/mirinda/下载/alsa-driver-1.0.25/alsa-kernel
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build... /usr/src/linux
checking for kernel linux/version.h ... linux/version.h
checking for kernel linux/autoconf.h generated/autoconf.h... no
The file /usr/src/linux/include/linux/autoconf.h does not exist.
The file /usr/src/linux/include/generated/autoconf.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

mirinda@mirinda-B202:~/下载/alsa-driver-1.0.25$

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
26 [报告]
发表于 2012-09-07 21:26 |只看该作者
你在内核源码目录执行make menuconfig,什么也不要修改,直接退出,然后再编译下你的程序

论坛徽章:
0
27 [报告]
发表于 2012-09-07 21:36 |只看该作者
回复 26# chenyx


    谢谢,还是那样,运行./configure 提示信息没变
 不过刚才我运行make oldconfig 出来好多选项y/n,看不懂,就关了.

论坛徽章:
0
28 [报告]
发表于 2012-09-08 10:10 |只看该作者
回复 26# chenyx


这样是不是可以?选Y/N ?
mirinda@mirinda-B202:/usr/src/kernels/linux-3.5.3$ sudo make oldconfig
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# using defaults found in /boot/config-3.2.0-30-generic-pae
#
/boot/config-3.2.0-30-generic-pae:1678:warning: symbol value 'm' invalid for BMP085
/boot/config-3.2.0-30-generic-pae:3656:warning: symbol value 'm' invalid for MFD_WM8400
/boot/config-3.2.0-30-generic-pae:4356:warning: symbol value 'm' invalid for FB_VESA
/boot/config-3.2.0-30-generic-pae:5728:warning: symbol value 'm' invalid for ZCACHE
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Cross-compiler tool prefix (CROSS_COMPILE) []
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Kernel compression mode
> 1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2)
  3. LZMA (KERNEL_LZMA)
  4. XZ (KERNEL_XZ)
  5. LZO (KERNEL_LZO)
choice[1-5?]: 1
Default hostname (DEFAULT_HOSTNAME) [(none)] (none)
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
BSD Process Accounting (BSD_PROCESS_ACCT) [Y/n/?] y
  BSD Process Accounting version 3 file format (BSD_PROCESS_ACCT_V3) [Y/n/?] y
open by fhandle syscalls (FHANDLE) [Y/n/?] y
Export task/process statistics through netlink (EXPERIMENTAL) (TASKSTATS) [Y/?] y
  Enable per-task delay accounting (EXPERIMENTAL) (TASK_DELAY_ACCT) [Y/?] y
  Enable extended accounting over taskstats (EXPERIMENTAL) (TASK_XACCT) [Y/n/?] y
    Enable per-task storage I/O accounting (EXPERIMENTAL) (TASK_IO_ACCOUNTING) [Y/n/?] y
Auditing support (AUDIT) [Y/?] y
  Enable system-call auditing support (AUDITSYSCALL) [Y/n/?] y
  Make audit loginuid immutable (AUDIT_LOGINUID_IMMUTABLE) [N/y/?] (NEW)

论坛徽章:
0
29 [报告]
发表于 2012-09-08 10:40 |只看该作者
我觉得是 文件格式的问题。 不是挂载的问题。 因为ubuntu本身已经自动挂载了

论坛徽章:
0
30 [报告]
发表于 2012-09-08 10:45 |只看该作者
回复 29# hzl126


不懂阿?怎么解决? 谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP