Ubuntu11.10 E: Unable to locate package ubuntu-restricted-extras

最近在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的过程中遇到问题:

 1 01.Ign http://extras.ubuntu.com natty/main TranslationIndex
 2 02.Err http://extras.ubuntu.com natty/main Sources
 3 03.  404  Not Found
 4 04.Err http://extras.ubuntu.com natty/main i386 Packages
 5 05.  404  Not Found
 6 06.Ign http://extras.ubuntu.com natty/main Translation-en_US
 7 07.Err http://security.ubuntu.com natty-security/universe Sources
 8 08.  404  Not Found [IP: 91.189.92.200 80]
 9 09.Err http://security.ubuntu.com natty-security/multiverse Sources
10 10.  404  Not Found [IP: 91.189.92.200 80]
11 11.Ign http://extras.ubuntu.com natty/main Translation-en
12 12.Err http://security.ubuntu.com natty-security/universe i386 Packages
13 13.  404  Not Found [IP: 91.189.92.200 80]
14 14.Err http://security.ubuntu.com natty-security/multiverse i386 Packages
15 15.  404  Not Found [IP: 91.189.92.200 80]
16 16.Err http://security.ubuntu.com natty-security/main Sources
17 17.  404  Not Found [IP: 91.189.92.200 80]
18 18.Err http://security.ubuntu.com natty-security/restricted Sources
19 19.  404  Not Found [IP: 91.189.92.200 80]
20 20.Err http://security.ubuntu.com natty-security/main i386 Packages
21 21.  404  Not Found [IP: 91.189.92.200 80]
22 22.Err http://security.ubuntu.com natty-security/restricted i386 Packages
23 23.  404  Not Found [IP: 91.189.92.200 80]
24 24.Ign http://security.ubuntu.com natty-security/main Translation-en_US
25 25.Ign http://security.ubuntu.com natty-security/main Translation-en
26 26.Ign http://security.ubuntu.com natty-security/multiverse Translation-en_US
27 27.Ign http://security.ubuntu.com natty-security/multiverse Translation-en
28 28.Ign http://security.ubuntu.com natty-security/restricted Translation-en_US
29 29.Ign http://security.ubuntu.com natty-security/restricted Translation-en
30 30.Ign http://security.ubuntu.com natty-security/universe Translation-en_US
31 31.Ign http://security.ubuntu.com natty-security/universe Translation-en
32 32.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources  404  Not Found
33 33.
34 34.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/restricted/source/Sources  404  Not Found
35 35.
36 36.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/universe/source/Sources  404  Not Found
37 37.
38 38.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/multiverse/source/Sources  404  Not Found
39 39.
40 40.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages  404  Not Found
41 41.
42 42.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/restricted/binary-i386/Packages  404  Not Found
43 43.
44 44.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/universe/binary-i386/Packages  404  Not Found
45 45.
46 46.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/multiverse/binary-i386/Packages  404  Not Found
47 47.
48 48.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/main/source/Sources  404  Not Found
49 49.
50 50.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/source/Sources  404  Not Found
51 51.
52 52.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/source/Sources  404  Not Found
53 53.
54 54.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/source/Sources  404  Not Found
55 55.
56 56.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/main/binary-i386/Packages  404  Not Found
57 57.
58 58.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/binary-i386/Packages  404  Not Found
59 59.
60 60.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/binary-i386/Packages  404  Not Found
61 61.
62 62.W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages  404  Not Found
63 63.
64 64.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/source/Sources  404  Not Found [IP: 91.189.92.200 80]
65 65.
66 66.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/source/Sources  404  Not Found [IP: 91.189.92.200 80]
67 67.
68 68.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]
69 69.
70 70.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]
71 71.
72 72.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/main/source/Sources  404  Not Found [IP: 91.189.92.200 80]
73 73.
74 74.W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/source/Sources  404  Not Found [IP: 91.189.92.200 80]
75 75.
76 76.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]
77 77.
78 78.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]
79 79.
80 80.W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources  404  Not Found
81 81.
82 82.W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages  404  Not Found
83 83.
84 84.E: Some index files failed to download. They have been ignored, or old ones used instead.
85 85[email protected]:~$ sudo apt-get install git
86 86.Reading package lists... Done
87 87.Building dependency tree
88 88.Reading state information... Done
89 89.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文件里的最开始部分,保存并退出。

 1 deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
 2 deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
 3 deb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
 4 deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
 5 deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
 6 deb-src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
 7 deb-src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
 8 deb-src http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
 9 deb-src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
10 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

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

时间: 2024-12-18 23:27:16

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

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

https://blog.csdn.net/long19910605/article/details/47017889/ 问题: 更新源时提示不能联网(does the network require authentication?),但是明明可以ping通外网啊,原来是不能访问这个默认源,所以更换一下源 [email protected]:~$ sudo apt-get update Get:1 http://ppa.launchpad.net/nginx/stable/ubuntu xeni

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

问题: VMware虚拟机安装了ubuntu 11.04,在使用apt-get安装软件时一直提示E:Unable to locate package. 百度了原因,说是要更新源,使用命令:sudo apt-get update更新了,但更新之后问题还是存在: 解决方案: 主要还是源的问题,目前网上找的很多源都是很久以前的了,很多的可能都不能用了: 然后自己重新下载了一个ubuntu 14.04版本的源替换原来的sources.list文件,然后运行sudo apt-get update更新后就可

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

当用apt-get更新软件包时常出现错误提示Unable to locate package update, 尤其是在ubuntu server上,解决方法是: 先更新apt-get #sudo apt-get update 执行完后,问题就解决了. 继续更新: #sudo apt-get upgrade

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

有时候在Ubuntu命令行中执行安装某个文件的时候,如:sudo apt-get install xinit ,报 “unable to locate package...” 错误,解决办法如下 1. 首先查看是不是有别的进程在装软件,比如新立得. 如果有的话就关掉.没有的往下看 在终端输入sudo rm /var/lib/apt/lists/lock 强制把/var/lib/apt/lists/lock删掉. 2. 原因可能是换了源,但却在本机上没有更新,所以找不到这个包. 这时候就要使用 s

Linux新手入门:Unable to locate package错误解决办法

最近刚开始接触Linux,在虚拟机中装了个Ubuntu,当前的版本是Ubuntu 11.10,装好后自然少不了安装一些软件,在设置了软件的源后,就开始了 sudo apt-get install,结果出现了下面的Unable to locate package错误: [email protected]:~$ sudo apt-get install mysql-server mysql-client [sudo] password for letuknowit: Reading package

ubuntu-14.10-server-amd64 apt源 E: Unable to locate package问题解决

在虚拟机安装好Ubuntu后,用apt-get install ***命令安装软件时遇到E: Unable to locate package *** 的错误 执行 apt-get update 之后还是不能解决这个问题,原因是apt的源已经过期,无法访问,要配置新的源 可用的源列表:wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8 我选择阿里云上的源   进入apt目录  编辑sources.list 文件 把之前的源地址注释掉,添加新的源地址. 修

Unable to locate package python-pip

原文:https://blog.csdn.net/yyinhai/article/details/53056973 Ubuntu下执行apt install python-pip得到如下错误提示: Reading package lists- Done Building dependency tree Reading state information- Done E: Unable to locate package python-pip 解决方法如下:(注意,需要切换到root账户,可以使用

分布式进阶 八 Linux提示Unable to locate package该如何处理

Linux提示Unable to locate package该如何处理? 当你在修改Linux软件源的时候,提示Unable to locate package错误,这是由什么原因导致的呢?又该如何解决,下面就给大家介绍下Linux下遇到Unable to locate package错误的情况该如何解决,一起来学习下吧. Linux提示Unable to locate package该如何处理? 刚开始接触ubuntu的朋友可能会按照一些入门文章的步骤更改软件源,可是此时安装软件的话会出现u

Unable to locate package net-tools 处理方法

@ubuntu:~$ sudo apt install net-toolsReading package lists... DoneBuilding dependency tree Reading state information... DoneE: Unable to locate package net-tools 处理方法: sudo apt-get update 原文地址:https://www.cnblogs.com/ybluo/p/10989436.html