Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian package: Presumed lack of dependency #1700

Closed
marek22k opened this issue Oct 3, 2024 · 4 comments · Fixed by #1702
Closed

Debian package: Presumed lack of dependency #1700

marek22k opened this issue Oct 3, 2024 · 4 comments · Fixed by #1702

Comments

@marek22k
Copy link
Contributor

marek22k commented Oct 3, 2024

Hello,

when installing the Debian package I noticed that it tries to run pwgen, but it is not installed. If pwgen is needed, it makes sense to add it as a dependency.

marek@router1:~$ sudo apt install ./shadowsocks-rust_1.21.0_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'shadowsocks-rust' instead of './shadowsocks-rust_1.21.0_amd64.deb'
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-13-amd64
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  shadowsocks-rust
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5,798 kB of archives.
After this operation, 33.3 MB of additional disk space will be used.
Get:1 /home/marek/shadowsocks-rust_1.21.0_amd64.deb shadowsocks-rust amd64 1.21.0 [5,798 kB]
Selecting previously unselected package shadowsocks-rust.
(Reading database ... 69438 files and directories currently installed.)
Preparing to unpack .../shadowsocks-rust_1.21.0_amd64.deb ...
Unpacking shadowsocks-rust (1.21.0) ...
Setting up shadowsocks-rust (1.21.0) ...
/var/lib/dpkg/info/shadowsocks-rust.postinst: 33: pwgen: not found
N: Download is performed unsandboxed as root as file '/home/marek/shadowsocks-rust_1.21.0_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
@zonyitoo
Copy link
Collaborator

zonyitoo commented Oct 4, 2024

Please submit a PR for fixing the debian package build script.

@marek22k
Copy link
Contributor Author

marek22k commented Oct 4, 2024

I am delighted to have been encouraged to submit a PR. As far as I've seen in the code, pwgen is used to replace the !barfoo placeholder. However, this functionality is also bought into Shadowsocks with ssservice genkey -m "[CIPHER]". Is there a particular reason to prefer pwgen?

@zonyitoo
Copy link
Collaborator

zonyitoo commented Oct 4, 2024

It was copied from shadowsocks-libev project. I don't really know why it was required originally.

marek22k added a commit to marek22k/shadowsocks-rust that referenced this issue Oct 4, 2024
@marek22k
Copy link
Contributor Author

marek22k commented Oct 4, 2024

I tried my luck with a PR. The password in the example configuration file is now created with ssservice genkey instead of pwgen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants