zoukankan      html  css  js  c++  java
  • 开机后出现 pulseaudio configured for peruser sessions saned disabled;edit/etc/default/saned(未解决)

    尝试的方法:

    方法一:

    Ubuntu netbook 10.10启动时提示“disable:saned /etc/default/saned”,重启后选择rescue 模式,进入系统后先用sudo passwd root命令改密码,root用户默认用不了。切换到root用户后,直接编辑文件/etc/default/saned,将其内容改为如下即可:
    root@ubuntu:~# cat /etc/default/saned
    # Defaults for the saned initscript, from sane-utils //此处表明该文件来自于包sane-utils
    # Set to yes to start saned
    RUN=yes //不能启动时,此处为no
    # Set to the user saned should run as
    RUN_AS_USER=saned

    方法二:

    重启之后过了启动界面,快到Lgdm的时候,就停在这了
    fsck from util-linux-ng 2.17.2
    /dev/sda1:clean,135331/29761536 files,2585722/119024384 blocks
    *starting apparmor profiles
    skipping profile in/etc/apparmor.d/disable:usr.bin.firefox [OK]
    *setting sensors limits [ok]
    speech-dispatcher disabled;edit/etc/default/speech-dispatcher
    *(红色的)pulseaudio configured for per-user sessions
    saned disabled:edit/etc/default/saned
    *enabling additional executable binary formats binfmt-support [ok]
    *checking battery state...
    搜索了一下,说修改saned和speech-dispacher文件,把里面的no改为yes
    但是重启之后问题依旧,并且我看了下,这两个文件里的yes又变回no了
    于是又修改,终于saned文件里的是yes了,但界面还是卡在start saned那里
    这个问题是什么原因?saned是干什么的?speech-dispatcher是干什么的?

    方法三:

    0 down vote

    I'm also getting this after upgrade from 11.04 to 11.10 - in order to get it to boot I had to force use of the 2.6.x kernel instead of the v3 kernel that 11.10 seems to want to use by default. I did this by editing /boot/grub/grub.cfg - not a great solution but it's a stopgap until I figure out why it's not booting with the v3 kernel and fix it.

    For some reason I cannot use by USB keyboard with GRUB2 to select previous kernel from the boot menu, hence editing the grub.cfg.

    edit: Exact steps I took to solve this problem:

    (1) Press Ctrl+Alt+F2 as boot starts to get a login prompt. Log in.

    (2) Navigate to /etc/default/

    (3) Edit the grub settings: sudo vi grub

    (4) Set GRUB_DEFAULT=2>2

    (5) Set GRUB_TIMEOUT=10

    (6) Save the file and run: update-grub

    (7) Reboot.

    Note, the GRUB_DEFAULT value is the 3rd submenu item in the 3rd submenu (counts from 0), which for me is the boot option for the latest 2.6 kernel. If you have a new install yours might not have the 2.6 kernel available, or it may be in a different place, but I hope this helps someone.

    方法四:

    Answer edited out from the question:

    I found a partial fix and just in case anyone else is having the same problem which is extremely annoying.

    It turned out to be an issue with Lightdm. Anyway to fix this, I removed lightdm and went back to using GDM which is GNOME display manager. It's extremely ugly but at least it lets you boot.

    In order to do that you should follow these steps:

    1. When in the black ugly screen hold down Ctrl + Alt + F1. If nothing happens hold F2 instead.

    2. Enter your credentials

    3. sudo vi /etc/X11/default-display-manager

    4. Change it to /usr/sbin/gdm

      (If you're not familiar with vi: edit, then save by entering : then wq! )

    5. sudo reboot


    My answer to the question:

    When the loading stops with the 'ugly black screen', enter one of the ttys (for example Ctrl + Alt + F1) and login into your system.

    Then enter sudo service lightdm restart

    If it says unrecognized service, try the command sudo apt-get install lightdm

    This should ensure that Lightdm is properly installed.

    总之能试的方法都试过了,还是不能够进入系统,彻底放弃了,真心感觉什么都没有做,结果却出现了这种问题,看来以后还是用虚拟机下面来玩Linux吧,不然遇到这种问题解决不了就要重装也是很麻烦的一件事情。

  • 相关阅读:
    String.Format( )用法
    Androidstudio中添加jar包的方法
    Qt SQLite 批量插入优化(SQLite默认将每条语句看成单独的事务)good
    aravel 之父 Taylor Otwell :我是如何工作的
    【码云周刊第 22 期】GO :互联网时代的 C 语言!
    2017 JavaScript 开发者的学习图谱
    【码云周刊第 29 期】构建高性能微服务架构
    SOA和微服务
    NET Core Web 应用部署到 Docker 中运行
    Expression Trees
  • 原文地址:https://www.cnblogs.com/huzhiwei/p/2373060.html
Copyright © 2011-2022 走看看