最近在ubuntu11.10下安装支持多媒体播放的插件时遇到一些问题,在此小记一下。

首先是ubuntu11.10的安装,基本上是一键安装,在此不细说。

1.此版本和以前使用的ubuntu版本风格不太一致,为此在使用时一度不太习惯。

1)软件源服务器的选择

在左侧列表中有一个System  Settings,点击进入有3大选项,选择System里面的Software Sources,出现一个对话框,第一项为Ubuntu Software,此项里有一个DownLoad From选择中国服务器mirrors.163.com(网易)服务源,保存退出。

2)终端的使用

终端的使用不在像以前的版本一样,直接右键桌面就可以出现。Ubuntu11.10使用快捷键Ctrl+Atrl+T,然后可以将终端锁定在左侧的菜单栏里,方便使用。

2.安装插件

使用命令

sudo apt-get install ubuntu-restricted-extras
时出现错误:
E: Unable to locate package ubuntu-restricted-extras
即找不到安装的包,在网上找资料,得到的答案是
sudo apt-get update
sudo apt-get upgrade
在使用sudo apt-get update命令时遇到问题
E: Unable to lock directory /var/lib/apt/lists/
查资料得到方法:
sudo rm /var/lib/apt/lists/lock
测试通过!
在sudo apt-get update的过程中遇到问题:
 .Ign http://extras.ubuntu.com natty/main TranslationIndex
.Err http://extras.ubuntu.com natty/main Sources
. Not Found
.Err http://extras.ubuntu.com natty/main i386 Packages
. Not Found
.Ign http://extras.ubuntu.com natty/main Translation-en_US
.Err http://security.ubuntu.com natty-security/universe Sources
. Not Found [IP: 91.189.92.200 ]
.Err http://security.ubuntu.com natty-security/multiverse Sources
. Not Found [IP: 91.189.92.200 ]
.Ign http://extras.ubuntu.com natty/main Translation-en
.Err http://security.ubuntu.com natty-security/universe i386 Packages
. Not Found [IP: 91.189.92.200 ]
.Err http://security.ubuntu.com natty-security/multiverse i386 Packages
. Not Found [IP: 91.189.92.200 ]
.Err http://security.ubuntu.com natty-security/main Sources
. Not Found [IP: 91.189.92.200 ]
.Err http://security.ubuntu.com natty-security/restricted Sources
. Not Found [IP: 91.189.92.200 ]
.Err http://security.ubuntu.com natty-security/main i386 Packages
. Not Found [IP: 91.189.92.200 ]
.Err http://security.ubuntu.com natty-security/restricted i386 Packages
. Not Found [IP: 91.189.92.200 ]
.Ign http://security.ubuntu.com natty-security/main Translation-en_US
.Ign http://security.ubuntu.com natty-security/main Translation-en
.Ign http://security.ubuntu.com natty-security/multiverse Translation-en_US
.Ign http://security.ubuntu.com natty-security/multiverse Translation-en
.Ign http://security.ubuntu.com natty-security/restricted Translation-en_US
.Ign http://security.ubuntu.com natty-security/restricted Translation-en
.Ign http://security.ubuntu.com natty-security/universe Translation-en_US
.Ign http://security.ubuntu.com natty-security/universe Translation-en
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/restricted/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/universe/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/multiverse/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/restricted/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/universe/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/multiverse/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/main/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/source/Sources 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/main/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages 404 Not Found
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/source/Sources 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/source/Sources 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/main/source/Sources 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/source/Sources 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.92.200 80]
.
.W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources 404 Not Found
.
.W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages 404 Not Found
.
.E: Some index files failed to download. They have been ignored, or old ones used instead.
.chaihuasong@chaihuasong:~$ sudo apt-get install git
.Reading package lists... Done
.Building dependency tree
.Reading state information... Done
.E: Unable to locate package git

继续找资料,在chaihuasong的博客里名为ubuntu下sudo apt-get update Sources 404 Not Found [IP: 91.189.92.200 80]解决办法

里获得答案:

把以下内容复制、粘贴到etc/apt/sources.list文件里的最开始部分,保存并退出。

 deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse

测试通过。(虽然在更新的过程中仍然有提示很多package失败和错误)

然后使用命令:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install ubuntu-restricted-extras

即支持多媒体播放的插件安装成功!

Ubuntu11.10 E: Unable to locate package ubuntu-restricted-extras的更多相关文章

  1. ubuntu 安装nginx, 出现 Unable to locate package

    今天在初始化一台新的ubuntu 服务器时,敲上了 sudo apt-get install nginx 来安装nginx, 却发现提示:  Reading package lists... Done ...

  2. linux -- Ubuntu报错“unable to locate package...”

    有时候在Ubuntu命令行中执行安装某个文件的时候,如:sudo apt-get install xinit ,报 “unable to locate package...” 错误,解决办法如下 1. ...

  3. Docker:Err http://archive.ubuntu.com trusty InRelease & E: Unable to locate package [name] 问题

    参考: Docker containers can't resolve DNS on Ubuntu 14.04 Desktop Host Unable to locate package错误解决办法 ...

  4. Ubuntu install 错误 E:Unable to locate package

    今天在 Ubuntu 上执行 sudo apt install sl 命令,结果报错:E:Unable to locate package sl 上网查询了一下,先更新一下 apt-get,执行:su ...

  5. 【转】ubuntu 11.04使用apt-get安装软件时一直提示E:unable to locate package

    问题: VMware虚拟机安装了ubuntu 11.04,在使用apt-get安装软件时一直提示E:Unable to locate package. 百度了原因,说是要更新源,使用命令:sudo a ...

  6. Ubuntu : 解决更新时出现 Unable to locate package update

    当用apt-get更新软件包时常出现错误提示Unable to locate package update, 尤其是在ubuntu server上,解决方法是:     先更新apt-get      ...

  7. Ubuntu的Unable to locate package无法更新源问题解决方案

    https://blog.csdn.net/long19910605/article/details/47017889/ 问题: 更新源时提示不能联网(does the network require ...

  8. Ubuntu:Unable to locate package ***

    在Ubuntu 上使用apt-get 安装包时遇到  Unable to locate package 的信息 解决方案: 更细apt-get然后重新安装 #sudo apt-get update   ...

  9. Ubuntu Server安装telnet服务时"Unable to locate package telnetd"解决方法

    装好Ubuntu Server 12.04后,用apt-get安装telnetd报"E: Unable to locate package telnetd",解决方法如下: 虚拟机 ...

随机推荐

  1. TCP滑动窗口控制流量的原理

    TCP的滑动窗口机制       TCP这个协议是网络中使用的比较广泛,他是一个面向连接的可靠的传输协议.既然是一个可靠的传输协议就需要对数据进行确认.TCP协议里窗口机制有2种:一种是固定的窗口大小 ...

  2. ap143 led修改

    以前的硬件版本只使用了一个eth口,新的板子增加了一个eth口,并且增加了响应的通信时使用的灯. led修改涉及到一下的内容: (1)led 对应的gpio口(这个需要根据原理图来定义) 需要修改的源 ...

  3. wvs_patcher批量测试网站

    来自:http://zone.wooyun.org/content/23162 pip install multiprocessing错误. 然后就到官方下载安装包本地安装 multiprocessi ...

  4. 面试题-Java基础-垃圾回收

    1.Java中垃圾回收有什么目的?什么时候进行垃圾回收? 垃圾回收的目的是识别并且丢弃应用不再使用的对象来释放和重用资源. 2.System.gc()和Runtime.gc()会做什么事情? 这两个方 ...

  5. HTML5 <meta> 标签属性

    基本标签SEO 优化为移动设备添加 viewportWindows 8其他 禁止数字识自动别为电话号码不让android识别邮箱每 8 秒刷新一次页面移动端的头部标签和meta 基本标签 声明文档使用 ...

  6. spring HttpServletRequest 简介

    前提:工作遇到controller中通过注解的方式注入 @Resourceprivate HttpServletRequest request;我们都知道spring 默认是单例,当遇到并发的时候线程 ...

  7. java栈内存堆内存和GC相关

    java栈内存堆内存 Java把内存分成两种,一种叫做栈内存,一种叫做堆内存,有着不同的作用.栈内存用来存储局部变量和方法调用.栈内存归属于单个线程,每个线程都会有一个栈内存,其存储的变量只能在其所属 ...

  8. sqlite创建数据库并创建一个表

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=&q ...

  9. drupal7 修改文件上传大小限制

    参考文章:Drupal 7 设置上传文件的限制大小 自己用 '#type' => 'managed_file'做了一个上传的功能,但是上传时总是说超过了2M的限制,接下来说一下怎么修改限制. 一 ...

  10. vim menu乱码

    syntax enable syntax on colorscheme desert set nocompatible set filetype=c set number set wrap " ...