Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

errors in dist-upgrade

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

errors in dist-upgrade

#1 Post by ckosloff »

Using ftp.us.debian.org.

Code: Select all

236 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/339 MB of archives.
After this operation, 55.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Extracting templates from packages: 100%
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)
root@crosshair:/home/ckosloff# 

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: errors in dist-upgrade

#2 Post by 4D696B65 »

How did you become root?

Code: Select all

su
is depriciated, you must use

Code: Select all

su -
The former will give you path issues

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: errors in dist-upgrade

#3 Post by Bulkley »

su is deprecated? When did that happen? Is this another case wherein something works so someone out there has to fix it? :roll:

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: errors in dist-upgrade

#4 Post by 4D696B65 »

Bulkley wrote:su is deprecated? When did that happen? Is this another case wherein something works so someone out there has to fix it? :roll:
util-linux (2.32-0.4) unstable; urgency=medium

The util-linux implementation of /bin/su is now used, replacing the
one previously supplied by src:shadow (shipped in login package), and
bringing Debian in line with other modern distributions. The two
implementations are very similar but have some minor differences (and
there might be more that was not yet noticed ofcourse), e.g.

- new 'su' (with no args, i.e. when preserving the environment) also
preserves PATH and IFS, while old su would always reset PATH and IFS
even in 'preserve environment' mode.
- su '' (empty user string) used to give root, but now returns an error.
- previously su only had one pam config, but now 'su -' is configured
separately in /etc/pam.d/su-l

The first difference is probably the most user visible one. Doing
plain 'su' is a really bad idea for many reasons, so using 'su -' is
strongly recommended to always get a newly set up environment similar
to a normal login. If you want to restore behaviour more similar to
the previous one you can add 'ALWAYS_SET_PATH yes' in /etc/login.defs.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: errors in dist-upgrade

#5 Post by stevepusser »

Weird errors like this make me suspect a FrankenDebian. Are you able to install inxi and post the output of

Code: Select all

inxi -r
?

BTW, in the absence of any evidence to the contrary, I assumed the OP is using stable, and you're posting the changelog for the upstream version of util-linux.
MX Linux packager and developer

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: errors in dist-upgrade

#6 Post by 4D696B65 »

Code: Select all

236 upgraded,
A lot for stable
If its Buster then I bet on su - from util-linux

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: errors in dist-upgrade

#7 Post by Wheelerof4te »

The same errors I had, it's definently either Buster or Sid.
su - should work.

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: errors in dist-upgrade

#8 Post by ckosloff »

I am on testing, system reports as buster/sid.
So I should use su- to get root now? franken Debian, no more mysql either.
i did a dist-upgrade using su - and it worked.
However there is a big difference, whereas the previous reported 236 packages upgraded this one only reported 42.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: errors in dist-upgrade

#9 Post by None1975 »

ckosloff wrote:So I should use su- to get root now?
Yes. Personally, I always do that.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: errors in dist-upgrade

#10 Post by ckosloff »

None1975 wrote:
ckosloff wrote:So I should use su- to get root now?
Yes. Personally, I always do that.
Please read above, I did a dist-upgrade with su - but results were very different.
Maybe use /bin/su?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: errors in dist-upgrade

#11 Post by None1975 »

ckosloff wrote:Maybe use /bin/su?
Please show us

Code: Select all

/etc/apt/sources.list
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: errors in dist-upgrade

#12 Post by ckosloff »

/etc/apt/sources.list

Code: Select all

# 

# deb cdrom:[Debian GNU/Linux buster-DI-alpha1 _Buster_ - Official Snapshot amd64 NETINST 20170829-10:02]/ buster main

#deb cdrom:[Debian GNU/Linux buster-DI-alpha1 _Buster_ - Official Snapshot amd64 NETINST 20170829-10:02]/ buster main

deb http://ftp.us.debian.org/debian/ testing main non-free contrib
# deb-src http://ftp.br.debian.org/debian/ buster main non-free contrib

deb http://ftp.us.debian.org/debian-security testing/updates main contrib non-free
# deb-src http://ftp.br.debian.org/debian-security buster/updates main contrib non-free

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 68 times

Re: errors in dist-upgrade

#13 Post by None1975 »

ckosloff wrote:/etc/apt/sources.list
Thanks. It should look

Code: Select all

deb http://ftp.us.debian.org/debian/ testing main contrib non-free

deb http://ftp.us.debian.org/debian/ testing-updates main contrib non-free

deb http://security.debian.org/ testing/updates main
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
ckosloff
Posts: 500
Joined: 2011-12-29 15:08
Location: South Florida, USA

Re: errors in dist-upgrade

#14 Post by ckosloff »

Code: Select all

deb http://security.debian.org/ testing/updates main
apt-get update reports that this line is malformed.
Trimmed the line, removed / after testing, and now I get:

Code: Select all

E: The repository 'http://security.debian.org testing Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: errors in dist-upgrade

#15 Post by 4D696B65 »

Code: Select all

deb http://security.debian.org/ testing/updates main
is for stable, it does not exist in testing

https://wiki.debian.org/DebianTesting

Post Reply