找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 1276|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

apt 更新錯(cuò)誤。

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:107189 發(fā)表于 2016-3-6 16:01 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式

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空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表