При обработке следующих пакетов произошли ошибки ubuntu advantage tools

Sat down at work to do a routine apt update && apt upgrade and encountered some issue with ubuntu-advantage-tools.

I’m not sure what this package is for, but it came in with Ubuntu 20.04.2 LTS (GNU/Linux 5.4.72-microsoft-standard-WSL2 x86_64).

I’ve tried the usual apt purge and tried to install again, but it still doesn’t succeed.

$ sudo apt install ubuntu-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  ubuntu-advantage-tools
The following NEW packages will be installed:
  ubuntu-advantage-tools ubuntu-minimal
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/847 kB of archives.
After this operation, 3233 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package ubuntu-advantage-tools.
(Reading database ... 58786 files and directories currently installed.)
Preparing to unpack .../ubuntu-advantage-tools_27.2.1~20.04.1_amd64.deb ...
Unpacking ubuntu-advantage-tools (27.2.1~20.04.1) ...
Selecting previously unselected package ubuntu-minimal.
Preparing to unpack .../ubuntu-minimal_1.450.2_amd64.deb ...
Unpacking ubuntu-minimal (1.450.2) ...
Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ...
ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on ubuntu-advantage-tools; however:
  Package ubuntu-advantage-tools is not configured yet.

dpkg: error processing package ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 ubuntu-advantage-tools
 ubuntu-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I just show the example of installing ubuntu-minimal because this was (i think) the only thing depending on ubuntu-advantage-tools, and removing ubuntu-advantage-tools also removed ubuntu-minimal.

I can re-create my Ubuntu WSL thing but its kind of a PITA. I’m not getting commercial support from Canonical, do I need to worry about this package being borky? More worried about that ubuntu-minimal metapackage being broken, actually.

Thanks!

I did end up ‘resetting’ my WSL Ubuntu install, did an initial «apt update && apt full-upgrade -y && apt autoremove -y» and the error came back. Maybe Ubuntu has a buggy package right now?

[... bunch of other apt output here ...]

Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ...
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

[... bunch of other apt output here ...]

Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • Печать

Страницы: [1]   Вниз

Тема: При обработке следующих пакетов произошли ошибки.  (Прочитано 12243 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
dezytube

Привет! Помогите пожалуйста я обновлял с 14.04 на 16.04.1 у меня зависло все на половине, я перезапустил пк и тут система не запускалась и тут я Зажал Ctl Shift вел логин, пароль и вел команду sudo dpkg -configuru -a система запустилась после перезагрузки, теперь когда я что то вожу в терминале например «sudo apt-get install prelink» или «apt full-upgrade» все что связано с apt можно так сказать.

Пишет следующее:
«При обработке следующих пакетов произошли ошибки:
 linux-headers-4.4.0-34-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)»

Помогите пожалуйста. :coolsmiley:


Оффлайн
Haron Prime


Оффлайн
dezytube

sudo apt-get -f install

Я это знаю и водил много раз не помогает.

dpkg: ошибка при обработке пакета linux-headers-4.4.0-34-generic (—configure):
 пакет абсолютно неработоспособен; перед настройкой его
 следует переустановить

« Последнее редактирование: 17 Сентября 2016, 14:42:43 от dezytube »


Оффлайн
Haron Prime

sudo apt-get install --reinstall  linux-headers-4.4.0-34-generic


Оффлайн
dezytube

sudo apt-get install --reinstall  linux-headers-4.4.0-34-generic

Просто когда водил эту команду не помогло сделал вот так:
sudo dpkg -i *.deb
sudo apt-get -f install
sudo apt-get install —reinstall linux-headers-4.4.0-34-generic
sudo apt-get -f install

Спасибо за помощь))


  • Печать

Страницы: [1]   Вверх

We are running on Ubuntu 20.04 and having issue when updating the OS packages. Specifically, the ubuntu-advantage-tools is failing to configure. This just started recently.

Initially the server had no issue — advantage tools were installed and configured:
root@testserver> dpkg —list | grep advantage
ii ubuntu-advantage-tools 27.1~20.04.1 amd64 management tools for Ubuntu Advantage

I ran apt update followed by upgrade and ‘ubuntu-advantage-tools’ failed to configure:

root@testserver> sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 328 kB in 9s (38.3 kB/s)
Reading package lists… Done

root@testserver> sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  curl libcurl3-gnutls libcurl4 libglib2.0-0 libglib2.0-bin libglib2.0-data libnss-systemd libpam-systemd libsystemd0 libudev1 networkd-dispatcher systemd
  systemd-sysv ubuntu-advantage-tools udev
15 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
10 standard security updates
Need to get 8,664 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.11 [96.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.11 [1,365 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libudev1 amd64 245.4-4ubuntu3.11 [78.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.11 [10.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.11 [186 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.11 [3,807 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.11 [270 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-data all 2.64.6-1~ubuntu20.04.4 [6,052 B]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-bin amd64 2.64.6-1~ubuntu20.04.4 [72.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libglib2.0-0 amd64 2.64.6-1~ubuntu20.04.4 [1,287 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 networkd-dispatcher all 2.1-2~ubuntu20.04.1 [14.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ubuntu-advantage-tools amd64 27.2.1~20.04.1 [844 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.6 [161 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.6 [234 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.6 [231 kB]
Fetched 8,664 kB in 0s (77.5 MB/s)
Preconfiguring packages …
Can’t exec «/tmp/ubuntu-advantage-tools.config.9EJyW7»: Permission denied at /usr/share/perl/5.30/IPC/Open3.pm line 281.
open2: exec of /tmp/ubuntu-advantage-tools.config.9EJyW7 configure 27.1~20.04.1 failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
(Reading database … 111472 files and directories currently installed.)
Preparing to unpack …/libnss-systemd_245.4-4ubuntu3.11_amd64.deb …
Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/udev_245.4-4ubuntu3.11_amd64.deb …
Unpacking udev (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/libudev1_245.4-4ubuntu3.11_amd64.deb …
Unpacking libudev1:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Setting up libudev1:amd64 (245.4-4ubuntu3.11) …
(Reading database … 111472 files and directories currently installed.)
Preparing to unpack …/systemd-sysv_245.4-4ubuntu3.11_amd64.deb …
Unpacking systemd-sysv (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/libpam-systemd_245.4-4ubuntu3.11_amd64.deb …
Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/systemd_245.4-4ubuntu3.11_amd64.deb …
Unpacking systemd (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Preparing to unpack …/libsystemd0_245.4-4ubuntu3.11_amd64.deb …
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.11) over (245.4-4ubuntu3.7) …
Setting up libsystemd0:amd64 (245.4-4ubuntu3.11) …
(Reading database … 111473 files and directories currently installed.)
Preparing to unpack …/0-libglib2.0-data_2.64.6-1~ubuntu20.04.4_all.deb …
Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) …
Preparing to unpack …/1-libglib2.0-bin_2.64.6-1~ubuntu20.04.4_amd64.deb …
Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) …
Preparing to unpack …/2-libglib2.0-0_2.64.6-1~ubuntu20.04.4_amd64.deb …
Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) over (2.64.6-1~ubuntu20.04.3) …
Preparing to unpack …/3-networkd-dispatcher_2.1-2~ubuntu20.04.1_all.deb …
Unpacking networkd-dispatcher (2.1-2~ubuntu20.04.1) over (2.0.1-1) …
Preparing to unpack …/4-ubuntu-advantage-tools_27.2.1~20.04.1_amd64.deb …
Unpacking ubuntu-advantage-tools (27.2.1~20.04.1) over (27.1~20.04.1) …
Preparing to unpack …/5-curl_7.68.0-1ubuntu2.6_amd64.deb …
Unpacking curl (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) …
Preparing to unpack …/6-libcurl4_7.68.0-1ubuntu2.6_amd64.deb …
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) …
Preparing to unpack …/7-libcurl3-gnutls_7.68.0-1ubuntu2.6_amd64.deb …
Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) over (7.68.0-1ubuntu2.5) …
Setting up networkd-dispatcher (2.1-2~ubuntu20.04.1) …
Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) …
Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) …
Setting up systemd (245.4-4ubuntu3.11) …
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolved …
Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.4) …
Setting up udev (245.4-4ubuntu3.11) …
update-initramfs: deferring update (trigger activated)
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.6) …
Setting up curl (7.68.0-1ubuntu2.6) …
Setting up ubuntu-advantage-tools (27.2.1~20.04.1) …
Installing new version of config file /etc/apt/apt.conf.d/20apt-esm-hook.conf …
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf …
ERROR: File not found ‘/run/cloud-init/instance-data.json’. Provide a path to instance data json file using —instance-data
dpkg: error processing package ubuntu-advantage-tools (—configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Setting up systemd-sysv (245.4-4ubuntu3.11) …
Setting up libglib2.0-bin (2.64.6-1~ubuntu20.04.4) …
Setting up libnss-systemd:amd64 (245.4-4ubuntu3.11) …
Setting up libpam-systemd:amd64 (245.4-4ubuntu3.11) …

pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating.
pam-auth-update: Run pam-auth-update —force to override.

Processing triggers for man-db (2.9.1-1) …
Processing triggers for dbus (1.12.16-2ubuntu2.1) …
Processing triggers for libc-bin (2.31-0ubuntu9.2) …
Processing triggers for initramfs-tools (0.136ubuntu6.6) …
update-initramfs: Generating /boot/initrd.img-5.4.0-77-generic
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@testserver> dpkg —list | grep advantage
iF ubuntu-advantage-tools 27.2.1~20.04.1 amd64 management tools for Ubuntu Advantage

The error appears to be introduced in version 27.2.1~20.04.1.

Note none of our internal servers have the missing file:
/run/cloud-init/instance-data.json

Can someone please confirm if there is a dependency issue in the new package? I am not sure why the tools package would depend on a cloud-init data file.

I expect the new advantage-tools package to upgrade and configure without issue, especially since it was already installed and configured to begin with.

Симптомы:

Synaptic пишет «Пакет [имя пакета] нуждается в переустановке, но найти архив для него не удалось» или «The package [package name] needs to be reinstalled, but I can’t find an archive for it», «При обработке следующих пакетов произошли ошибки:»,не открывается Центр приложений Ubuntu, в терминале не работает apt-get. Не все потеряно и это легко поправимо. Обычно такая проблема возникает если при установке какой-то программы возникли проблемы и установка не была завершена или же в момент установки программы или обновлений системы компьютер был выключен или перезагружен.

Лечение:

Окройте терминал и введите команду:

sudo gedit /var/lib/dpkg/status

У вас откроется текстовый редактор (внимание! не удалите ничего лишнего!). Нажмите Ctrl+F для поиска ключевой фразы и в строку поиска введите имя проблемного пакета. После того, как была найдена информация о нем вам нужно удалить ее.

После этого сохраните и закройте текстовый редактор. Затем введите в терминал:

sudo apt-get -f install

Этим вы проверяете состояние пакетов. Если вы сделали все правильно, то информация о проблемном пакете исчезнет.

This problem appeared for me after upgrading to Ubuntu 18.04 from 16.04.

I updated opcua and opcua-client as suggested with python -m pip install, and also with pip3 install, to get it updated in python3 packages, and the problem remained.
I have system python3 installed in /usr/bin/python3 (version 3.6), and another version in /usr/local/bin/python3 (version 3.8) which is the default python3. I’m not sure why, but the uaclient.entitlements module can be loaded properly with /usr/bin/python3, but not with /usr/local/bin/python3

Instead of changing the location of the uaclient package, the following worked for me:

I used update-alternatives to choose which python3 will be used by default, either system python3 which is /usr/bin/python3.6, or the updated python3 which is installed in /usr/local/bin/python3.8 as described here:
https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1

sudo update-alternatives --install /usr/local/bin/python3 python3 /usr/local/bin/python3.8 2

Then, choose /usr/bin/python3.6 as the default by running:

sudo update-alternatives --config python3

A symlink is created as /etc/alternatives/python3 that points to the chosen default python3.

Since the way I set the alternatives results in /usr/local/bin/python3.8 as the automatic default python3, the symlink /usr/bin/python3 -> python3.6 is removed. But this symlink is still needed for dependencies/functions that use system python through /usr/bin/python3, so I added back the sym link:

sudo ln -s python3.6 /usr/bin/python3

By setting /usr/bin/python3.6 as the default instead of /usr/local/bin/python3.8, then uaclient.entitlements can be loaded properly. This worked for me to install and upgrade packages where this uaclient.entitlements ModuleNotFoundError was occurring. Just have to switch back to using /usr/local/bin/python3.8 when finished installing. But I think now that ubuntu-advantage-tools is configured by getting through this error, there doesn’t seem to be a need to switch to /usr/bin/python3.6 as the default anymore for installing packages.

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

User avatar

lewtwo

Level 4
Level 4
Posts: 228
Joined: Wed Oct 29, 2014 8:33 pm
Location: Houston, Texas

Ubuntu Advantage Tools [solved]

I just did an update to a computer with Linux Mint 18.3 Sylvia 64-bit, MATE 1.18.0.
That update included something called: Ubuntu Advantage Tools

….
Setting up ubuntu-advantage-tools (10ubuntu0.16.04.1) …
Setting up ubuntu-minimal (1.361.2) …
Setting up apt-transport-https (1.2.29) …
Setting up friendly-recovery (0.2.31ubuntu2) …
Generating grub configuration file …
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.

I thought Ubuntu Advantage was supposed to be Canonical’s commercial support package ?????

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

ajgringo619

Re: Ubuntu Advantage Tools

Post

by ajgringo619 » Sat Nov 03, 2018 1:56 am

trytip wrote: ↑

Sat Nov 03, 2018 1:14 am

you can remove the first three. i don’t have them installed

I had the Ubuntu packages on my system. Any idea how they got there?

User avatar

Pierre

Level 21
Level 21
Posts: 12787
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Ubuntu Advantage Tools

Post

by Pierre » Sat Nov 03, 2018 2:10 am

what did you install, once the original LinuxMint system was working ?.

you’ve installed some program that was not in the LiniuxMint repository,
and via some PPA ? ?. maybe. .. what was that ?.

Image
Please edit your original post title to include [SOLVED] — when your problem is solved!
and DO LOOK at those Unanswered Topics — — you may be able to answer some!.

ajgringo619

Re: Ubuntu Advantage Tools

Post

by ajgringo619 » Sat Nov 03, 2018 2:12 am

It could be anything. I’m thinking it’s because I always install the recommended packages that maybe it got added. As a test, I removed ubuntu-advantage-tools and ubuntu-minimal came with it.

User avatar

smurphos

Level 18
Level 18
Posts: 8536
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Ubuntu Advantage Tools

Post

by smurphos » Sat Nov 03, 2018 2:25 am

It’s pre-installed in Cinnamon 19. Probably because ubuntu-minimal is a meta-package that draws in a number of basic packages needed for Ubuntu and Mint and some that probably aren’t really needed.

For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

gm10

Level 20
Level 20
Posts: 10550
Joined: Thu Jun 21, 2018 5:11 pm

Re: Ubuntu Advantage Tools

Post

by gm10 » Sat Nov 03, 2018 2:31 am

ajgringo619 wrote: ↑

Sat Nov 03, 2018 1:56 am

I had the Ubuntu packages on my system. Any idea how they got there?

ubuntu-minimal is part of the Linux Mint 18.3 installation and ubuntu-advantage-tools is installed as a dependency of ubuntu-minimal. In other words, both are legit.

User avatar

trytip

Level 14
Level 14
Posts: 5334
Joined: Tue Jul 05, 2016 1:20 pm

Re: Ubuntu Advantage Tools

Post

by trytip » Sun Nov 04, 2018 9:27 pm

today i started mint 17.3 mate and check for updates ubuntu-minimal was the only package available in upgrades but it wanted to install ubuntu-advantage-tools
i canceled the upgrade and marked ubuntu-minimal to be removed.

Last edited by trytip on Mon Nov 05, 2018 2:36 pm, edited 1 time in total.

Image

User avatar

Moem

Level 22
Level 22
Posts: 15283
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Ubuntu Advantage Tools

Post

by Moem » Mon Nov 05, 2018 7:04 am

trytip wrote: ↑

Sun Nov 04, 2018 9:27 pm

anyone reading this should do the same or check that you don’t have these packages installed

Why? Because you don’t want them?

Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar

trytip

Level 14
Level 14
Posts: 5334
Joined: Tue Jul 05, 2016 1:20 pm

Re: Ubuntu Advantage Tools

Post

by trytip » Mon Nov 05, 2018 9:56 am

Moem wrote: ↑

Mon Nov 05, 2018 7:04 am

trytip wrote: ↑

Sun Nov 04, 2018 9:27 pm

anyone reading this should do the same or check that you don’t have these packages installed

Why? Because you don’t want them?

why do i need them? mint 17.3 was fine without the advantage of Canonical, why now it’s mandatory?

Image

User avatar

Moem

Level 22
Level 22
Posts: 15283
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Ubuntu Advantage Tools

Post

by Moem » Mon Nov 05, 2018 10:03 am

I’m not saying that you need them. I’m asking why now all of a sudden everyone ‘should’ get rid of them.

Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar

trytip

Level 14
Level 14
Posts: 5334
Joined: Tue Jul 05, 2016 1:20 pm

Re: Ubuntu Advantage Tools

Post

by trytip » Mon Nov 05, 2018 10:15 am

Moem wrote: ↑

Mon Nov 05, 2018 10:03 am

I’m not saying that you need them. I’m asking why now all of a sudden everyone ‘should’ get rid of them.

:lol: and i’m genuinely asking why do i need them? isn’t the advantage tools for businesses with ubuntu servers? does mint need it?

Image

gm10

Level 20
Level 20
Posts: 10550
Joined: Thu Jun 21, 2018 5:11 pm

Re: Ubuntu Advantage Tools

Post

by gm10 » Mon Nov 05, 2018 10:20 am

The ubuntu-advantage-tools scripts don’t hurt anybody, there is no reason to remove them. They are needed for Ubuntu Advantage customers and as a hard dependency of ubuntu-minimal its removal may hurt you down the line because that meta package is expected to be installed on all Ubuntu systems and thus future system updates may rely on dependencies installed by it.

Therefore I advise against removing this package.

What you can do if you’re not an Ubuntu Advantage customer and are not planning to become one, is to remove the daily cron job. It does nothing if it doesn’t find a subscription, anyway, but if you feel like removing something that’s the part you can safely remove:

Code: Select all

sudo rm -v /etc/cron.daily/ubuntu-advantage-tools

User avatar

lewtwo

Level 4
Level 4
Posts: 228
Joined: Wed Oct 29, 2014 8:33 pm
Location: Houston, Texas

Re: Ubuntu Advantage Tools

Post

by lewtwo » Mon Nov 05, 2018 10:26 am

why do i need them? mint 17.3 was fine without the advantage of Canonical, why now it’s mandatory?

I could be wrong (it happened once before) but Linux Mint is based (aka dependent) on Canonical’s Ubuntu.

Having said that there might be some question as to these proprietary Canonical Advantage programs being «open source».
So I actually went looking for the source files. What I found under /ubuntu-advantage-script/debian/source was merely a description file.
I did find a set of script files that seem to have something to do with «Canonical Livepatch Service»:
https://github.com/CanonicalLtd/ubuntu-advantage-script

Turns out that is a «free» service for up to three(3) machines with a Ubuntu One account.
https://www.ubuntu.com/livepatch

… clear as mud.

P.S.
I did not intend to start any kind of controversy with my original question.

User avatar

trytip

Level 14
Level 14
Posts: 5334
Joined: Tue Jul 05, 2016 1:20 pm

Re: Ubuntu Advantage Tools

Post

by trytip » Mon Nov 05, 2018 1:43 pm

you’re not causing and controversies it’s just a discussion and any user can draw their own conclusion and do as they please with their computer.
i didn’t need it a week ago when it wasn’t a dependency for my system and i won’t need it 2 years from now. i’m quite sure that if a user does need some ubuntu advantage tools, they should be capable enough to know how to get it working.

Image

User avatar

Moem

Level 22
Level 22
Posts: 15283
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Ubuntu Advantage Tools

Post

by Moem » Mon Nov 05, 2018 2:15 pm

trytip wrote: ↑

Mon Nov 05, 2018 1:43 pm

any user can draw their own conclusion and do as they please with their computer.

Sounds good to me. A whole lot better than «anyone reading this should do the same or check that you don’t have these packages installed». :wink:

Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

altair4

Level 20
Level 20
Posts: 11019
Joined: Tue Feb 03, 2009 10:27 am

Re: Ubuntu Advantage Tools

Post

by altair4 » Mon Nov 05, 2018 2:23 pm

When you go into Software and Updates in Ubuntu 18.04 you will see a reference to LivePatch which ubuntu-advantage enables:

LivePatch.png

Login with your Ubuntu Single-Sign-On account and you too can update your kernel without a reboot.

See … it’s an advantage .. you know … to using Ubuntu … get it?

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar

lewtwo

Level 4
Level 4
Posts: 228
Joined: Wed Oct 29, 2014 8:33 pm
Location: Houston, Texas

Re: Ubuntu Advantage Tools

Post

by lewtwo » Mon Nov 05, 2018 2:48 pm

I think we covered the issue. I am going to add [solved] at the end of the original subject header.

Thanks to all.

Acetone

Level 1
Level 1
Posts: 18
Joined: Tue Mar 18, 2014 11:42 am

Re: Ubuntu Advantage Tools [solved]

Post

by Acetone » Wed Nov 07, 2018 6:26 am

The issue you pointed out was Mint pushing ubuntu-advantage-tools to you, which you don’t want.
You marked the issue solved but I fail to understand how you solved it. Shall you explain what you did?

I’m having the very same issue: updating ubuntu-meta pushes ubuntu-advantage-tools (which I do not want) and so far the only solution I have is to blacklist ubuntu-meta in Update Manager.

User avatar

lewtwo

Level 4
Level 4
Posts: 228
Joined: Wed Oct 29, 2014 8:33 pm
Location: Houston, Texas

Re: Ubuntu Advantage Tools [solved]

Post

by lewtwo » Wed Nov 07, 2018 8:17 pm

My problems were:
1) I did not know what it was
2) Did not want something that I might eventually have to pay for
3) Was not open source

I have a better understanding of what it is although I probably do not need it and will likely never use it.
It is not something that I will ever have to pay for because I have an UbuntuOne account that I never use … of course Canonical could change their policy and it would become an issue at that time.
It seems that all that is really part of the package is a set of scripts to hook into «Canonical Livepatch Service». Those script files are published.

So my issues are solved.
Yours may not be.

cheers :)

Чиним зависшие пакеты

Сегодня столкнулся с тем, что при обновление пакетов пара паршивых овец не захотела устанавливаться и кричали примерно следующие:

При обработке следующих пакетов произошли ошибки: language-selector-common language-selector:

Sub-process /usr/bin/dpkg returned an error code (1)

Вылечилось это довольно просто:

Переходим в терминале в папку  /var/lib/dpkg/info

cd /var/lib/dpkg/info

Теперь удаляем зависшие пакеты от root’a:

sudo rm language-selector-common.*
sudo rm language-selector.*

language-selector-common и language-selector меняем на свои пакеты.

Выполняем:

sudo apt-get -f install

Если не помогло, повторяем процедуру с удалением в папке:

cd /var/cache/apt/archives

P.S.:Если не нравится консоль, то можно всё делать и в наутилусе.

Тогда открываем папку не через cd, а:

sudo nautilus /var/lib/dpkq/info

Поделись статьёй с друзьями

Или просто поиграйся с кнопочками

Sat down at work to do a routine apt update && apt upgrade and encountered some issue with ubuntu-advantage-tools.

I’m not sure what this package is for, but it came in with Ubuntu 20.04.2 LTS (GNU/Linux 5.4.72-microsoft-standard-WSL2 x86_64).

I’ve tried the usual apt purge and tried to install again, but it still doesn’t succeed.

$ sudo apt install ubuntu-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  ubuntu-advantage-tools
The following NEW packages will be installed:
  ubuntu-advantage-tools ubuntu-minimal
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/847 kB of archives.
After this operation, 3233 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package ubuntu-advantage-tools.
(Reading database ... 58786 files and directories currently installed.)
Preparing to unpack .../ubuntu-advantage-tools_27.2.1~20.04.1_amd64.deb ...
Unpacking ubuntu-advantage-tools (27.2.1~20.04.1) ...
Selecting previously unselected package ubuntu-minimal.
Preparing to unpack .../ubuntu-minimal_1.450.2_amd64.deb ...
Unpacking ubuntu-minimal (1.450.2) ...
Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ...
ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on ubuntu-advantage-tools; however:
  Package ubuntu-advantage-tools is not configured yet.

dpkg: error processing package ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 ubuntu-advantage-tools
 ubuntu-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I just show the example of installing ubuntu-minimal because this was (i think) the only thing depending on ubuntu-advantage-tools, and removing ubuntu-advantage-tools also removed ubuntu-minimal.

I can re-create my Ubuntu WSL thing but its kind of a PITA. I’m not getting commercial support from Canonical, do I need to worry about this package being borky? More worried about that ubuntu-minimal metapackage being broken, actually.

Thanks!

I did end up ‘resetting’ my WSL Ubuntu install, did an initial «apt update && apt full-upgrade -y && apt autoremove -y» and the error came back. Maybe Ubuntu has a buggy package right now?

[... bunch of other apt output here ...]

Setting up ubuntu-advantage-tools (27.2.1~20.04.1) ...
Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path to instance data json file using --instance-data
dpkg: error processing package ubuntu-advantage-tools (--configure):
 installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

[... bunch of other apt output here ...]

Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ubuntu-advantage-tools causing failure?

I am getting the following error when I try and sudo apt-get update && sudo apt-get upgrade -y . This started about a week ago, and any apt-get command is failing because of this. Any thoughts on how to fix this error?

Setting up ubuntu-advantage-tools (27.0~16.04.1) ...
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
dpkg: error processing package ubuntu-advantage-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Печать

Страницы: [1]   Вниз

Тема: При обработке следующих пакетов произошли ошибки.  (Прочитано 13272 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
dezytube

Привет! Помогите пожалуйста я обновлял с 14.04 на 16.04.1 у меня зависло все на половине, я перезапустил пк и тут система не запускалась и тут я Зажал Ctl Shift вел логин, пароль и вел команду sudo dpkg -configuru -a система запустилась после перезагрузки, теперь когда я что то вожу в терминале например «sudo apt-get install prelink» или «apt full-upgrade» все что связано с apt можно так сказать.

Пишет следующее:
«При обработке следующих пакетов произошли ошибки:
 linux-headers-4.4.0-34-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)»

Помогите пожалуйста. :coolsmiley:


Оффлайн
Haron Prime


Оффлайн
dezytube

sudo apt-get -f install

Я это знаю и водил много раз не помогает.

dpkg: ошибка при обработке пакета linux-headers-4.4.0-34-generic (—configure):
 пакет абсолютно неработоспособен; перед настройкой его
 следует переустановить

« Последнее редактирование: 17 Сентября 2016, 14:42:43 от dezytube »


Оффлайн
Haron Prime

sudo apt-get install --reinstall  linux-headers-4.4.0-34-generic


Оффлайн
dezytube

sudo apt-get install --reinstall  linux-headers-4.4.0-34-generic

Просто когда водил эту команду не помогло сделал вот так:
sudo dpkg -i *.deb
sudo apt-get -f install
sudo apt-get install —reinstall linux-headers-4.4.0-34-generic
sudo apt-get -f install

Спасибо за помощь))


  • Печать

Страницы: [1]   Вверх

Чиним зависшие пакеты

Сегодня столкнулся с тем, что при обновление пакетов пара паршивых овец не захотела устанавливаться и кричали примерно следующие:

При обработке следующих пакетов произошли ошибки: language-selector-common language-selector:

Sub-process /usr/bin/dpkg returned an error code (1)

Вылечилось это довольно просто:

Переходим в терминале в папку  /var/lib/dpkg/info

cd /var/lib/dpkg/info

Теперь удаляем зависшие пакеты от root’a:

sudo rm language-selector-common.*
sudo rm language-selector.*

language-selector-common и language-selector меняем на свои пакеты.

Выполняем:

sudo apt-get -f install

Если не помогло, повторяем процедуру с удалением в папке:

cd /var/cache/apt/archives

P.S.:Если не нравится консоль, то можно всё делать и в наутилусе.

Тогда открываем папку не через cd, а:

sudo nautilus /var/lib/dpkq/info

Поделись статьёй с друзьями

Или просто поиграйся с кнопочками

  • При обработке следующих пакетов произошли ошибки systemd
  • При обработке следующих пакетов произошли ошибки samba common bin
  • При обработке следующих пакетов произошли ошибки pve manager proxmox ve
  • При обработке следующих пакетов произошли ошибки postfix
  • При обработке следующих пакетов произошли ошибки phpmyadmin