ubuntu16.04 apt-get 报错:E: Unable to locate package update(E: Unable to locate package upgrade)(没解决)
文章目錄
- 想卸載一個包,發現怎么都卸載不掉,報E: Unable to locate package(后來發現我壓根沒裝這包,我是裝的vsftpd!!!)
- 20220214
如題:
[root@ubuntu /home/arnold]7# apt-get install update Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package update解決辦法:
點close,不要點revert(恢復)!
我也不知道解決沒有,,之前最初的指令好像寫錯了,應該是:sudo apt-get update,,中間不需要install,,
現在我是用apt-get install update和apt-get install upgrade倒是正常,,,更新了很多包
但是我后面執行的時候還是發現不行哎!!!
[root@ubuntu /home/arnold]5# apt-get install update Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package update [root@ubuntu /home/arnold]6# [root@ubuntu /home/arnold]6# apt-get install upgrade Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package upgrade但是我安裝包的時候倒是沒有報那個錯誤!!!
[root@ubuntu /home/arnold]7# sudo apt-get install vsftpd Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:libpango1.0-0 libpangox-1.0-0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed:vsftpd 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 115 kB of archives. After this operation, 336 kB of additional disk space will be used. Get:1 http://mirrors.ustc.edu.cn/ubuntu xenial/main amd64 vsftpd amd64 3.0.3-3ubuntu2 [115 kB] Fetched 115 kB in 0s (336 kB/s) Preconfiguring packages ... Selecting previously unselected package vsftpd. (Reading database ... 212893 files and directories currently installed.) Preparing to unpack .../vsftpd_3.0.3-3ubuntu2_amd64.deb ... Unpacking vsftpd (3.0.3-3ubuntu2) ... Processing triggers for ureadahead (0.100.0-19.1) ... Processing triggers for systemd (229-4ubuntu21.31) ... Processing triggers for man-db (2.7.5-1) ... Setting up vsftpd (3.0.3-3ubuntu2) ... Processing triggers for ureadahead (0.100.0-19.1) ... Processing triggers for systemd (229-4ubuntu21.31) ... [root@ubuntu /home/arnold]8#參考文章1:如何從根本上解決E: Unable to locate package錯誤的方法
參考文章2:Ubuntu install 錯誤 E:Unable to locate package
還是解決不了,,,,在網上都找不到關于E: Unable to locate package update(E: Unable to locate package upgrade)的報錯解決方法,全是E: Unable to locate package的!!!!
想卸載一個包,發現怎么都卸載不掉,報E: Unable to locate package(后來發現我壓根沒裝這包,我是裝的vsftpd!!!)
[root@ubuntu /home/arnold]15# apt-get remove vsftp Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vsftp [root@ubuntu /home/arnold]16#看來這個問題必須解決才行
我參考 ubuntu18.04 E: Unable to locate package *錯誤 方法試試
- 1、刪除/var/lib/apt/periodic文件夾下所有文件(刪除前先備份)
- 2、更換sources.list下載地址
跳過
暫停暫停!!問題暫時消除
20220214
貌似與這個問題有點類似,那個問題成功解決了
ubuntu虛擬機報錯:ModuleNotFoundError: No module named ‘uaclient‘
總結
以上是生活随笔為你收集整理的ubuntu16.04 apt-get 报错:E: Unable to locate package update(E: Unable to locate package upgrade)(没解决)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ssh scp文件同步(先不搞了)
- 下一篇: FTP(File Transfer Pr