找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1267|回复: 0
打印 上一主题 下一主题
收起左侧

apt 更新错误。

[复制链接]
跳转到指定楼层
楼主
ID:107189 发表于 2016-3-6 16:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

There are many problem due to which this issue has come. Some of then are :
  • Any entry in you apt.list is not working. You or any application has created a wrong entry.
  • apt repository are not currently working.
  • Corrupt in /var/lib/apt/lists/ folder.
So for both of them there are different solution, if you didn't know the exact problem then follow following steps:
  • Use another mirrors of apt. In ubuntu there is file name /etc/apt/sources.list and folder containing some files in /etc/apt/sources.list.d/. So, from there you can change use any other mirrors of apt. Like you can change your India repository to US repository, etc. by editing these files.
  • There is another possibility too that you having any other repository link (third party) which is not responding for the moment. So, you can also delete them from the above given files. You can also remove all third party repositories from list
    rm -rf /etc/apt/sources.list.d/*
  • Remove all contents from /var/lib/apt/lists/
    rm -rf /var/lib/apt/lists/*


  • I had this issue on my ubuntu on virtualbox before. I tried all above but that won't help.
    When I worked on other backup script and I recognized that my server had incorrect date/time. I have change that and the apt-get update works like a charm.
       

   


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表