데비안: 다음 패키지가 유지되었습니다... odbcinst 및 odbcinst1debian2

데비안: 다음 패키지가 유지되었습니다... odbcinst 및 odbcinst1debian2

질문:

저는 이 두 패키지를 모두 받았고 held back for weeks now버릴 수가 없었습니다.

The following packages have been kept back:
  odbcinst odbcinst1debian2

이봐:

[10:53:34][kristjan] ~ ~↓↓$↓↓ sudo apt upgrade --with-new-pkgs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  odbcinst odbcinst1debian2
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[10:53:44][kristjan] ~ ~↓↓$↓↓ sudo apt-get upgrade --with-new-pkgs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  odbcinst odbcinst1debian2
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[10:53:53][kristjan] ~ ~↓↓$↓↓ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  odbcinst odbcinst1debian2
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[10:55:08][kristjan] ~ ~↓↓$↓↓ sudo apt install odbcinst odbcinst1debian2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amarok-common amarok-utils apper apper-data avogadro-data cdparanoia cdrdao clamz debconf-kde-data debconf-kde-helper dvd+rw-tools espeak-ng-data festival festival-freebsoft-utils festlex-cmu festlex-poslex festvox-kallpc16k
  gnome-orca gnugo growisofs icoutils k3b-data kalzium-data kate-data kde-baseapps-data kde-runtime-data kdegames-card-data kdegames-mahjongg-data ktorrent-data ktouch-data kwrite libakonadiprotocolinternals1 libatk-adaptor
  libavogadro1 libdebconf-kde1 libdiscid0 libdmtx0a libdotconf0 libespeak-ng1 libestools2.4 libgadu3 libgpgme++2v5 libgpod-common libgpod4 libgpod4-nogtk libjs-mootools libkactivities6 libkcalcore4 libkcmutils4 libkcompactdisc4
  libkdeclarative5 libkdesu5 libkdnssd4 libkexiv2-11 libkexiv2-data libkidletime4 libkimap4 libkjsapi4 libkjsembed4 libkldap4 libkmime4 libkntlm4 libkonq5-templates libkpty4 libkresources4 libkrosscore4 libksane0 libkunitconversion4
  liblastfm1 liblimba0 libloudmouth1-0 libmariadbd18 libmeanwhile1 libmediastreamer-base3 libmusicbrainz5cc2v5 libmygpo-qt1 libntrack-qt4-1 libntrack0 libopenbabel4v5 libortp9 libotr5 libpcaudio0 libperl4-corelibs-perl libphonon4
  libpolkit-qt-1-1 libpoppler-qt4-4 libprison0 libqaccessibilityclient0 libqca2 libqca2-plugin-ossl libqca2-plugins libqimageblitz4 libqjson0 libqmobipocket1 libqrencode3 libqtassistantclient4 libqtscript4-core libqtscript4-gui
  libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libsgutils2-2 libsolid4 libsonic0 libspeechd2 libtag-extras1 libthreadweaver4 ntrack-module-libnl-0 oxygen-icon-theme palapeli-data phonon
  phonon-backend-gstreamer phonon-backend-gstreamer-common polkit-kde-1 python-attr python-avogadro python-click python-colorama python-constantly python-incremental python-openssl python-pam python-pyasn1-modules python-qt4
  python-qt4-sql python-serial python-service-identity python-sip python-twisted-bin python-twisted-core python-zope.interface python3-brlapi python3-louis python3-pyatspi python3-speechd qhull-bin qtdeclarative4-kqtquickcharts-1
  sound-icons sound-theme-freedesktop speech-dispatcher speech-dispatcher-audio-plugins speech-dispatcher-espeak-ng speech-dispatcher-festival vcdimager xbrlapi
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  amarok dolphin4 jovie juk k3b k3b-i18n kaccessible kajongg kalzium katepart kcachegrind kchmviewer kde-baseapps kde-baseapps-bin kde-config-cddb kde-full kde-games-core-declarative kde-plasma-desktop kde-runtime kde-standard
  kdeaccessibility kdeadmin kdeedu kdegames kdegraphics kdegraphics-mobipocket kdelibs-bin kdelibs5-plugins kdemultimedia kdenetwork kdepasswd kdepimlibs-kio-plugins kdesdk kdesdk-kio-plugins kdesdk-misc kdesudo kdeutils kdewebdev
  kdoctools kfilereplace kfind kget kgoldrunner kgpg kigo kimagemapeditor kio-audiocd kio-mtp klinkstatus kmag kmousetool kmouth kmtrace kolf kommander konq-plugins konqueror konqueror-nsplugins konquest kopete kpart-webkit kpartloader
  kppp kremotecontrol kreversi ksaneplugin kscd ksirk ksnakeduel kspaceduel ksudoku ktorrent ktouch kubrick kuiviewer kuser libakonadi-contact4 libakonadi-kde4 libakonadi-kmime4 libiodbc2 libk3b6 libk3b6-extracodecs libkabc4
  libkatepartinterfaces4 libkcddb4 libkde3support4 libkdegames6abi1 libkdegamesprivate1abi1 libkdewebkit5 libkemoticons4 libkfile4 libkhtml5 libkio5 libkmediaplayer4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkonq-common
  libkonq5abi1 libkonqsidebarplugin4a libkopete4 libkparts4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkrossui4 libktexteditor4 libktorrent-l10n libktorrent5 libkxmlrpcclient4 libmailtransport4 libnepomuk4
  libnepomukquery4a libnepomukutils4 libokularcore7 libplasma3 libreoffice-kde libsoprano4 libsyndication4 lskat okular palapeli plasma-scriptengine-javascript python-kde4 soprano-daemon svgpart sweeper task-kde-desktop
The following packages will be upgraded:
  odbcinst odbcinst1debian2
2 upgraded, 0 newly installed, 129 to remove and 0 not upgraded.
Need to get 147 kB of archives.
After this operation, 231 MB disk space will be freed.
Do you want to continue? [Y/n]n

내가 시도한 것:

기사에 따르면debian-administration.org,

If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade then that will be listed as "kept-back".

신중한 해결책 1:

모든파블로의 대답, 실행하면 sudo apt-get --with-new-pkgs upgrade예약된 패키지가 설치됩니다.

이는 예약된 패키지를 "수동 설치"로 표시하지 않는다는 이점이 있으며, 이로 인해 더 많은 사용자 개입이 필요할 수 있습니다(설명 참조).

Pablo의 솔루션이 귀하에게 적합한지 투표해 주세요. 그렇지 않은 경우 무엇이 잘못되었는지 의견을 말해주세요.

신중한 해결책 2:

신중한 해결책은 실행하는 것입니다 sudo apt-get install <list of packages kept back>. 대부분의 경우 이는 성공적인 업그레이드에 필요한 정보를 보유 패키지에 제공합니다.

긍정적인 해결책:

보다 공격적인 솔루션은 를 실행하여 sudo apt-get dist-upgrade이러한 새로운 종속성을 강제로 설치하는 것입니다.

그러나 dist-upgrade그것은 매우 위험할 수 있습니다.업그레이드와는 다르다복잡한 종속성 상황을 해결하기 위해 패키지를 제거할 수도 있습니다. 귀하와 달리 APT는 이러한 추가 및 삭제가 큰 피해를 입힐지 여부를 알 만큼 항상 똑똑하지는 않습니다.

따라서 "신중한 솔루션"이 작동하지 않는 위치에 있다면 dist-upgrade작동할 수도 있습니다... 하지만 APT에 대해 조금 더 알고 APT를 설치하고 제거하여 "수동으로" 종속성 문제를 해결하는 것이 더 나을 것입니다. 패키지는 사례별로 결정됩니다.

자동차를 수리한다고 상상해 보십시오. 시간이 있고 렌치를 잘 다룰 수 있다면 이에 대한 내용을 읽고 직접 수리함으로써 편안함을 느낄 것입니다. 운이 좋다면 사촌에게 차를 주고 dist-upgrade사촌이 무엇을 해야 할지 알기를 바랍니다.

나는 또한 다음을 시도했습니다.

[11:06:55][kristjan] ~ ~↓↓$↓↓ sudo aptitude safe-upgrade
Resolving dependencies...                
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

질문:

이 문제를 해결하고 성가신 경고를 제거하는 방법은 무엇입니까?

apt policy odbcinst odbcinst1debian2프로그램

odbcinst:
  Installed: 2.3.4-1
  Candidate: 2.3.7
  Version table:
     2.3.7 500
        500 https://packages.microsoft.com/debian/9/prod stretch/main amd64 Packages
 *** 2.3.4-1 500
        500 http://deb.debian.org/debian stable/main amd64 Packages
        100 /var/lib/dpkg/status
odbcinst1debian2:
  Installed: 2.3.4-1
  Candidate: 2.3.7
  Version table:
     2.3.7 500
        500 https://packages.microsoft.com/debian/9/prod stretch/main amd64 Packages
 *** 2.3.4-1 500
        500 http://deb.debian.org/debian stable/main amd64 Packages
        100 /var/lib/dpkg/status

답변1

최신 버전의 패키지가 포함된 Microsoft 저장소를 추가했는데 odbcinst이 저장소가 KDE와 충돌합니다( libiodc2KDE에서 요구하는 대로 "중단"됩니다).통과하다 soprano-daemon그리고 libsoprano4).

따라서 선택해야 합니다. KDE를 유지하거나 새 odbcinst패키지로 업그레이드하거나 둘 다 가질 수는 없습니다.

"경고"를 제거하려면 다음과 같이 Microsoft 저장소를 엄격하게 100보다 작은 우선순위로 고정하면 됩니다.

nano /etc/apt/preferences.d/proxmox

그리고 다음을 삽입하세요:

Package: *
Pin: origin packages.microsoft.com
Pin-Priority: 70

관련 정보