[Bug 1899026] [NEW] Add proxy auto detect support

2020-10-08 Thread Markus Lindberg
Public bug reported:

We have migrated our Ubuntu desktops to use the APT config option
'Acquire::http::Proxy-Auto-Detect' instead of the 'Acquire::http::Proxy'
and this breaks update-manager.

Looking at the 'init_proxy' function it seems that only the
'Acquire::http::Proxy' APT config option is supported for the use of
proxy. Can support for the 'Acquire::http::Proxy-Auto-Detect' (as well
as 'Acquire::https::Proxy-Auto-Detect' for https) APT config option be
added to update-manager?


A workaround that I managed to use is to export the http_proxy and https_proxy 
environment variables and then run `do-release-upgrade`. Though this has a 
couple of drawbacks, for instance that the GUI version of update-manager is not 
possible to use. I'm just mentioning this if someone else is stuck while using 
'Proxy-Auto-Detect' for APT.

** Affects: update-manager (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1899026

Title:
  Add proxy auto detect support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1899026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1879770] Re: Renaming interfaces using *.link file does not work

2020-05-28 Thread Markus Lindberg
I experiencing the same problem. My two Ethernet interfaces does not get
renamed. I want to accomplish the following.

eth0 => eth1
eth1 => eth0

Basically switching names between the Ethernet interfaces.

I had the same exact setup on 18.04 which worked.

You can find some information about my system below. Please let me know
if I should provide more information.

== networkctl(1) ==

# networkctl status eth0
WARNING: systemd-networkd is not running, output will be incomplete.

Failed to query link bit rates: Unit dbus-org.freedesktop.network1.service not 
found.
● 2: eth0
 Link File: n/a  
  Network File: n/a  
  Type: ether
 State: n/a (unmanaged)  
HW Address: e0:d5:5e:43:7e:52 (GIGA-BYTE TECHNOLOGY CO.,LTD.)
   MTU: 1500 (min: 68, max: 9000)
  Queue Length (Tx/Rx): 1/1  
  Auto negotiation: yes  
 Speed: 1Gbps
Duplex: full 
  Port: tp   
   Address: 10.88.130.28 
fe80::e2d5:5eff:fe43:7e52
   Gateway: 10.88.0.1 (Hewlett Packard)  

May 28 16:23:44 lnxjohansy systemd-udevd[503]: eth0: Failed to rename network 
interface 2 from 'eth0' to 'eth1': File exists
May 28 16:23:44 lnxjohansy systemd-udevd[503]: eth0: Failed to process device, 
ignoring: File exists

# networkctl status eth1
WARNING: systemd-networkd is not running, output will be incomplete.

Failed to query link bit rates: Unit dbus-org.freedesktop.network1.service not 
found.
● 3: eth1  
 Link File: n/a
  Network File: n/a
  Type: ether  
 State: n/a (unmanaged)
HW Address: 68:05:ca:75:3d:65 (Intel Corporate)
   MTU: 1500 (min: 68, max: 9212)  
  Queue Length (Tx/Rx): 1/1
  Auto negotiation: yes
 Speed: n/a
  Port: tp 

May 28 16:23:44 lnxjohansy systemd-udevd[503]: eth1: Failed to rename network 
interface 3 from 'eth1' to 'eth0': File exists
May 28 16:23:44 lnxjohansy systemd-udevd[503]: eth1: Failed to process device, 
ignoring: File exists

== systemd.link(5) ==

# ls -l /etc/systemd/network
total 8
-rw-r--r-- 1 root root 55 May 28 14:23 70-eth0.link
-rw-r--r-- 1 root root 55 May 28 14:23 70-eth1.link

# cat /etc/systemd/network/70-eth0.link 
[Match]
MACAddress=68:05:ca:75:3d:65

[Link]
Name=eth0

# cat /etc/systemd/network/70-eth1.link 
[Match]
MACAddress=e0:d5:5e:43:7e:52

[Link]
Name=eth1

# find / -iname "*.link"
/usr/lib/systemd/network/73-usb-net-by-mac.link
/usr/lib/systemd/network/99-default.link
/etc/systemd/network/70-eth1.link
/etc/systemd/network/70-eth0.link

== netplan(5) ==

# ls -l /etc/netplan/
total 4
-rw-r--r-- 1 root root 104 May 28 14:23 01-network-manager-all.yaml

# cat /etc/netplan/01-network-manager-all.yaml 
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

== interfaces(5) ==

# cat /etc/network/interfaces
auto lo eth0 eth1
iface lo inet loopback

iface eth1 inet dhcp
wpa-driver wired
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0

== systemd.network(5) ==

# systemctl is-active systemd-network
inactive

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879770

Title:
  Renaming interfaces using *.link file does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1879770/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1768789] Re: connectivity results in limited when behind proxy

2018-11-29 Thread Markus Lindberg
Has someone taken a look at this? Bionic has been out for a couple of
months now.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768789

Title:
  connectivity results in limited when behind proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1768789/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 556653] Re: build fails in chrooted system

2018-06-08 Thread Markus Lindberg
To add to #14 comment, a file in /var/lib/initramfs-tools also gets
generated if the host kernel differs from the chroot environments
kernel.

In my case I'm running a Debian system with the 4.9.0-6-amd64 kernel and
a Ubuntu (Xenial) chroot environment with the 4.4.0-127-generic kernel.
When installing the nvidia-384 package inside the chroot environment the
/var/lib/initramfs-tools/4.9.0-6-amd64 file gets generated.

# ls -l /initrd.img
lrwxrwxrwx 1 root root 29 Apr  5 11:31 /initrd.img -> 
boot/initrd.img-4.9.0-6-amd64
# ls -l /target/initrd.img
lrwxrwxrwx 1 root root 33 Jun  8 23:03 /target/initrd.img -> 
boot/initrd.img-4.4.0-127-generic
# ls -l /target/var/lib/initramfs-tools/
total 8
-rw-r--r-- 1 root root 77 Jun  8 23:06 4.4.0-127-generic
-rw-r--r-- 1 root root 73 Jun  8 23:08 4.9.0-6-amd64

(/target is the chroot environment)

The /var/lib/initramfs-tools/4.9.0-6-amd64 file is dangerous since
update-initramfs will think that it's a valid existing kernel and
produce errors as the following that will prevent updating the initrd in
the future.

# chroot /target
sh-4.3# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.9.0-6-amd64
WARNING: missing /lib/modules/4.9.0-6-amd64
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.9.0-6-amd64: No such 
file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open 
/var/tmp/mkinitramfs_s6nF9f/lib/modules/4.9.0-6-amd64/modules.order: No such 
file or directory
depmod: WARNING: could not open 
/var/tmp/mkinitramfs_s6nF9f/lib/modules/4.9.0-6-amd64/modules.builtin: No such 
file or directory

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/556653

Title:
  build fails in chrooted system

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/556653/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1768789] [NEW] connectivity results in limited when behind proxy

2018-05-03 Thread Markus Lindberg
Public bug reported:

The connectivity for a connection results in limited when behind a proxy
for NetworkManager.

$ sudo nmcli general 
STATE  CONNECTIVITY  WIFI-HW  WIFI WWAN-HW  WWAN
connected (site only)  limited   enabled  enabled  enabled  enabled

$ sudo nmcli networking connectivity check 
limited

I have configured my proxy in both '/etc/environment' and via the GUI
under 'Settings'->'Network'->'Network Proxy'->'Automatic'.

After this is set I can do an HTTP GET against the URL/URI you have
configured in the '/usr/lib/NetworkManager/conf.d/20-connectivity-
ubuntu.conf' file.

$ curl -I http://connectivity-check.ubuntu.com/
HTTP/1.1 204 No Content
Date: Thu, 03 May 2018 09:01:34 GMT
Server: Apache/2.4.18 (Ubuntu)
X-NetworkManager-Status: online
X-Cache: MISS from proxy.example.com
X-Cache-Lookup: MISS from proxy.example.com:3128
Via: 1.1 proxy.example.com (squid/3.3.8)
Connection: keep-alive

$ env|grep -i proxy
auto_proxy=http://proxy.example.com/auto
https_proxy=http://proxy.example.com:3128
http_proxy=http://proxy.example.com:3128

But network connectivity still fails to use the proxy.

I assume that the 'network-manager-config-connectivity-ubuntu' package
is used for this feature after reading the following output.

$ dpkg -S /usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
network-manager-config-connectivity-ubuntu: 
/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf

If I remove the '/usr/lib/NetworkManager/conf.d/20-connectivity-
ubuntu.conf' file the connectivity check succeeds or I don't get limited
connectivity at least.

--
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 18.04 LTS
Release:18.04
Codename:   bionic

$ uname -a
Linux lnxhplap2 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 
x86_64 x86_64 x86_64 GNU/Linux

$ dpkg -l|grep network-manager
ii  network-manager1.10.6-2ubuntu1  
   amd64network management framework (daemon and userspace tools)
ii  network-manager-config-connectivity-ubuntu 1.10.6-2ubuntu1  
   all  NetworkManager configuration to enable connectivity checking
ii  network-manager-gnome  1.8.10-2ubuntu1  
   amd64network management framework (GNOME frontend)
ii  network-manager-pptp   1.2.6-1  
   amd64network management framework (PPTP plugin core)
ii  network-manager-pptp-gnome 1.2.6-1  
   amd64network management framework (PPTP plugin GNOME GUI)
--

Note: I have used "proxy.example.com" as substitute for our proxy server
in this bug report for privacy reasons.

** Affects: network-manager (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768789

Title:
  connectivity results in limited when behind proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1768789/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1762630] Re: Why does not python3 depend on dh-python?

2018-04-10 Thread Markus Lindberg
I'm sorry the environment I'm using does not have all the base packages.
But I'm still curious why the dh-python dependency was removed from the
python3 package.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1762630

Title:
  Why does not python3 depend on dh-python?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1762630/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1762630] Re: Why does not python3 depend on dh-python?

2018-04-10 Thread Markus Lindberg
Here is the complete output while trying to install python3 in a bionic
environment (debootstrap).

# apt-get install python3
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  adduser apt apt-utils bzip2 ca-certificates debconf debconf-i18n dpkg file 
gcc-8-base gpgv libacl1 libapt-inst2.0 libapt-pkg5.0 libattr1 libaudit-common 
libaudit1 libbz2-1.0 libc6
  libcap-ng0 libdb5.3 libexpat1 libffi6 libgcc1 libgcrypt20 libgmp10 
libgnutls30 libgpg-error0 libgpm2 libhogweed4 libidn2-0 liblocale-gettext-perl 
liblz4-1 liblzma5 libmagic-mgc
  libmagic1 libmpdec2 libncursesw5 libnettle6 libp11-kit0 libpam-modules 
libpam-modules-bin libpam0g libpcre3 libpython3-stdlib libpython3.6-minimal 
libpython3.6-stdlib libreadline7
  libseccomp2 libselinux1 libsemanage-common libsemanage1 libsepol1 
libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtext-charwidth-perl 
libtext-iconv-perl libtext-wrapi18n-perl
  libtinfo5 libudev1 libunistring2 mime-support openssl passwd perl-base 
python3-minimal python3.6 python3.6-minimal readline-common tar ubuntu-keyring 
update-motd xz-utils zlib1g
Suggested packages:
  perl ecryptfs-utils apt-doc aptitude | synaptic | wajig dpkg-dev gnupg | 
gnupg2 | gnupg1 powermgmt-base bzip2-doc debconf-doc debconf-utils whiptail | 
dialog
  libterm-readline-gnu-perl libgtk3-perl libnet-ldap-perl libqtgui4-perl 
libqtcore4-perl debsig-verify gnupg glibc-doc locales rng-tools gnutls-bin gpm 
libpam-doc python3-doc
  python3-tk python3-venv python3.6-venv python3.6-doc binutils binfmt-support 
readline-doc ncompress tar-scripts tar-doc
The following NEW packages will be installed:
  adduser apt apt-utils bzip2 ca-certificates debconf debconf-i18n dpkg file 
gcc-8-base gpgv libacl1 libapt-inst2.0 libapt-pkg5.0 libattr1 libaudit-common 
libaudit1 libbz2-1.0 libc6
  libcap-ng0 libdb5.3 libexpat1 libffi6 libgcc1 libgcrypt20 libgmp10 
libgnutls30 libgpg-error0 libgpm2 libhogweed4 libidn2-0 liblocale-gettext-perl 
liblz4-1 liblzma5 libmagic-mgc
  libmagic1 libmpdec2 libncursesw5 libnettle6 libp11-kit0 libpam-modules 
libpam-modules-bin libpam0g libpcre3 libpython3-stdlib libpython3.6-minimal 
libpython3.6-stdlib libreadline7
  libseccomp2 libselinux1 libsemanage-common libsemanage1 libsepol1 
libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtext-charwidth-perl 
libtext-iconv-perl libtext-wrapi18n-perl
  libtinfo5 libudev1 libunistring2 mime-support openssl passwd perl-base 
python3 python3-minimal python3.6 python3.6-minimal readline-common tar 
ubuntu-keyring update-motd xz-utils
  zlib1g
0 upgraded, 77 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.3 MB of archives.
After this operation, 94.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://debian.lth.se/ubuntu bionic/main amd64 gcc-8-base amd64 
8-20180408-0ubuntu1 [18.1 kB]
Get:2 http://debian.lth.se/ubuntu bionic/main amd64 libc6 amd64 2.27-0ubuntu3 
[2823 kB]
Get:3 http://debian.lth.se/ubuntu bionic/main amd64 libgcc1 amd64 
1:8-20180408-0ubuntu1 [40.9 kB]
Get:4 http://debian.lth.se/ubuntu bionic/main amd64 libbz2-1.0 amd64 1.0.6-8.1 
[30.9 kB]
Get:5 http://debian.lth.se/ubuntu bionic/main amd64 liblzma5 amd64 5.2.2-1.3 
[90.8 kB]
Get:6 http://debian.lth.se/ubuntu bionic/main amd64 libpcre3 amd64 2:8.39-9 
[229 kB]
Get:7 http://debian.lth.se/ubuntu bionic/main amd64 libselinux1 amd64 
2.7-2build2 [68.2 kB]
Get:8 http://debian.lth.se/ubuntu bionic/main amd64 zlib1g amd64 
1:1.2.11.dfsg-0ubuntu2 [56.5 kB]
Get:9 http://debian.lth.se/ubuntu bionic/main amd64 libattr1 amd64 
1:2.4.47-2build1 [9524 B]
Get:10 http://debian.lth.se/ubuntu bionic/main amd64 libacl1 amd64 
2.2.52-3build1 [16.1 kB]
Get:11 http://debian.lth.se/ubuntu bionic/main amd64 tar amd64 1.29b-2 [233 kB]
Get:12 http://debian.lth.se/ubuntu bionic/main amd64 dpkg amd64 1.19.0.5ubuntu1 
[1140 kB]
Get:13 http://debian.lth.se/ubuntu bionic/main amd64 perl-base amd64 5.26.1-5 
[1390 kB]
Get:14 http://debian.lth.se/ubuntu bionic/main amd64 libaudit-common all 
1:2.8.2-1ubuntu1 [4132 B]
Get:15 http://debian.lth.se/ubuntu bionic/main amd64 libcap-ng0 amd64 0.7.7-3.1 
[11.1 kB]
Get:16 http://debian.lth.se/ubuntu bionic/main amd64 libaudit1 amd64 
1:2.8.2-1ubuntu1 [38.9 kB]
Get:17 http://debian.lth.se/ubuntu bionic/main amd64 debconf all 1.5.66 [124 kB]
Get:18 http://debian.lth.se/ubuntu bionic/main amd64 libpam0g amd64 
1.1.8-3.6ubuntu2 [55.1 kB]
Get:19 http://debian.lth.se/ubuntu bionic/main amd64 libsemanage-common all 
2.7-2build2 [6904 B]
Get:20 http://debian.lth.se/ubuntu bionic/main amd64 libsepol1 amd64 2.7-1 [251 
kB]
Get:21 http://debian.lth.se/ubuntu bionic/main amd64 libsemanage1 amd64 
2.7-2build2 [84.6 kB]
Get:22 http://debian.lth.se/ubuntu bionic/main amd64 libdb5.3 amd64 5.3.28-13.1 
[672 kB]
Get:23 http://debian.lth.se/ubuntu bionic/main amd64 libpam-modules-bin amd64 
1.1.8-3.6ubuntu2 [36.7 kB]
Get:24 http://debian.lth.se/ubuntu bionic/main amd64 libpam-modules 

[Bug 1762630] [NEW] Why does not python3 depend on dh-python?

2018-04-10 Thread Markus Lindberg
Public bug reported:

I get the following while trying to install python3 on Bionic.

dpkg-query: package 'dh-python' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

What I can tell, every other Ubuntu release has this dependency but not
Bionic.

** Affects: python3-defaults (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1762630

Title:
  Why does not python3 depend on dh-python?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1762630/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1761861] Re: dh-python dependency removal changing behaviour of installing virtualenv

2018-04-09 Thread Markus Lindberg
Why does not python3 depend on dh-python?

I get the following while trying to install python3:

dpkg-query: package 'dh-python' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

What I can tell, every other Ubuntu release has this dependency.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1761861

Title:
  dh-python dependency removal changing behaviour of installing
  virtualenv

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1761861/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1574270] Re: applications segfault systematically with tsocks

2016-11-01 Thread Markus Lindberg
This seems to be fixed now. I can use tsocks (1.8beta5-9.3) without it
seg faulting.

Can anyone else confirm this?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574270

Title:
  applications segfault systematically with tsocks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tsocks/+bug/1574270/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1574270] Re: applications segfault systematically with tsocks

2016-06-22 Thread Markus Lindberg
@GospoGied (gospogied)
Thanks, that did it.

Best regards
Markus Lindberg
IT Helpdesk

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574270

Title:
  applications segfault systematically with tsocks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tsocks/+bug/1574270/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1574270] Re: applications segfault systematically with tsocks

2016-06-14 Thread Markus Lindberg
I can confirm that the patch do in fact resolve the segmentation fault
issue. But I were only able to patch it using the method described in
comment #14. The method described in comment #15 doesn't seem to have
any affect.

Best regards,
Markus Lindberg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574270

Title:
  applications segfault systematically with tsocks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tsocks/+bug/1574270/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs