You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upstream ansible Ubuntu package is installed, upgrading to ansible from PPA is not directly possible:
dpkg: error processing archive /var/cache/apt/archives/ansible-core_2.16.5-1ppa~jammy_all.deb (--unpack):
trying to overwrite '/usr/bin/ansible', which is also in package ansible 2.10.7+merged+base+2.10.8+dfsg-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Workarround
The obvious workarround is to previosuly uninstall the Ubuntu ansible package version installed.
Proposed fix
Usually packages take care of 'obselting' previous versions or at tag them as mutually exclusive/incompatible so package manager takes care of that during install to avoid conflicts.
Full output:
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
ieee-data python3-argcomplete python3-netaddr python3-xmltodict
Use 'apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
vlc-plugin-qt libvlc5 libimage-magick-perl vlc-data gsasl-common libvlccore9
vlc libavcodec-extra imagemagick-common vlc-bin libiperf0 libopusfile0
libjs-jquery-ui libpathplan4 graphviz libavdevice58 libgvpr2 libgvc6 ansible
libdcmtk16 ffmpeg libopenexr25 libmagick++-6.q16-8 python3-scipy
libpostproc55 libcgraph6 libmagickcore-6.q16-6-extra libcdt5 libgsasl7
libimage-magick-q16-perl iperf3 libmagickwand-6.q16-6 libavcodec-extra58
libavutil56 libswscale5 libmagickcore-6.q16-6 libgsl27 liblab-gamut1
libswresample3 imagemagick-6-common vlc-plugin-video-output libavformat58
libgslcblas0 libvlc-bin vlc-plugin-base libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following NEW packages will be installed:
ansible-core python3-resolvelib
The following packages will be upgraded:
ansible
1 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.5 MB of archives.
After this operation, 11.3 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-resolvelib all 0.8.1-1 [23.6 kB]
Get:2 https://ppa.launchpadcontent.net/ansible/ansible/ubuntu jammy/main amd64 ansible-core all 2.16.5-1ppa~jammy [1,032 kB]
Get:3 https://ppa.launchpadcontent.net/ansible/ansible/ubuntu jammy/main amd64 ansible all 9.3.0-1ppa~jammy [16.5 MB]
Fetched 17.5 MB in 28s (618 kB/s)
Selecting previously unselected package python3-resolvelib.
(Reading database ... 603448 files and directories currently installed.)
Preparing to unpack .../python3-resolvelib_0.8.1-1_all.deb ...
Unpacking python3-resolvelib (0.8.1-1) ...
Selecting previously unselected package ansible-core.
Preparing to unpack .../ansible-core_2.16.5-1ppa~jammy_all.deb ...
Unpacking ansible-core (2.16.5-1ppa~jammy) ...
dpkg: error processing archive /var/cache/apt/archives/ansible-core_2.16.5-1ppa~jammy_all.deb (--unpack):
trying to overwrite '/usr/bin/ansible', which is also in package ansible 2.10.7+merged+base+2.10.8+dfsg-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../ansible_9.3.0-1ppa~jammy_all.deb ...
Unpacking ansible (9.3.0-1ppa~jammy) over (2.10.7+merged+base+2.10.8+dfsg-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/ansible-core_2.16.5-1ppa~jammy_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The text was updated successfully, but these errors were encountered:
When upstream ansible Ubuntu package is installed, upgrading to ansible from PPA is not directly possible:
Workarround
The obvious workarround is to previosuly uninstall the Ubuntu ansible package version installed.
Proposed fix
Usually packages take care of 'obselting' previous versions or at tag them as mutually exclusive/incompatible so package manager takes care of that during install to avoid conflicts.
Full output:
The text was updated successfully, but these errors were encountered: