Во-первых, избегайте использования sudo. Выясните, к чему обращается ваш скрипт, к которому у вас нет доступа, и измените разрешения для этого файла, чтобы у вас был доступ, не прибегая к sudo.
Если вы не можете обойти эту потребность для sudo, после выполнения такой команды просто sudo chown файлы, которые он создает для себя.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Из man apt-get:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This
option, when used with install/remove, can omit any packages to permit APT
to deduce a likely solution. If packages are specified, these have to
completely correct the problem. The option is sometimes necessary when
running APT for the first time; APT itself does not allow broken package
dependencies to exist on a system. It is possible that a system's dependency
structure can be so corrupt as to require manual intervention (which usually
means using dselect(1) or dpkg --remove to eliminate some of the offending
packages). Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.
Вот где я нашел это очень полезным. Я выполнил команду dpkg для установки нескольких пакетов .deb, но установка завершилась неудачно, потому что некоторые зависимости отсутствовали.
Затем я выполнил
apt-get -f install
и установил точно зависимости которые были необходимы. Затем я смог повторно запустить команду dpkg, и все сработало.