-
Guest
dpkg: dpkg — error: PATH is not set
#1
Post
by Guest » 2007-12-06 18:37
I am getting «dpkg: dpkg — error: PATH is not set» while running the command /usr/bin/dpkg openntpd.deb.
do you guys have any idea why I get this error?
-
Lavene
- Site admin
- Posts: 5095
- Joined: 2006-01-04 04:26
- Location: Oslo, Norway
#2
Post
by Lavene » 2007-12-07 04:38
You are getting the error because you are not doing it correctly. You shouldn’t need to give the path the /usr/bin in the first place, secondly you are not telling dpkg what to do with the package. Assuming you are going to install it you should only need to do
Tina
![]()
-
- #1
Hello,
I’m new to OMV and I have some trouble in installation of plugins.
Here is the message I have :
Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: openmediavault-nginx 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 0 B/36.0 kB of archives. After this operation, 258 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! openmediavault-nginx debconf: delaying package configuration, since apt-utils is not installed Authentication warning overridden. dpkg: error: PATH is not setAlles anzeigen
A reboot solve the problem, but it comes back after while (between 2 plugins installations sometimes).
My OMV installation is a fresh wheezy installation where I installed manually OMV.
Does someone have an idea about my problem?
Thanks for your help.
Tillstaff
-
- Offizieller Beitrag
- #2
Hard to say what the problem is since you didn’t use the OMV install media. DId you install apt-utils? What instructions did you follow to install omv? Did you google the path error? Lots of results.
-
- #3
Hello,
Apt-utils is well installed, there is no problem with the install of package using SSH. I have the problem only with the OMV GUI.
For the installation, I followed this guide : http://forums.openmediavault.o…ult-on-Debian-7-x-Wheezy/
I have only one harddisk drive on my online server, so I can’t install OMV by default.Tillstaff
-
- #4
Hello,
After some investigations, I found a log about the failed command.
Start-Date: 2015-05-02 22:00:51Commandline: apt-get --yes --force-yes --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::=--force-confold install openmediavault-omvextrasorg Upgrade: openmediavault-omvextrasorg:amd64 (1.17, 1.18) Error: Sub-process /usr/bin/dpkg returned an error code (2) End-Date: 2015-05-02 22:00:53The same command under ssh/root was ok.
root@host:/var/log/apt# apt-get --yes --force-yes --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::=--force-confold install openmediavault-omvextrasorg Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: openmediavault-omvextrasorg 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. Need to get 0 B/257 kB of archives. After this operation, 12.3 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! openmediavault-omvextrasorg Authentication warning overridden. (Reading database ... 55095 files and directories currently installed.) Preparing to replace openmediavault-omvextrasorg 1.17 (using .../openmediavault-omvextrasorg_1.18_all.deb) ... Unpacking replacement openmediavault-omvextrasorg ... Processing triggers for openmediavault ... Restarting engine daemon ... Setting up openmediavault-omvextrasorg (1.18) ... OK OK OK OK OK OK OK OK OK OK OK OK Processing triggers for openmediavault ... Updating locale files ... Updating file permissions ... Purging internal cache ... Restarting engine daemon ... Creating index of upgradeable packages ... Creating index of OpenMediaVault plugins ...Alles anzeigen
Do you know how the update command is launched through the web GUI? With wich user?
Tillstaff
-
- #5
Hello,
I tried to update OMV to 2.0.5 version and it’s still the same.
Except I have an error message with more details.Erreur #4000: exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get --yes --auto-remove --purge remove openmediavault-nginx 2>&1': Reading package lists... Building dependency tree... Reading state information... The following packages will be REMOVED: openmediavault-nginx* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 258 kB disk space will be freed. dpkg: error: PATH is not set Creating index of upgradeable packages ... Creating index of OpenMediaVault plugins ... E: Sub-process /usr/bin/dpkg returned an error code (2)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170 Stack trace: #0 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array) #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Plugin', 'remove', Array, Array, 1) #4 {main}Alles anzeigen
Thanks in advance for your help.
Tillstaff
-
- #6
Hello, I’ve got same issue, any news about it ?
Thank you !
-
- #7
I answer to myself :
I’ve got a server in a server provider named OVH with specifi kernels, I choose Debian 7 64 bits for installation then I’ve done this to have a fully OMV on the server
I follow these steps :
# Note: For OMV-extra-plugin : Do these steps before installing OMV: apt-get update echo "deb http://http.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/backports.list apt-get update apt-get -t wheezy-backports install linux-image-amd64 # Note: Specific OVH mv /etc/grub.d/06_OVHkernel /etc/grub.d/60_OVHkernel update-grub reboot apt-get install linux-headers-$(uname -r) # Note: Specific OVH, dns resolution for docker doesn't work echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null echo "nameserver 8.8.8.8" | tee /etc/resolvconf/resolv.conf.d/base > /dev/null # Note: You would be able to install all plugin, and more sepcificly the docker plugin now ! # Note: Fix issue : "dpkg: error: PATH is not set" echo "PATH=$PATH:/usr/local/sbin/:/usr/sbin/:/sbin" >> /etc/login.defs # Note: Install OMV echo "deb http://packages.openmediavault.org/public kralizec main" > /etc/apt/sources.list.d/openmediavault.list apt-get update # Note: You may be will have an error like NO_PUBKEY XXXXXXXXXX, then do : apt-get install openmediavault-keyring libapache2-mod-php5 apt-get update # Note: You will get a warning that the PGP Key can't be found. Thats fine. apt-get install openmediavault-keyring postfix # Note: You will get a warning that the package 'openmediavault-keyring' can't be authenticated. You're fine to ignore that warning and install it anyways. apt-get update apt-get install openmediavault omv-initsystem shutdown -r nowAlles anzeigen
Now I can install all applications I want via Docker !!! YEAH !
-
- #8
For the main subject of this thread, you are only interested by :
# Note: Fix issue : "dpkg: error: PATH is not set" echo "PATH=$PATH:/usr/local/sbin/:/usr/sbin/:/sbin" >> /etc/login.defsThe you may have to reboot to take effect
-
- #9
This problem just started happening to me recently and I’m not sure why. Editing login.defs doesn’t help. `apt-utils` is installed. Here’s what I’m getting from the GUI:
The following NEW packages will be installed: openmediavault-couchpotato 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/17.3 kB of archives. After this operation, 54.3 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! openmediavault-couchpotato debconf: delaying package configuration, since apt-utils is not installed Authentication warning overridden. dpkg: error: PATH is not set Creating index of upgradeable packages ... Creating index of openmediavault plugins ... E: Sub-process /usr/bin/dpkg returned an error code (2) <<< *************************************Alles anzeigen
However:
root@ezra:~# apt-show-versions apt-utils apt-utils/wheezy uptodate 0.9.7.9+deb7u7 root@ezra:~#And:
root@ezra:~# apt-get install openmediavault-couchpotato Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: openmediavault-couchpotato 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/17.3 kB of archives. After this operation, 54.3 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! openmediavault-couchpotato Install these packages without verification [y/N]? y Selecting previously unselected package openmediavault-couchpotato. (Reading database ... 82499 files and directories currently installed.) Unpacking openmediavault-couchpotato (from .../openmediavault-couchpotato_1.0.3_all.deb) ... Processing triggers for openmediavault ... Restarting engine daemon ... Setting up openmediavault-couchpotato (1.0.3) ... Adding couchpotato user... Initial configuration. Processing triggers for openmediavault ... Updating locale files ... Updating file permissions ... Purging internal cache ... Restarting engine daemon ... Creating index of upgradeable packages ... Creating index of openmediavault plugins ... root@ezra:~#Alles anzeigen
This is on a long time install from the installation media. Though I did have to mess with grub after installing openmediavault-zfs. I’m not sure what that would have to do with this error though.
-
- #10
@ikogan Were you able to fix this issue? I get it in your omv-docker image (which otherwise works like a charm!).
-
- #11
Is it with the couchpotato package or in general? I’m not having it happen anymore but I don’t remember what I did.
-
- #12
I get dpkg: error: PATH is not set for every package I try to install/upgrade when done via the «update manager». Manually running apt-get works fine though… This is on a fresh docker image.
-
- #13
I encountered the same problem months ago, could never figure it out…
Greetings
David -
- Offizieller Beitrag
- #14
I’ve seen people post about this many times but have no idea what causes it. Never been able to reproduce it.
-
- #15
It’s like the «web interface user» does not have PATH set… Running apt-get as a «normal» user in cli works fine.
-
- Offizieller Beitrag
- #16
Just don’t know how the user looses the path settings.
-
- #17
I remember doing something specific to fix it and I can’t remember what…
-
- #18
It seems this problem stems from a bug in setproctitle(): when omv-engined calls setproctitle($cmdName), it overwrites the first 69 bytes of the environment with spaces. This is easy to see by by cat’ing the «environ» file in the /proc entry of the process.
This problem is described here: http://php.net/manual/en/function.setproctitle.php#112003
On my setup, the problem started showing up when I restarted the engine with «service openmediavault-engined restart», as per @SVS’s Guide. The terse environment due to the use of the «service» command moved the PATH to the beginning of the environment, causing it to be overwritten upon setproctitle() invocation. When I restarted the engine manually («/etc/init.d/openmediavault-engined restart»), the larger environment pushed the PATH variable far enough to be spared.
-
- Offizieller Beitrag
- #19
It is just odd that I have never had this problem on any of my systems including all the test VMs.
-
- #20
Thanks! I’ll make sure to test with cli_set_process_title() instead.
Debian Bug report logs —
#639997
dpkg fails if PATH is not set
Reported by: Carl Fürstenberg <azatoth@gmail.com>
Date: Thu, 1 Sep 2011 12:27:02 UTC
Severity: minor
Found in version dpkg/1.16.0.3
Fixed in version dpkg/1.16.1
Done: Guillem Jover <guillem@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#639997; Package dpkg.
(Thu, 01 Sep 2011 12:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Carl Fürstenberg <azatoth@gmail.com>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Thu, 01 Sep 2011 12:27:19 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dpkg Version: 1.16.0.3 Severity: serious Justification: Policy 9.9 Trying to run dpkg under a clean environment fails: # env -i dpkg -i 3dchess_0.8.1-17_amd64.deb dpkg: error: error: PATH is not set. Policy 9.9 says "A program must not depend on environment variables to get reasonable defaults.". I do not feel a double error is a "reasonable default" -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dpkg depends on: ii coreutils 8.5-1 GNU core utilities ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co ii libc6 2.13-10 Embedded GNU C Library: Shared lib ii libselinux1 2.0.98-1.1 SELinux runtime shared libraries ii xz-utils 5.0.0-2 XZ-format compression utilities ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 0.8.15.5 Advanced front-end for dpkg -- no debconf information
Severity set to ‘minor’ from ‘serious’
Request was from Julien Cristau <julien.cristau@logilab.fr>
to control@bugs.debian.org.
(Thu, 01 Sep 2011 12:42:26 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#639997; Package dpkg.
(Thu, 01 Sep 2011 13:27:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Thu, 01 Sep 2011 13:27:10 GMT) (full text, mbox, link).
Message #12 received at 639997@bugs.debian.org (full text, mbox, reply):
Hi! On Thu, 2011-09-01 at 14:17:23 +0200, Carl Fürstenberg wrote: > Package: dpkg > Version: 1.16.0.3 > Severity: serious > Justification: Policy 9.9 > > Trying to run dpkg under a clean environment fails: > > # env -i dpkg -i 3dchess_0.8.1-17_amd64.deb > dpkg: error: error: PATH is not set. > > Policy 9.9 says "A program must not depend on environment variables to > get reasonable defaults.". I do not feel a double error is a > "reasonable default" About the double “error:” string, I thought I had fixed that already, in any case it's now in my local tree, will be included in my next push. About that section of policy, well I don't think it's talking about global system information like PATH, but about specific application configuration. In this case if PATH is not set we cannot execute any helper programs (and I'm not going to hardcode their paths), neither can the maintainer sctipts. More so I doubt many programs will work properly with a proper PATH variable. IMO policy needs to be clarified. thanks, guillem
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#639997; Package dpkg.
(Sat, 03 Sep 2011 23:21:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Sat, 03 Sep 2011 23:21:03 GMT) (full text, mbox, link).
Message #17 received at 639997@bugs.debian.org (full text, mbox, reply):
On Sat, Sep 03, 2011 at 01:08:42PM -0500, Jonathan Nieder wrote: > Carl Fürstenberg wrote: > > Per resolution of bug #639997 I would like to ask for clarification of > > section 9.9 in the polcy regarding environmental variables, and if it > > implicitly excludes "global" environmental variables like PATH, or if > > all programs must include themself a sensible default PATH as fallback. > > The intent of policy §9.9 seems to be disallow a public-facing program > that requires adding > > PATH=/opt/my-program/bin:$PATH > > to /etc/profile in order to work correctly (yes, such programs exist! > See /usr/bin/iceweasel for an example --- firefox-bin --- of a similar > kind of program). From that point of view, it should be clear that it > is not the intent of the current policy to force maintainers' hands in > cases like #639997. Agreed. The point was to avoid the situation where individual packages come with instructions to edit your .bashrc or similar before they would work at all - regrettably not an uncommon practice among developers who haven't thought about how that doesn't scale up sensibly - not to forbid packages relying on the usual environment that any process gets unless you take special measures to prevent it doing so. Note in particular that init sets a reasonable default PATH, as does anything that starts a PAM session, so something has to be deliberately awkward to unset that. It would be actively harmful for every program to set its own default PATH to defend against this particular species of awkwardness, because then we would have to run around trying to make sure that all those default PATH settings were consistent. Falling back to standard library behaviour (such as the execlp default you mention) or exiting with an error message both seem perfectly reasonable responses to me. Incidentally, although policy is not explicit on the subject, I also think that this (much like the admonition in 10.4 about script extensions) clearly only applies to programs installed on the system PATH and thus intended to be called directly by users. I see no problem with a program in /usr/lib/$package/ that expects to be called by some other program with a particular environment, or with a CGI script that expects to be called with the usual CGI environment variables set by web servers. > Can you think of an alternative phrasing that makes that clearer? To > be clear: the content of the environment is not supposed to be > harmless or irrelevant to all programs. For example, a bad setting > for PATH, EDITOR, or LD_PRELOAD is going to break almost anything, and > that's _good_ (because predictable). The only point here is that > programs should not require special settings (e.g., extra PATH > entries) of their own in order to run correctly, so they can be used > out of the box. Yes. How about: diff --git a/policy.sgml b/policy.sgml index bb424ed..3a8bd90 100644 --- a/policy.sgml +++ b/policy.sgml @@ -7449,8 +7449,8 @@ Reloading <var>description</var> configuration...done. <heading>Environment variables</heading> <p> - A program must not depend on environment variables to get - reasonable defaults. (That's because these environment + A program must not depend on its own custom environment variables + to get reasonable defaults. (That's because these environment variables would have to be set in a system-wide configuration file like <file>/etc/profile</file>, which is not supported by all shells.) My only concern is that people might rules-lawyer about how such-and-such an environment variable isn't specific to a single program but a group of programs and so is somehow not covered by this; JAVA_HOME comes to mind. Do we need to be explicit about this or is it clear enough? There are actually very few environment variables that I think a program can absolutely rely on being present (as opposed to breaking if they're set to crazy values; that's not what 9.9 is talking about), so maybe we can just enumerate the exceptions. The only ones that come to mind are PATH, TERM, and possibly HOME. But maybe this is a can of worms; having an enumerated list that looks as though it should be complete but in fact isn't would be bad. Better, surely, to set general expectations and allow the use of common sense. > Depending on the program, some misbehaviors of this kind may be bugs > and others may not. In this example, the segfault feels like a bug > while respecting a lack-of-PATH is just a historical misfeature, > unless the program can be used for privilege escalation that way, in > which case the lack of PATH scrubbing would have been a serious bug > already. I haven't thought carefully about whether the line between > is worth documenting in policy. I agree with your gut feel about where the line goes, but I think this is already likely to be clear enough to competent developers and so I don't particularly feel this needs documenting in policy. Unless Carl has an explicit real-world situation in mind, the case of an unset PATH seems contrived enough that I don't think policy needs to spell out its exact behaviour in detail. In the particular case of #639997, I would also note that dpkg is acting to ensure that this statement in policy 6.1 holds, which serves to avoid maintainer scripts needing to be peppered with fragile absolute paths all over the place: Before installation is started, the package management system checks to see if the programs ldconfig, start-stop-daemon, install-info, and update-rc.d can be found via the PATH environment variable. Thus, independent of this discussion, dpkg has specific authorisation from policy to perform the check in question. 6.1 goes on to say: Maintainer scripts should also not reset the PATH, though they might choose to modify it by prepending or appending package-specific directories. These considerations really apply to all shell scripts. This clearly supports the position that programs do not need to take special measures to set their own PATH. -- Colin Watson [cjwatson@debian.org]
Added tag(s) pending.
Request was from Guillem Jover <guillem@debian.org>
to control@bugs.debian.org.
(Fri, 09 Sep 2011 08:48:15 GMT) (full text, mbox, link).
Message sent on
to Carl Fürstenberg <azatoth@gmail.com>:
Bug#639997.
(Fri, 09 Sep 2011 08:48:27 GMT) (full text, mbox, link).
Message #22 received at 639997-submitter@bugs.debian.org (full text, mbox, reply):
tag 639997 pending
thanks
Hello,
Bug #639997 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:
http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=920596d
---
commit 920596da263ed1342668a9fe5b59f8bbb52445dd
Author: Guillem Jover <guillem@debian.org>
Date: Thu Sep 1 15:17:35 2011 +0200
dpkg: Fix double “error:” string in missing PATH error output
Closes: #639997
diff --git a/debian/changelog b/debian/changelog
index 468f3ac..f50c38c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -207,6 +207,8 @@ dpkg (1.16.1) UNRELEASED; urgency=low
* Update alternative links only if they change. This allows for a
read-only file system and a writable database. Closes: #636700
Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
+ * Fix double “error:” string in dpkg missing PATH error output.
+ Closes: #639997
[ Updated dpkg translations ]
* German (Sven Joachim). Closes: #620312
Message sent on
to Carl Fürstenberg <azatoth@gmail.com>:
Bug#639997.
(Fri, 09 Sep 2011 08:48:29 GMT) (full text, mbox, link).
Message #25 received at 639997-submitter@bugs.debian.org (full text, mbox, reply):
tag 639997 pending
thanks
Hello,
Bug #639997 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:
http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=8ed2e04
---
commit 8ed2e04c2b1bfa247e34da01c0e84612ce7dc84b
Author: Guillem Jover <guillem@debian.org>
Date: Sun Sep 4 16:07:29 2011 +0200
dpkg-deb: Do not warn on strange timestamps
The external extractor is only used on dpkg-deb -x (and friends), which
is only used by dpkg when extracting the control member. The internal
dpkg tar extractor never warns on timestamps, and there's no point for
dpkg to induce those warnings on the control extraction either.
Closes: #640298
diff --git a/debian/changelog b/debian/changelog
index f50c38c..2d96535 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -209,6 +209,8 @@ dpkg (1.16.1) UNRELEASED; urgency=low
Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
* Fix double “error:” string in dpkg missing PATH error output.
Closes: #639997
+ * Do not warn on strange timestamps when unpacking with dpkg-deb.
+ Closes: #639997
[ Updated dpkg translations ]
* German (Sven Joachim). Closes: #620312
Reply sent
to Guillem Jover <guillem@debian.org>:
You have taken responsibility.
(Fri, 23 Sep 2011 05:23:05 GMT) (full text, mbox, link).
Notification sent
to Carl Fürstenberg <azatoth@gmail.com>:
Bug acknowledged by developer.
(Fri, 23 Sep 2011 05:23:05 GMT) (full text, mbox, link).
Message #30 received at 639997-close@bugs.debian.org (full text, mbox, reply):
Source: dpkg
Source-Version: 1.16.1
We believe that the bug you reported is fixed in the latest version of
dpkg, which is due to be installed in the Debian FTP archive:
dpkg-dev_1.16.1_all.deb
to main/d/dpkg/dpkg-dev_1.16.1_all.deb
dpkg_1.16.1.dsc
to main/d/dpkg/dpkg_1.16.1.dsc
dpkg_1.16.1.tar.bz2
to main/d/dpkg/dpkg_1.16.1.tar.bz2
dpkg_1.16.1_amd64.deb
to main/d/dpkg/dpkg_1.16.1_amd64.deb
dselect_1.16.1_amd64.deb
to main/d/dpkg/dselect_1.16.1_amd64.deb
libdpkg-dev_1.16.1_amd64.deb
to main/d/dpkg/libdpkg-dev_1.16.1_amd64.deb
libdpkg-perl_1.16.1_all.deb
to main/d/dpkg/libdpkg-perl_1.16.1_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 639997@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Guillem Jover <guillem@debian.org> (supplier of updated dpkg package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 23 Sep 2011 06:00:11 +0200
Source: dpkg
Binary: libdpkg-dev dpkg dpkg-dev libdpkg-perl dselect
Architecture: source amd64 all
Version: 1.16.1
Distribution: unstable
Urgency: low
Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
Changed-By: Guillem Jover <guillem@debian.org>
Description:
dpkg - Debian package management system
dpkg-dev - Debian package development tools
dselect - Debian package management front-end
libdpkg-dev - Debian package management static library
libdpkg-perl - Dpkg perl modules
Closes: 147583 231089 245322 293280 308082 454694 489771 525160 526774 552123 560070 560251 603435 604241 606839 608260 610940 615899 616609 619131 620312 620490 620520 621066 622094 626684 627462 628055 628726 629582 630533 630996 631435 631439 631494 631547 631757 631808 632168 632937 633539 633627 634510 634961 635467 635683 636700 637096 637564 638291 639229 639997 640198 640298 641834
Changes:
dpkg (1.16.1) unstable; urgency=low
.
[ Raphaël Hertzog ]
* Dpkg::Deps: Implement new "reset" method and bump module version to 1.01
due to this.
* Improved description of --search in dpkg-query(1). Closes: #621066
Thanks to Lars Buitinck <larsmans@gmail.com> for the patch.
* Let update-alternatives fsync() its administrative files before
moving them in place to avoid empty files with some filesystems.
LP: #344019
* Tighten the regexp used by dpkg-source to ignore the .pc directory of
quilt. Thanks to Mike Hommey for noticing the problem.
* Change behaviour of dpkg-source's --extend-diff-ignore to also
extend the current diff-ignore if it has already been set.
* Fix dependency checking code to consider a dependency on a virtual
package provided by a package in triggers-pending status as satisfied.
* Do not fail when encountering a pre-dependency in triggers-awaited state,
instead process the awaited triggers. Closes: #526774
* "any" no longer hides "all" in the Architecture field of a .dsc.
* Fix dpkg --remove to really remove the triggers from the various
internal files in /var/lib/dpkg/info/triggers/. Closes: #525160
* Avoid a perl warning in dpkg-gensymbols when no symbols file has been
generated (because it would have been empty). Closes: #626684
* Re-enable the Package-List field but drop the Architecture column since we
have no clear use case yet. It can always be added later on.
Also drop the source line since it duplicates other fields.
Closes: #619131
* Add the extraction part of Dpkg::Source::Package to the supported API.
Useful to extract source packages without having to depend on dpkg-source
(and hence dpkg-dev).
* Add the Dpkg::Vendor module to the supported API. Useful for lintian
when dpkg-dev is absent.
* Check presence of required parameters in dpkg-vendor. Closes: #628726
Thanks to Niels Thykier <niels@thykier.net> for the patch.
* Avoid a Perl warning in dpkg-buildflags when HOME is not set.
Closes: #635467
* dpkg-source can now also use debian/source/local-patch-header (that is not
included in the generated source package) instead of
debian/source/patch-header. Closes: #629582
* Changed dpkg-source --after-build to automatically unapply patches that it
has applied during --before-build.
* Fix two possible causes for the assertion failure "pigp->trigpend_head".
LP: #798793, #424358 Closes: #560251
* Use "special" instead of "particular" to qualify the "3.0 (custom)" format
in dpkg-source(1). Closes: #631435
* Add some supplementary checks to ensure debian/control has the required
fields. Closes: #631439
* dpkg-gensymbols(1): document syntax of comments. Closes: #630996
* Allow empty lines in symbols files to better delimit multiple libraries.
Thanks to Cyril Brulebois <kibi@debian.org> for the patch.
* dpkg: if "prerm upgrade" fails when downgrading, do not try to run
"prerm failed-upgrade" with the prerm of the oldest prerm, it can't work
around a bug of a newer prerm anyway.
* dpkg: support new "interest-noawait" and "activate-noawait" trigger
directives.
* dpkg-buildflags(1): make it clear that DEB_*_(SET|APPEND) environment
variables are meant for users and should not be used by packages.
* update-alternatives: do not allow to reuse a slave link in another
slave alternative. Closes: #631547
* Improve dpkg-source's logic to identify ignored files. Closes: #632168
* Fix a small typo in dpkg-source(1). Closes: #632937
* Reword the description of dpkg-source --before-build and --after-build
to be clearer. Closes: #608260
* dpkg-buildpackage no longer exports the compiler flags. Closes: #560070
Packages must directly call dpkg-buildflags to retrieve them.
* dpkg-buildflags supports a prepend command to modify the build
flags. Particularly useful for package maintainers who don't want
their supplementary flags to take precedence over user submitted
flags.
* Add new --dump action to dpkg-buildflags and make it the default action.
Closes: #603435
* dpkg-mergechangelogs now checks the return value of the close() call.
Thanks to Niels Thykier <niels@thykier.net> for the patch. Closes: #633539
* Similar changes to dpkg-shlibdeps and dpkg-gencontrol, also by Niels.
* Fix update-alternatives to not remove a real file when dropping a
symlink for a slave that's not provided by the new current choice.
Closes: #633627
* Improve dpkg-source's error message complaining about the lack
of the upstream tarball. Closes: #634510
* Add some common makefile snippets for use in rules files in
/usr/share/dpkg/: default.mk, architecture.mk, buildflags.mk, pkg-info.mk,
vendor.mk Closes: #606839
* Fix the dpkg-divert test-suite to also skip test that would fail if run
under root. Closes: #634961
* Change merge conflict separators created by dpkg-mergechangelogs to match
the usual norm of being composed of 7 characters. LP: #815700
* With source format 2.0 and 3.0 (quilt), dpkg-source now fails by default
when upstream changes have not been recorded in a quilt patch. The new
--commit operation can be used to properly record the changes before-hand.
LP: #797839
And it fails before installing the automatic patch in debian/patches/
Closes: #615899
* dpkg-buildflags now supports "--export=configure" to output compilation
flags on a single line with double quotes as delimiter of the various
values. It also uses DEB_<flag>_MAINT_<op> to let the maintainer
extend the build flags to use. Last but not least, it can now also strip
options from the returned build flags.
* Fix possible segfault of dpkg in findbreakcycle(). LP: #733414
* dpkg-source now properly cleans up the temporary tarball generated for
native formats in case of unexpected interruption. Closes: #631494
* Fix simplification logic of union dependencies. Closes: #637564
* Fix dpkg's handling of a hardlink pointing to a conffile. Closes: #638291
* Add example of extend-diff-ignore's usage in dpkg-source(1).
Closes: #640198
* dpkg-buildflags now returns hardening flags by default. Closes: #489771
They can be individually enabled/disabled via DEB_BUILD_MAINT_OPTIONS,
see dpkg-buildflags(1). Thanks to Kees Cook for his help.
.
[ Guillem Jover ]
* Install deb-src-control(5) man pages in dpkg-dev. Closes: #620520
* Add ‘.gitmodules’ to the default dpkg-source ignore lists. Closes: #620490
* Document in dpkg-query(1) man page that on --listfiles each list of
files per package name is separated by a blank line. Same goes for
--status and --print-avail.
* Use execvp(3) unconditionally in command_exec(). Making the call always
fallback to use the system shell in case of error, such as with empty
maintainer scripts. Thanks to Jonathan Nieder <jrnieder@gmail.com>.
Closes: #622094
* Improve deb-split(5) format description by splitting debian-split
member contents into a list.
* Switch to debhelper compatibility level 7.
- Use dh_prep instead of deprecated “dh_clean -k”.
* Bump Standards-Version to 3.9.2 (no changes needed).
* Generate filenames following current conventions on “dpkg-split --join”,
by including the architecture in the debian-split member of a split
package and using underscores to separate filename parts.
* Support conffiles with spaces when diffing them. Closes: #147583
* Allow installing packages with bogus versions with new
--force-bad-version.
* Do not fail when unpacking a diverted hardlink. Closes: #245322
Based on a patch by Christopher Baines <cbaines8@gmail.com>.
* Document in dpkg-deb(1) that --fsys-tarfile will always process the
input archive sequentially. Closes: #616609
* Remove long non-functional --new and --old dpkg-deb option handling
from dpkg which were being treated as dpkg commands.
* Remove reference to --nocheck dpkg-deb option from dpkg man page as
the latter does not pass it to the former.
* Clarify the current dpkg behaviour when running the dpkg-deb and
dpkg-query back-ends, of not passing through back-end specific options
when running them from dpkg. Closes: #610940
* Use “unselected” as an adjective in dpkg output messages instead of
“deselected”. Closes: #231089
* Clarify exit status in dpkg-split and start-stop-daemon --help output.
* Clarify “EXIT STATUS” section in man pages by using a table.
* Add a --status command to start-stop-daemon returning LSB Init Script
status action exit codes.
* Add start-stop-daemon process name kernel limits for Solaris, NetBSD,
OpenBSD, FreeBSD and Darwin.
* On package removal, keep only directories actually containing conffiles,
and not directories just matching the substring in the conffile or the
directory itself. Thanks to Ondřej Surý <ondrej@debian.org>.
* On purge correctly remove symlinks acting as directories, when they are
not being used by any other package's files.
* Do not lose track of parent directories on removal so that they can
be properly cleaned up on purge if not used by any other package.
Based on a patch by Ondřej Surý <ondrej@debian.org>. Closes: #454694
* Add ‘.hgsigs’ to the default dpkg-source ignore lists.
Based on a patch by Jakub Wilk <jwilk@debian.org>. Closes: #627462
* Do not allow blank lines in field values. Closes: #308082
* Do not warn on missing architecture on packages in config-files state,
but then make sure the architecture field is usable. Closes: #604241
* Run du with --apparent-size when generating the Installed-Size field in
dpkg-gencontrol to get consistent results independent of build system.
Thanks to Ludovic Brenta <ludovic@ludovic-brenta.org>. Closes: #630533
* Do not fail to unpack shared directories missing on the file system
from packages being replaced by other packages. Closes: #631808
* Do not require programs to define thisname, provide two new functions
to handle the program name (dpkg_set_progname and dpkg_get_progname).
Closes: #631757
* Man pages cleanup:
- Rename “USAGE” dselect(1) section to “ACTIONS” and clarify they can
be performed interactively or from command line.
- Add missing built-in methods to dselect(1).
- Add missing escaping to field dashes in deb-control(5).
- Use dashes instead of underscores for variable text.
- Clarify that several front-end fields are not dselect specific in
dpkg-query(1).
- Use [option...] instead of [options] and friends.
- Use italics or bold instead of surrounding the text with <>.
- Correctly format text with bold and italics.
- Use minus signs and hyphens consistently in man pages.
- Fix reference to /etc/dpkg/dselect.cfg.d instead of dpkg.cfg.d in
dselect(1).
- Add missing optional group|gid --chuid argument in start-stop-daemon(8).
* Refer to Sources and Packages files as part of a repository instead of
as being of exclusive use or owned by APT, which has never been the case.
* Unify somewhat dpkg-maintscript-helper --help output with other commands.
* Add build-indep and build-arch targets as aliases for build in
debian/rules.
* Use the perl interpreter found by configure to call dpkg-architecture.pl
in the m4 DPKG_ARCHITECTURE macro.
* Add new --verbose option to dpkg-deb and change --extract to honour it.
Closes: #293280
* Add new --raw-extract option to dpkg-deb combining --control and
--extract. Closes: #552123
* Defer hardlink renames so that there's never a point were the new
file contents are accessible from the final path before they have
been fsync()ed and cannot be executed causing ETXTBSY when trying
to open the to be installed paths for writing.
Thanks to Jonathan Nieder <jrnieder@gmail.com>. Closes: #635683
* Clarify the default dpkg-deb compression-levels on the man page.
* Clarify dpkg --update-avail usage error message. Closes: #628055
* Change Dpkg::Compression default values depending on the compressor
used, and as such dpkg-source inherits this functionality.
Prompted by Timo Juhani Lindfors <timo.lindfors@iki.fi>.
* Print an actual error or warning message instead of assert()ing on
readlink()/stat() size discrepancies. Closes: #639229
* Update alternative links only if they change. This allows for a
read-only file system and a writable database. Closes: #636700
Based on a patch by Salvatore Bonaccorso <carnil@debian.org>.
* Fix double “error:” string in dpkg missing PATH error output.
Closes: #639997
* Do not warn on strange timestamps when unpacking with dpkg-deb.
Closes: #640298
* Reduce dpkg-trigger binary size by refactoring libdpkg modules so that
it does not end up pulling triglib.
* Reduce dpkg-deb binary size by refectoring libdpkg modules so that it
does not end up pulling triglib.
* Do not fail on --compare-version when generating parse warnings.
Existing packages with invalid versions should not fail on their
maintainer scripts due to that.
* Use the user name (instead of the user id) when setting the supplementary
groups in start-stop-daemon. Closes: #641834
* Use --srcdir and --destdir po4a options, and bump Build-Depends version
to 0.36.4.
.
[ Updated dpkg translations ]
* German (Sven Joachim). Closes: #620312
* Swedish (Peter Krefting).
* French (Christian Perrier).
.
[ Updated man page translations ]
* French (Christian Perrier).
* German (Helge Kreutzmann) including improvement by "Flo".
* Swedish (Peter Krefting).
.
[ Updated scripts translations ]
* French (Christian Perrier, Sylvestre Ledru). Closes: #637096
* German (Helge Kreutzmann).
* Swedish (Peter Krefting).
Checksums-Sha1:
d8d9d5a8a9f134459987f5b187527c303498e902 1364 dpkg_1.16.1.dsc
9e8176c88fe2b31782ddae6d0a8f599c7e540e8d 5432348 dpkg_1.16.1.tar.bz2
a830d5633da7a96d5208a6f8a7a97e24865e7913 552790 libdpkg-dev_1.16.1_amd64.deb
470de180ac9fa5c95abfcf30a4d9a46cab269107 2218686 dpkg_1.16.1_amd64.deb
6e6ddbb681d1bbbb971299932f99d43a35f33750 1006884 dselect_1.16.1_amd64.deb
b8394b2dfd4291ff206dec00e53c723fa0be902e 923836 dpkg-dev_1.16.1_all.deb
7940dc852c11e3a386ce014cd39ab7ce30e34f30 806604 libdpkg-perl_1.16.1_all.deb
Checksums-Sha256:
3f1649796856228545ba610df340b47b923a31f6ebe8765c8f48e1dac7f11391 1364 dpkg_1.16.1.dsc
f9363628a6fa1c24a1e9c41bd8977f9d5a7010bfca3ac9a6f8bf500e7e8df52b 5432348 dpkg_1.16.1.tar.bz2
96910fa1ed1371aa2b9e3147eecdf67e4e5f61fe7d7aaa97c27254f55a92c56d 552790 libdpkg-dev_1.16.1_amd64.deb
d0e9691aa05c1b2567b06df0856ea05a211234e40dbc955e0266fa45fb32370c 2218686 dpkg_1.16.1_amd64.deb
4a1c44c98791f1aa1b59bfc4890a3f6aeef70319f930e1ca9b7354ede8e78125 1006884 dselect_1.16.1_amd64.deb
885d13576b93262151b5e920dd8971072668c0bd36b103ab0e82b97fcef52fcd 923836 dpkg-dev_1.16.1_all.deb
b6fa511f2b059a85e3d5938c73a5805893a28438785a974bf0e46a53dc5da975 806604 libdpkg-perl_1.16.1_all.deb
Files:
c1e7858da79770b64427a99cc628889c 1364 admin required dpkg_1.16.1.dsc
b94c9ed2493fd9dbb53a96f2e7f674ce 5432348 admin required dpkg_1.16.1.tar.bz2
99bbb9c901e7462d06472a27ffb6d67f 552790 libdevel optional libdpkg-dev_1.16.1_amd64.deb
bed79ea34df74b42ebbc2ed13d3ed4cb 2218686 admin required dpkg_1.16.1_amd64.deb
bd018624eca8f1cf04a0b588a6338622 1006884 admin optional dselect_1.16.1_amd64.deb
78c00b38545303cf8c8fcd4dd83f30a3 923836 utils optional dpkg-dev_1.16.1_all.deb
f604975f555da4f710167be2b0d468f7 806604 perl optional libdpkg-perl_1.16.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk58Dr0ACgkQuW9ciZ2SjJtZVwCgkPiancaq9ojJ2L0b8uEEjSC7
87YAoKtmUCgXZS/CfakXx860t2ijO84f
=Cq2h
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 31 Oct 2011 07:43:12 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Feb 9 10:25:58 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.
dpkg -i opera-stable_76.0.4017.123_amd64.deb
dpkg: предупреждение: «ldconfig» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым
dpkg: предупреждение: «start-stop-daemon» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым
dpkg: ошибка: в каталогах PATH не найдено 2 ожидаемые программы или исполняемых файла
Замечание: В PATH суперпользователя обычно должны присутствовать /usr/local/sbin, /usr/sbin и /sbin
Прописываю в /root/.bashrc строку:
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Всё равно не работает
Перегрузил компьютер -всё заработало 
если коротко:
su
и
su -
это разные команды!
Понятно. А насчет этой отстутствующе по умолчанию строки в дебиане. Даже в сыром новоиспеченном RC1 RockyLinux (замена Сентоса 8 ) не надо эту строку добавлять в bashrc. А в Дебиане начиная где-то с 7 выпуска надо вручную зту строку добавлять
Это специально так сделали, чтобы люди больше sudo пользовались и меньше su. Но я подзабыл, если sudo su написать, потом оно будет работать и без добавленных строчек, или всё равно ругаться будет? У меня строчки тоже добавлены, раздражает sudo везде писать, хоть и наверно неправильно это…
LINUX means: Linux Is Not a UniX
Вернулся на Devuan. Счастлив!
Цитата: PbI6A от 27 мая 2021, 04:08:24Но я подзабыл, если sudo su написать, потом оно будет работать и без добавленных строчек, или всё равно ругаться будет?
Ну проведите тесты, зайти под юзером:
sudo su
echo $PATH
exit
sudo su -
echo $PATH
это самый простой способ проверки.
И если забываете вводить дефис, ну напишите вы себе алиас на нужную вам команду.
Ну или вариант 2 — скопировать окружение рута пользователю.
None of the solutions showed here helped me, so I’ll explain what happened to me and what I did to fix it:
I was trying to install Insync in my Q4OS System and I wasn’t able because the app requires libc6 >= 2.32 and the Q4OS uses 2.31. I found a libc6 deb of 2.32 and then the nightmare started. It has been broken my entire system. apt-get stopped to work and it says the system needs libc6 2.31 to work properly. At that time I didn’t know how to downgrade the version. So, after a restart, the system simply didn’t start and hung up with the message on boot:
A start job is running for Hold until boot process finishes up (Xmin Xs/no limit)
I tried to change the terminal without success. Hopefully my Linux was running under the VMWare and I was able to connect in the machine using the SSH. VM -> SSH -> Connect to SSH...
After that, I tried a lot of stuff without success. I tried to upgrade with:
sudo apt install upgrade
and the message says I had to run:
sudo apt --fix-broken install
But when I tried to run that, it said a lot of packages would be removed, including q4os-desktop itself. Well, I accept the conditions and tried. What more could I lost?
After that, the thing gets too worse. I wasn’t able to run anything. I got a similar error of the question:
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: error: 2 expected programs not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
But the problem wasn’t the PATH itself but the ldconfig is part of libc6 and it was removed. I couldn’t do anything because almost everything depends of libc6 and ldconfig. I tried to compile libc6 from source, but without success. It has a lot of dependencies and when I tried to install a dependency, the lib tried to use something of libc6. A kind of dependency loop.
So, I reboot the system with the Q4OS live CD and just copy the binary ldconfig to /usr/sbin/ldconfig. Fine! Now, the apt-get started to work again (not perfectly, but…). So I discovered how to downgrade the lib:
sudo apt install libc6=2.31-13+deb11u3
If you are not sure which version to use, run:
apt list --installed | grep libc6
inside the Live CD. The output should be something like:
libc6/stable,now 2.31-13+deb11u3 amd64 [installed]
After that, I was able to install the Q4OS again:
sudo apt install q4os-desktop
After a reboot, everything was back to normal!
But now when I run the Insync, the app crashes after 5 seconds.
Модераторы: Warderer, Модераторы разделов
-
kerogaz
- Сообщения: 916
- ОС: CentOS,FreeBSD 12.1,Arch
debian 10 не работает dpkg
r
Код: Выделить всё
oot@debian:/home/debian/Загрузки# dpkg -i flashplugin-nonfree_3.7_amd64.deb
dpkg: предупреждение: «ldconfig» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым
dpkg: предупреждение: «start-stop-daemon» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым
dpkg: ошибка: в каталогах PATH не найдено 2 ожидаемые программы или исполняемых файла
Замечание: В PATH суперпользователя обычно должны присутствовать /usr/local/sbin, /usr/sbin и /sbin
Систему я только что установил и ничего не менял в настройках
-
Bizdelnick
- Модератор
- Сообщения: 19825
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: debian 10 не работает dpkg
Сообщение
Bizdelnick » 13.08.2019 14:38
Они прописаны. Читайте по ссылке. И нет, это не специфичное для Debian поведение.
Пишите правильно:
| в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
Bizdelnick
- Модератор
- Сообщения: 19825
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: debian 10 не работает dpkg
Сообщение
Bizdelnick » 13.08.2019 14:58
yoricI писал: ↑
13.08.2019 14:46
А что, flashplugin-nonfree из репозитория удалили?
Не понял, как это относится к сабжу, но вместо него давно уже pepperflashplugin-nonfree.
Пишите правильно:
| в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
Bizdelnick
- Модератор
- Сообщения: 19825
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: debian 10 не работает dpkg
Сообщение
Bizdelnick » 13.08.2019 15:12
kerogaz писал(а): ↑
13.08.2019 14:59
это как оказалось типичный ляп Debian и Ubuntu
Нет. Такое поведение когда-то было нормальным едва ли не для всех дистрибутивов. Потом его практически везде поменяли, теперь вот в Debian зачем-то вернули (не вникал, зачем, и меня не парит, потому что я ещё в те времена привык к su —, а вообще предпочитаю sudo).
kerogaz писал(а): ↑
13.08.2019 14:59
Воспользуйтесь поисковиком и увидите что подобных запросов море
Воспользовался. 10+ лет назад действительно было море, сейчас — лишь малая доля от того, поскольку нынче большинство использует sudo. Например:
Проблемы с настройками bash
Решено: Konsole
проблемы с su %)
РЕШЕНО не работает команда ifconfig
Пишите правильно:
| в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
Rootlexx
- Бывший модератор
- Сообщения: 4439
- Статус: GNU generation
- ОС: Debian GNU/Linux
Re: debian 10 не работает dpkg
Сообщение
Rootlexx » 13.08.2019 15:55
Bizdelnick писал: ↑
13.08.2019 15:12
Потом его практически везде поменяли, теперь вот в Debian зачем-то вернули
Просто перешли с реализации su из пакета login на su из util-linux, как в большинстве других дистрибутивов. В ней поведение по умолчанию — не инициализировать PATH. См. man su на предмет ALWAYS_SET_PATH.
-
Bizdelnick
- Модератор
- Сообщения: 19825
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: debian 10 не работает dpkg
Сообщение
Bizdelnick » 14.08.2019 09:20
kerogaz писал(а): ↑
14.08.2019 08:07
Полчается что ветки вики-дебиана превратились в мусоросборник. Похоже что они давно уже не обновляются
А читать их, прежде чем делать такие заявления, Вы не пробовали?
Пишите правильно:
| в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
bormant
- Сообщения: 1354
Re: debian 10 не работает dpkg
Сообщение
bormant » 14.08.2019 10:40
kerogaz писал(а): ↑
14.08.2019 10:13
В Debian 10 не работает reboot в командной строке под su (нет такого файла )
Не «не работает», а не обнаруживается по перечисленным в PATH путям после смены пользователя по «su».
Почувствуйте разницу.
-
kerogaz
- Сообщения: 916
- ОС: CentOS,FreeBSD 12.1,Arch
Re: debian 10 не работает dpkg
Сообщение
kerogaz » 14.08.2019 13:25
Причем здесь чувства? Ведь не работаем нейромедиаторами в командной строке А там всё равно что шесть рублей что две по троячке даже если у вас все рецепторы нейронов залиты дофамином и обратный захват не помогает
-
Bizdelnick
- Модератор
- Сообщения: 19825
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: debian 10 не работает dpkg
Сообщение
Bizdelnick » 14.08.2019 13:42
Попробуйте унять свой дофамин и задействовать аспартат.
Пишите правильно:
| в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
Подтвердил запрос на обновления и теперь целый день без остановки вот такая беда:
Обновление…
Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
The following packages will be upgraded:
astra-safepolicy astra-version fly-update-notifier fly-wm fly-wm-decor
libflycore libpam-systemd libsystemd0 libudev1 systemd systemd-sysv udev
debconf: delaying package configuration, since apt-utils is not installed
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6229 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
dpkg: error: PATH is not set
Восстановление пакетов…
Reading package lists…
Building dependency tree…
Reading state information…
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Что с этим делать?
Подтвердил запрос на обновления и теперь целый день без остановки вот такая беда:
Обновление…
Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
The following packages will be upgraded:
astra-safepolicy astra-version fly-update-notifier fly-wm fly-wm-decor
libflycore libpam-systemd libsystemd0 libudev1 systemd systemd-sysv udev
debconf: delaying package configuration, since apt-utils is not installed
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6229 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
dpkg: error: PATH is not set
Восстановление пакетов…
Reading package lists…
Building dependency tree…
Reading state information…
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Что с этим делать?
Какая у вас версия ОС?
Astra Linux (Orel) 2.11.5
Вы не в той верки тему создали.
1.) покажите что прописано в /etc/apt/sources.list
2.) sudo apt-get install -f
3.) sudo apt-get dist-upgrade
Вы не в той верки тему создали.
1.) покажите что прописано в /etc/apt/sources.list
2.) sudo apt-get install -f
3.) sudo apt-get dist-upgrade
Извините я новичок только её установил! А в каком разделе это посмотреть?
Извините я новичок только её установил! А в каком разделе это посмотреть?
Так если только поставили…..помнится там была такая проблема, но думал что исправили. Но похоже что нет.
В общем есть 2 варианта, или подождать обновления до 2.11.7 (обещали вот-вот выпустить) или обновиться до 2.11.6 из нестабильного репоизитория для тестировщиков.
Так если только поставили…..помнится там была такая проблема, но думал что исправили. Но похоже что нет.
В общем есть 2 варианта, или подождать обновления до 2.11.7 (обещали вот-вот выпустить) или обновиться до 2.11.6 из нестабильного репоизитория для тестировщиков.
Спасибо, я подожду.
Так если только поставили…..помнится там была такая проблема, но думал что исправили. Но похоже что нет.
В общем есть 2 варианта, или подождать обновления до 2.11.7 (обещали вот-вот выпустить) или обновиться до 2.11.6 из нестабильного репоизитория для тестировщиков.
Извините вопрос скорее всего не в тему, но если можно подскажите какой объём занимает ОС Astra? У меня планшет на ОС Windows 10 с памятью 16 GB, хотел бы на него установить Astra, это возможно и какой объём нужно выделить памяти для ОС чтобы комфортно она обновлялась?
Извините вопрос скорее всего не в тему, но если можно подскажите какой объём занимает ОС Astra? У меня планшет на ОС Windows 10 с памятью 16 GB, хотел бы на него установить Astra, это возможно и какой объём нужно выделить памяти для ОС чтобы комфортно она обновлялась?
Тут всё зависет от того что ставить (во время установки компаненты можно выбирать). 5-10Gb (в зависемости от набора ПО) должно зватить.
После установки можете удалить пакеты которые вам не нужны.
Тут всё зависет от того что ставить (во время установки компаненты можно выбирать). 5-10Gb (в зависемости от набора ПО) должно зватить.
После установки можете удалить пакеты которые вам не нужны.
Я хочу ставить Astra Linux (Orel) 2.11.5, про выбор пакетов это для меня пока сложно!
Я хочу ставить Astra Linux (Orel) 2.11.5, про выбор пакетов это для меня пока сложно!
Главное во время установка главное лишних «галочек» не ставить.
Там нет ничего сложного. Со временем всё станет «просто» )))
Главное во время установка главное лишних «галочек» не ставить.
Там нет ничего сложного. Со временем всё станет «просто» )))
Спасибо! Поставлю 10 GB для системы.
Главное во время установка главное лишних «галочек» не ставить.
Там нет ничего сложного. Со временем всё станет «просто» )))
Установил на планшет но что то пошло не так, он не видит микро USB а если в слот микро SD вставляешь флешку то он зависает, это возможно исправить или всё планшет на свалку?
Установил на планшет но что то пошло не так, он не видит микро USB а если в слот микро SD вставляешь флешку то он зависает, это возможно исправить или всё планшет на свалку?
У меня на SD нормально реагирует (2.11.6).
deb ftp://sid4astra.ru/astra/current/orel/repository/ orel main contrib non-free
Тут многое завесиет от аппратной части. Подключите тестовой репозиторий (просто пропишите в /etc/apt/sources.list), другие закоментироват
Если не поможет, после обновления системы, то прошу написать в тех.поддержку.
У меня на SD нормально реагирует (2.11.6).
deb ftp://sid4astra.ru/astra/current/orel/repository/ orel main contrib non-free
Тут многое завесиет от аппратной части. Подключите тестовой репозиторий (просто пропишите в /etc/apt/sources.list), другие закоментироват
Если не поможет, после обновления системы, то прошу написать в тех.поддержку.
А возможно как то переустановить ОС не имея подключения носителей?
А возможно как то переустановить ОС не имея подключения носителей?
В смысле?
Я что то не так установил и по этому он видит носители но не даёт к ним доступа (пишет ошибка), и запускается после выбора строки с (recovery mode) и периодическим нажатием Enter.
Есть возможность устаноки через PXE, но планшеты как правило такое не поддерживают.
Если не сложно сделайте установку с нуля. и опишите все шаги (какие опции выбирали)
Есть возможность устаноки через PXE, но планшеты как правило такое не поддерживают.
Если не сложно сделайте установку с нуля. и опишите все шаги (какие опции выбирали)
Вот в том то и дело, как это сделать если я не могу подключить загрузочный диск?
Приветствую всех! Не получается исправить следующую ошибку:
dpkg: предупреждение: «ldconfig» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым.
Имеем консольный debian 6 squeeze — после некорректной установки пакетов, появляется выше описанная надпись. Гугление показало, что скорее всего слетел PATH. В данный момент export показывает следующее:
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Если дать команду так:
#PATH=$PATH:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
, то имеем при export
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
, хотя если я правильно понимаю, должно было путь поменять на заданный. Подскажите, что делаю не так.
Благодарю за внимание!
-
Вопрос заданболее трёх лет назад
-
16196 просмотров
У меня:
`--# echo $PATH pts/1
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
debian wheezy
Пригласить эксперта
PATH=$PATH:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
Сначала подставится текущее значение $PATH, к нему допишется :/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
и всё это сохранится как PATH, так и получилось.
Чтобы заменить целиком содержимое $PATH, нужно задать так PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
Извините, если и так понимаете это, значит, неправильно поняла вопрос )
Спасибо за ответ. Но, при
PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
путь меняется правильно, т.е. при export выдает
declare -x PATH="/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin", но установке какого-либо пакета все равно выдает ошибку:
# apt-get install digitemp Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Предлагаемые пакеты:
rrdtool
Пакеты, которые будут УДАЛЕНЫ:
dc
НОВЫЕ пакеты, которые будут установлены:
digitemp
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 1 пакетов, и 0 пакетов не обновлено.
не установлено до конца или удалено 2 пакетов.
Необходимо скачать 0 B/118 kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 135 kB.
Хотите продолжить [Д/н]? y
dpkg: предупреждение: «ldconfig» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым.
dpkg: предупреждение: «start-stop-daemon» отсутствует в каталогах, перечисленных в PATH, или не является исполняемым.
dpkg: В каталогах, перечисленных в PATH, отсутствуют или не являются
исполняемыми 2 необходимых программы.
NB: В PATH суперпользователя обычно должны присутствовать /usr/local/sbin,
/usr/sbin и /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
Спасибо за советы. Ситуация немного изменилась. Итак по ходу:
$ ls -la /sbin/ldconfig — есть такое.
-rwxr-xr-x 1 root root 654720 Фев 13 07:44 /sbin/ldconfig
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Путь поменяло. Сделал export PATH, чтобы при перезагрузке, пути сохранились.
Теперь при apt-get install выдает следующее:
apt-get install digitemp
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Предлагаемые пакеты:
rrdtool
Пакеты, которые будут УДАЛЕНЫ:
dc
НОВЫЕ пакеты, которые будут установлены:
digitemp
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 1 пакетов, и 0 пакетов не обновлено.
не установлено до конца или удалено 2 пакетов.
Необходимо скачать 0 B/118 kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 135 kB.
Хотите продолжить [Д/н]? y
(Чтение базы данных ... на данный момент установлено 35317 файлов и каталогов.)
Удаляется пакет dc ...
dpkg (подпроцесс): не удалось запустить установлен сценарий post-removal (/var/lib/dpkg/info/dc.postrm): Ошибка формата выполняемого файла
dpkg: не удалось обработать параметр dc (--remove):
подпроцесс установлен сценарий post-removal возвратил код ошибки 2
configured to not write apport reports
При обработке следующих пакетов произошли ошибки:
dc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Пробавал dpkg-reconfigure dc
/usr/sbin/dpkg-reconfigure: Пакет dc сломан или установлен не полностью
Пробовал apt-get install dc
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Уже установлена самая новая версия dc.
Пробавал apt-get autoremove dc
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Пакеты, которые будут УДАЛЕНЫ:
dc
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 1 пакетов, и 0 пакетов не обновлено.
не установлено до конца или удалено 2 пакетов.
После данной операции, объём занятого дискового пространства уменьшится на 176 kB.
Хотите продолжить [Д/н]? y
(Чтение базы данных ... на данный момент установлено 35317 файлов и каталогов.)
Удаляется пакет dc ...
dpkg (подпроцесс): не удалось запустить установлен сценарий post-removal (/var/lib/dpkg/info/dc.postrm): Ошибка формата выполняемого файла
dpkg: не удалось обработать параметр dc (--remove):
подпроцесс установлен сценарий post-removal возвратил код ошибки 2
configured to not write apport reports
При обработке следующих пакетов произошли ошибки:
dc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Как исправить этот dc?
Выше стоящую проблему решил удалением dc.postrm и переустановкой dc
Теперь apt-get и dpkg работают правильно.
Единственная проблема — это после перезагрузки сервера опять слетают пути — export PATH не помогает; скрипт, в который записал PATH тоже не работает — пока только в ручную приходится набирать PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Есть какие-то варианты автоматизации пути?
-
Показать ещё
Загружается…
09 февр. 2023, в 13:09
5000 руб./за проект
09 февр. 2023, в 13:08
1000 руб./за проект
09 февр. 2023, в 13:05
1000 руб./за проект

