Luc*_*dir 13 package-management apt
我正在按照这些说明在我的笔记本电脑上安装 git。
当我做:
$ sudo apt-get install git-core
这是我的终端显示的内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasprintf0c2:i386
libcroco3:i386
libgettextpo0:i386
libgomp1:i386
libunistring0:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
git git-man liberror-perl
Suggested packages:
git-daemon-run
git-daemon-sysvinit
git-doc git-el
git-arch git-cvs
git-svn
git-email
git-gui
gitk gitweb
The following NEW packages will be installed:
git git-core git-man liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,825 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
liberror-perl git-man git git-core
Install these packages without verification [y/N]?
Run Code Online (Sandbox Code Playgroud)
E: Some packages could not be authenticated
lucas@lucas-Inspiron-N5050:~$ sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasprintf0c2:i386
libcroco3:i386
libgettextpo0:i386
libgomp1:i386
libunistring0:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
git git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit
git-doc git-el git-arch git-cvs git-svn
git-email git-gui gitk gitweb
The following NEW packages will be installed:
git git-core
git-man liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,825 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
liberror-perl git-man git git-core
Install these packages without verification [y/N]? y
Err httpq://py.archive.ubuntu.com/ubuntu/quantal/main liberror-perl all 0.17-1
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git-man all 1:1.7.10.4-1ubuntu1
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git amd64 1:1.7.10.4-1ubuntu1
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git-core all 1:1.7.10.4-1ubuntu1
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/libe/liberror-perl/liberrorperl_0.17-1_all.deb
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/g/gi/git-man_1.7.10.4-1ubuntu1_all.deb
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.7.10.4-1ubuntu1_amd64.deb
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://py.archive.ubuntu.com/ubuntu/pool/main/g/git/git-core_1.7.10.4-1ubuntu1_all.deb
Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)
如何在 Ubuntu 12.10 上安装git?我什至无法从 Ubuntu 软件中心完成。
提前致谢!
Dr_*_*sen 10
关闭所有与安装软件有关的程序/窗口,例如 Synaptic、软件中心和终端。
现在您应该删除锁定的文件:
您可以删除锁定文件
Run Code Online (Sandbox Code Playgroud)sudo rm /var/lib/apt/lists/lock您可能还需要删除缓存目录中的锁定文件
Run Code Online (Sandbox Code Playgroud)sudo rm /var/cache/apt/archives/lock作者:这个答案
现在你应该打开一个终端并运行:
sudo apt-get update --fix-missing
Run Code Online (Sandbox Code Playgroud)
现在你可以再次安装你想要的一切。
祝你今天过得愉快
| 归档时间: |
|
| 查看次数: |
23065 次 |
| 最近记录: |