octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56721] pkg list command gives errors


From: Nadir Latif
Subject: [Octave-bug-tracker] [bug #56721] pkg list command gives errors
Date: Tue, 6 Aug 2019 08:23:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?56721>

                 Summary: pkg list command gives errors
                 Project: GNU Octave
            Submitted by: nadirlc
            Submitted on: Tue 06 Aug 2019 12:23:34 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Nadir Latif
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When running the command: pkg list -forge, it gives a network error. I checked
the syslog file and it showed several warning messages from AppArmor.

I got the same error on Ubuntu 19.04 after installing Octave from a snap
package. The problem was that Apparmor was blocking requests to network
resources. The problem was corrected by editing the Octave Apparmor profile
file. The following steps fixed the problem:

1. Add following rules to the file:
/var/lib/snapd/apparmor/profiles/snap.octave.octave. The rules should be added
to the bottom of the file, just before the closing parenthesis
Add following rules:
owner @{HOME}/.bash_logout r,
owner @{HOME}/.xinputrc r,
owner @{HOME}/.pam_environment r,
owner @{HOME}/.bashrc r,
owner @{HOME}/.bash_history r,
owner @{HOME}/.profile r,
owner @{HOME}/.cache/mesa_shader_cache/index rw,
owner @{HOME}/.sudo_as_admin_successful r,

/usr/share/ca-certificates/mozilla/* r,
/etc/ssl/certs/ r,
/run/systemd/resolve/stub-resolv.conf r,
/etc/hosts r,
/etc/host.conf r,
/etc/ssl/certs/ca-certificates.crt r,
network inet stream,
network inet6 dgram,
network inet dgram,

2. Reload the Octave Apparmor profile using the command: sudo apparmor_parser
-r /var/lib/snapd/apparmor/profiles/snap.octave.octave

3. Restart Octave

4. Run the command pkg list -forge




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56721>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]