开机后出现 pulseaudio configured for per-user 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吧,不然遇到这种问题解决不了就要重装也是很麻烦的一件事情。

转载于:https://www.cnblogs.com/huzhiwei/archive/2012/02/29/2373060.html

出现这个错误的原因是在导入seaborn包时,无法从typing模块中导入名为'Protocol'的对象。 解决这个问题的方法有以下几种: 1. 检查你的Python版本是否符合seaborn包的要求,如果不符合,尝试更新Python版本。 2. 检查你的环境中是否安装了typing_extensions包,如果没有安装,可以使用以下命令安装:pip install typing_extensions。 3. 如果你使用的是Python 3.8版本以下的版本,你可以尝试使用typing_extensions包来代替typing模块来解决该问题。 4. 检查你的代码是否正确导入了seaborn包,并且没有其他导入错误。 5. 如果以上方法都无法解决问题,可以尝试在你的代码中使用其他的可替代包或者更新seaborn包的版本来解决该问题。 总结: 出现ImportError: cannot import name 'Protocol' from 'typing'错误的原因可能是由于Python版本不兼容、缺少typing_extensions包或者导入错误等原因造成的。可以根据具体情况尝试上述方法来解决该问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [ImportError: cannot import name ‘Literal‘ from ‘typing‘ (D:\Anaconda\envs\tensorflow\lib\typing....](https://blog.youkuaiyun.com/yuhaix/article/details/124528628)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值