apt-get commands out of sync

гm running Ubuntu server 15.10, and all of в sudden apt-get got confused about which packages пашите required and which aren't. I think I ran apt-get -f install before this started happening, because there were unmet dependencies.

When I run dist-upgrade, it tells я therВs plenty of stuff that could be переместите:

$ sudo apt-get dist-upgrade                                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... The following package was automatically installed and is no longer required:
  aspell aspell-en dictionaries-common emacsen-common enchant hunspell-en-us
  libaspell15 libenchant1c2a libhunspell-1.3-0 libhunspell-1.3-0v5 libqdbm14
  libxslt1.1 php-common
Use 'apt-get autoremove' to remove it.
Done
The following packages have been kept back:
  php-pear
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

So I ran autoremove, but then this happened:

$ sudo apt-get autoremove                                    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  php-common
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 62,5 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 106550 files and directories currently installed.)
Removing php-common (18+deb.sury.org~wily+1) ...
root root 1733 /var/lib/php/sessions

Not really knowing what to do I tried to do update && dist-upgrade again, which installed php-common back, and kept on saying I should run autoremove.

I have не разрабатывает what to do.

Обитайте info

Output for apt-cache policy php-pear

php-pear:
  Installed: 5.6.11+dfsg-1ubuntu3.1
  Candidate: 1:1.10.1+submodules+notgz-3+deb.sury.org~wily+2
  Version table:
     1:1.10.1+submodules+notgz-3+deb.sury.org~wily+2 0
        500 http://ppa.launchpad.net/ondrej/php-7.0/ubuntu/ wily/main amd64 Packages
 *** 5.6.11+dfsg-1ubuntu3.1 0
        500 http://archive.ubuntu.com/ubuntu/ wily-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ wily-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.6.11+dfsg-1ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages

Output for apt-cache policy php-common

php-common:
  Installed: 18+deb.sury.org~wily+1
  Candidate: 18+deb.sury.org~wily+1
  Version table:
 *** 18+deb.sury.org~wily+1 0
        500 http://ppa.launchpad.net/ondrej/php-7.0/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
1
задан 23 December 2015 в 15:28

1 ответ

Пакет php-common не находится в стандартных Коварных репозиториях. Но Вы добавили PPA ppa:ondrej/php-7.0, и пакет php-pear в этом PPA зависит от php-common, который находится также в этом PPA.

Ваша проблема, php-pear не является устанавливаемым, по любой причине, но php-common. Таким образом, пакет php-common будет установлен только, чтобы обнаружить позже, что это является ненужным, потому что "родительский" пакет php-pear не мог быть установлен.

1
ответ дан 7 December 2019 в 16:04

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

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