• 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.chaihuasong@chaihuasong:~$ 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

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

  • 相关阅读:
    mysql_fetch_row()获取显示数据
    数组上下移动
    croppie 在Angular8 中使用
    关于 element 的 backToTop
    苹果手机new Date()问题
    js精简代码集合
    vue 中使用高德地图, 地图选点
    代替if else 的表单验证方法!
    记一次webpack打包样式加载问题
    echarts 饼图的指示线(labelline) 问题
  • 原文地址:https://www.cnblogs.com/wanzaiyimeng/p/4018615.html
Copyright © 2020-2023  润新知