(12.04 vm / server) Dist-upgrade до 3.2.0-63 хочет удалить git (1.9.2) и git-core - это правильное поведение?

задавался вопросом, знает ли кто-нибудь, что dist-upgrade хочет удалить git. FWIW, это довольно простая коробка, в основном используемая для веб-разработчиков.

$ uname -a
Linux precise64 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ git --version
git version 1.9.2

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  git git-core
The following NEW packages will be installed:
  linux-headers-3.2.0-63 linux-headers-3.2.0-63-generic linux-image-3.2.0-63-generic
The following packages will be upgraded:
  git-man linux-headers-server linux-image-server linux-server phpmyadmin
5 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 58.8 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Do you want to continue [Y/n]?

Изменить: в том числе дополнительную информацию:

$ apt-cache policy git
git:
  Installed: 2:1.9.2-0avh1~precise
  Candidate: 2:2.0.0-0avh2~precise
  Version table:
     2:2.0.0-0avh2~precise 0
        500 http://ppa.launchpad.net/pdoes/ppa/ubuntu/ precise/main amd64 Packages
 *** 2:1.9.2-0avh1~precise 0
        100 /var/lib/dpkg/status
     1:1.7.9.5-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

$ apt-cache policy git-core
git-core:
  Installed: 2:2.0.0-0avh2~precise
  Candidate: 2:2.0.0-0avh2~precise
  Version table:
 *** 2:2.0.0-0avh2~precise 0
        500 http://ppa.launchpad.net/pdoes/ppa/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     1:1.7.9.5-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

$ apt-cache policy git-man
git-man:
  Installed: 2:1.9.2-0avh3~precise
  Candidate: 2:2.0.0-0avh2~precise
  Version table:
     2:2.0.0-0avh2~precise 0
        500 http://ppa.launchpad.net/pdoes/ppa/ubuntu/ precise/main amd64 Packages
 *** 2:1.9.2-0avh3~precise 0
        100 /var/lib/dpkg/status
     1:1.7.9.5-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Изменить: очищено git, и git-man, и попыталась переустановить git (обратите внимание, что это вызвало плохую ситуацию для меня, поскольку я полагаюсь на оба git и virtualenvwrapper, поэтому я вернул эту машину к предыдущей / рабочее состояние):

$ sudo apt-get purge git git-core git-man
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  git* git-core* git-man*
0 upgraded, 0 newly installed, 3 to remove and 4 not upgraded.
After this operation, 20.9 MB disk space will be freed.
Do you want to continue [Y/n]? y

$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjs-underscore python-virtualenv wwwconfig-common libjs-jquery javascript-common libjs-sphinxdoc
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  git-man
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs
  git-mediawiki git-svn
The following packages will be REMOVED:
  bash-completion virtualenvwrapper
The following NEW packages will be installed:
  git git-man
0 upgraded, 2 newly installed, 2 to remove and 4 not upgraded.
Need to get 10.3 MB of archives.
After this operation, 19.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? n

===== Окончательное редактирование, касающееся решения от Saiarcot895: эта виртуальная машина появилась из конфигурации PuPHPet Vagrant, которая действительно использует этот PPA для pdoes для Git (That wasn я до сих пор не обращал внимания на это. Чтобы разобраться в деталях, я просто удалил PPA из своей системы и установил версию Git из основного репозитория:

# apt-add-repository --remove ppa:pdoes/ppa
# apt-get update && apt-get install git -y
# apt-cache policy git
git:
  Installed: 1:1.7.9.5-1
  Candidate: 1:1.7.9.5-1
  Version table:
 *** 1:1.7.9.5-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

Очевидно, что это более старая версия Git, но она по-прежнему вполне приемлема для мои потребности. И затем после этого я смог запустить apt-get dist-upgrade без проблем.

1
задан 13 April 2017 в 15:23

0 ответов

Другие вопросы по тегам:

Похожие вопросы: