sudo apt remove xclip sudo apt sudo E: Sub-process /usr/bin/dpkg returned an error code (1)

Bug #1751271 reported by mitya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

При удалении пакетов мною была допущена ошибка в тексте команды. Вот полное описание процесса:

beginner@beginner-desktop:~$ sudo apt remove xclip sudo apt
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  extlinux gdebi-core gnome-icon-theme libgksu2-0 linux-headers-4.10.0-28
  linux-headers-4.10.0-28-generic linux-image-4.10.0-28-generic
  linux-image-extra-4.10.0-28-generic sudo-ldap unetbootin-translations
Для их удаления используйте «sudo apt autoremove».
Будут установлены следующие дополнительные пакеты:
  sudo-ldap
Пакеты, которые будут УДАЛЕНЫ:
  apt apt-utils gdebi gksu sudo ubuntu-minimal unattended-upgrades unetbootin
  xclip
НОВЫЕ пакеты, которые будут установлены:
  sudo-ldap
ВНИМАНИЕ: Эти существенно важные пакеты будут удалены.
НЕ ДЕЛАЙТЕ этого, если вы НЕ представляете себе все возможные последствия!
  apt
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 9 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 420 kБ архивов.
После данной операции, объём занятого дискового пространства уменьшится на 6 050 kB.
То, что вы хотите сделать, может иметь нежелательные последствия.
Чтобы продолжить, введите фразу: «Да, делать, как я скажу!»
 ?] Да, делать, как я скажу!
Пол:1 http://ru.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 sudo-ldap amd64 1.8.16-0ubuntu1.5 [420 kB]
Получено 420 kБ за 20с (20,8 kБ/c)
(Чтение базы данных … на данный момент установлено 307670 файлов и каталогов.)
Удаляется unattended-upgrades (0.90ubuntu0.9) …
Удаляется ubuntu-minimal (1.361.1) …
Удаляется apt-utils (1.2.25) …
Удаляется apt (1.2.25) …
Удаляется gdebi (0.9.5.7ubuntu1) …
Удаляется unetbootin (608-1) …
Удаляется gksu (2.0.2-9ubuntu1) …
Удаляется sudo (1.8.16-0ubuntu1.5) …
You have asked that the sudo package be removed,
but no root password has been set.
Without sudo, you may not be able to gain administrative privileges.

If you would prefer to access the root account with su(1)
or by logging in directly,
you must set a root password with "sudo passwd".

If you have arranged other means to access the root account,
and you are sure this is what you want,
you may bypass this check by setting an environment variable
(export SUDO_FORCE_REMOVE=yes).

Refusing to remove sudo.
dpkg: ошибка при обработке пакета sudo (--remove):
 подпроцесс установлен сценарий pre-removal возвратил код ошибки 1
Удаляется xclip (0.12+svn84-4) …
Обрабатываются триггеры для man-db (2.7.5-1) …
Обрабатываются триггеры для libc-bin (2.23-0ubuntu10) …
Обрабатываются триггеры для gnome-menus (3.13.3-6ubuntu3.1) …
Обрабатываются триггеры для desktop-file-utils (0.22-1ubuntu5.1) …
Обрабатываются триггеры для bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index...
Обрабатываются триггеры для mime-support (3.59ubuntu1) …
При обработке следующих пакетов произошли ошибки:
 sudo
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: sudo 1.8.16-0ubuntu1.5
ProcVersionSignature: Ubuntu 4.13.0-36.40~16.04.1-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
Architecture: amd64
Date: Fri Feb 23 11:53:32 2018
ErrorMessage: подпроцесс установлен сценарий pre-removal возвратил код ошибки 1
InstallationDate: Installed on 2018-01-29 (24 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
SourcePackage: sudo
Title: package sudo 1.8.16-0ubuntu1.5 failed to install/upgrade: подпроцесс установлен сценарий pre-removal возвратил код ошибки 1
UpgradeStatus: No upgrade log present (probably fresh install)
VisudoCheck:
 /etc/sudoers: parsed OK
 /etc/sudoers.d/README: parsed OK

Revision history for this message
mitya (mitriev) wrote :
Revision history for this message
mitya (mitriev) wrote :

ребята, как мне исправить ситуация. В мире Linux я - новичок.

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hello Mitya, 'sudo' is the mechanism to gain root privileges on Ubuntu. Why are you trying to remove it?

Thanks

Revision history for this message
mitya (mitriev) wrote : Re: [Bug 1751271] Re: sudo apt remove xclip sudo apt sudo E: Sub-process /usr/bin/dpkg returned an error code (1)

Hello.

I am understand, that this is mechanism for giving the root. But I am is
beginner, runnig from win.

Many things I do with Internet guides from
(https://losst.ru/kak-udalit-paket-ubuntu) or (https://wiki.ubuntu.com/)
and etc.  When installation process  of some package continued wrong, I
need to open  several guides to know how to uninstall all dependent
packages and configuration files. All commands copied and paste to
Terminal. So this was my mistake of copy/paste. I saw an old command and
paste part of new comand. beginner.......

Execuse me  for troubling. I only wanted to restore operating system.
Thank you.

PS.   Maby you know the app, which work as Dicter on linux? This the
speech about OCR Translator for Linux, which works online.

24.02.2018 02:28, Seth Arnold пишет:
> Hello Mitya, 'sudo' is the mechanism to gain root privileges on Ubuntu.
> Why are you trying to remove it?
>
> Thanks
>

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hello Mitya, I think in your case you would be best served by running a command like:

sudo apt-get install sudo apt ubuntu-minimal

If apt-get is now completely useless, try:

sudo aptitude install sudo apt ubuntu-minimal

If that does not work, then I suggest asking a question on http://askubuntu.com/

I think askubuntu would also be a good place to look for a Dicter replacement. I know of translate-shell but it is probably not as convenient as Dicter.

Thanks

Revision history for this message
mitya (mitriev) wrote :

Thank you very much for your help. Linux Ubuntu - very not bad. :-)

On 27.02.2018 1:02, Seth Arnold wrote:
> Hello Mitya, I think in your case you would be best served by running a
> command like:
>
> sudo apt-get install sudo apt ubuntu-minimal
>
> If apt-get is now completely useless, try:
>
> sudo aptitude install sudo apt ubuntu-minimal
>
> If that does not work, then I suggest asking a question on
> http://askubuntu.com/
>
> I think askubuntu would also be a good place to look for a Dicter
> replacement. I know of translate-shell but it is probably not as
> convenient as Dicter.
>
> Thanks
>

Balint Reczey (rbalint)
Changed in sudo (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.