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

network problem mirrored #11905

Closed
Morrigan-Ship opened this issue Aug 9, 2024 · 2 comments
Closed

network problem mirrored #11905

Morrigan-Ship opened this issue Aug 9, 2024 · 2 comments

Comments

@Morrigan-Ship
Copy link

Morrigan-Ship commented Aug 9, 2024

cat /etc/resolv.conf

This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:

[network]

generateResolvConf = false

nameserver 10.255.255.254
search 1.1.1.1
root@DESKTOP-ONPAHN0:~# apt install net-tools --fix-missing
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
apport-symptoms libperl5.36 libpython3.11-minimal libpython3.11-stdlib perl-modules-5.36 python3-certifi python3-chardet python3-problem-report python3-systemd python3-urllib3 python3.11 python3.11-minimal ubuntu-advantage-tools
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
2 not fully installed or removed.
Need to get 204 kB of archives.
After this operation, 811 kB of additional disk space will be used.
Ign:1 http://archive.ubuntu.com/ubuntu noble/main amd64 net-tools amd64 2.10-0.1ubuntu4
Ign:1 http://archive.ubuntu.com/ubuntu noble/main amd64 net-tools amd64 2.10-0.1ubuntu4
Ign:1 http://archive.ubuntu.com/ubuntu noble/main amd64 net-tools amd64 2.10-0.1ubuntu4
Err:1 http://archive.ubuntu.com/ubuntu noble/main amd64 net-tools amd64 2.10-0.1ubuntu4
Could not connect to 127.0.0.1:2222 (127.0.0.1), connection timed out
Setting up postfix (3.8.6-1build2) ...

Postfix (main.cf) configuration was not changed. If you need to make changes,
edit /etc/postfix/main.cf (and others) as needed. To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'systemctl reload postfix'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: DESKTOP-ONPAHN0.
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: DESKTOP-ONPAHN0.
dpkg: error processing package postfix (--configure):
installed postfix package post-installation script subprocess returned error exit status 75
dpkg: dependency problems prevent configuration of gpg-wks-server:
gpg-wks-server depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package postfix which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.

dpkg: error processing package gpg-wks-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postfix
gpg-wks-server
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/n/net-tools/net-tools_2.10-0.1ubuntu4_amd64.deb Could not connect to 127.0.0.1:2222 (127.0.0.1), connection timed out
E: Sub-process /usr/bin/dpkg returned an error code (1)

my proxy is working in windows as well but in linux has problem

Copy link

github-actions bot commented Aug 9, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!

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

No branches or pull requests

1 participant