Xubuntu 19.0.4 Unable to install any packages without reinstalling java installer

I cannot install oracle-java12-installer due to being unable to accept the license agreement through the terminal. Furthermore, I am unable to install, remove, or purge any packages without reinstalling the oracle-java12-installer. It is as if oracle’s Java has locked down dpkg.

apt upgrade does not see apt-offline packages

I’m trying to update my Ubuntu 18.04 computer that does not have internet connection. However the process is failing when I try to run sudo apt upgrade. I have checked a couple of other links like: sol1, sol2 and sol3.

I have set up apt-offline on my offline computer we can call OC1, and I have also set it up on my online computer we can call OC2. I set up a signature file on my OC1, I then bring the file over to OC2, and use the command sudo apt-offline get apt-offline.sig --bundle apt-offline-update.zip. It downloads all the packages to that zip file and I then bring that file over to OC1.

Great at this point everything is normal and running as I expect it to. Now I install the package with this command: sudo ./apt-offline install /home/fletchy/Desktop/MyPC/apt-offline-update.zip I select Yes (Y) when prompted to install and it installs the packages. However it just syncs them all. However I suppose that make sense because now I would just do a normal sudo apt upgrade and I’ll update and I’ll be good to go. However, when I run sudo apt upgrade it runs as if its looking at the internet to install these packages not my cache or directories.

I get errors like:

Err:## http://... Could not resolve 'us.archive.ubuntu.com' 
E: Failed to fetch http....deb Could not resolve 'us.archive.ubuntu.com' 

What I would expect to get is a successful install of the packages and update of the system. Perhaps I’m missing something small, I’ve used Linux for awhile now but never had to update packages offline until recently and I’m encountering this problem. I’ve attempted to reboot the system, and restart the entire update process from scratch.

How to remove the packages causing GPG error at once

So there are two PPA causing GPG warning during sudo apt update

W: GPG error: https://brave-browser-apt-release.s3.brave.com bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4FE13824E3FFC656 E: The repository 'https://brave-browser-apt-release.s3.brave.com bionic InRelease' is not signed. 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. W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45 E: The repository 'http://repository.spotify.com stable InRelease' is not signed. 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. 

I want to remove these PPA from my system how to do that at once?

grep -r 'repository.spotify.com ' /etc/apt 

Ouput

/etc/apt/sources.list.d/spotify.list:deb http://repository.spotify.com stable non-free   grep -r 'brave-browser-apt-release.s3.brave.com' /etc/apt 

Output

/etc/apt/sources.list.d/brave-browser-release-bionic.list:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main /etc/apt/sources.list.d/brave-browser-release-bionic.list.save:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main 

Why does installing wine (for example) require removing 2GB of good packages?

I have a situation where:

sudo apt-get install winetricks 

Results in:

 The following packages were automatically installed and are no longer required:      aglfn apturl apturl-common asymptote-doc biber ca-certificates-java catdoc cdparanoia cdrskin cmake-data context      ...  Use 'sudo apt autoremove' to remove them.  The following additional packages will be installed:      fonts-wine libwine-development wine-development wine64-development  Suggested packages:      ttf-mscorefonts-installer winbind playonlinux wine-binfmt dosbox libwine-gecko-2.47 wine64-development-preloader aria2 tor  Recommended packages:      libcapi20-3 libodbc1 libosmesa6 wine32-development  The following packages will be REMOVED      appmenu-qt asymptote cdrdao chromium-codecs-ffmpeg-extra clang clang-6.0 cmake cmake-qt-gui compiz compiz-gnome dvd+rw-tools      eog evince firefox g++-5 g++-5-multilib g++-9 gcc-5 gcc-5-multilib gcc-9 gcj-5-jre-lib gfortran-5 gnome-sudoku      ...  After this operation, 2,032 MB disk space will be freed.  Do you want to continue? [Y/n] 

Why? I don’t understand why installing winetricks would possibly cause g++-9 and spotify-client (and 2GB of utterly essential applications) to be deleted. Can I not use these packages simultaneously?

EDIT: It has even deleted my ubuntu-desktop and nautilus

I gained access to wine via

sudo add-apt-repository ppa:ubuntu-wine/pp 

I am on 18.04

Ethernet problem, Not receiving packages

I’m having problems with the connection of my Ethernet.

Even when the interface is UP:

enp57s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 80:fa:5b:6a:a5:d4 brd ff:ff:ff:ff:ff:ff 

I’m able to send packages but I’m not able to receive them

enp57s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000     link/ether 80:fa:5b:6a:a5:d4 brd ff:ff:ff:ff:ff:ff     RX: bytes  packets  errors  dropped overrun mcast        0          0        0       0       0       0            TX: bytes  packets  errors  dropped carrier collsns      340265     1877     0       0       0       0    

The logs of the network manager usually show this:

NetworkManager[1033]: <info>  [1570450750.2616] manager: NetworkManager state is now CONNECTED_GLOBAL NetworkManager[1033]: <info>  [1570450888.9975] policy: auto-activating connection 'Wired_connection_1' NetworkManager[1033]: <info>  [1570450889.0014] device (enp57s0f1): Activation: starting connection 'Wired_connection_1' (21a7b2ee-5094-3939-9513-c138d8b2edab) NetworkManager[1033]: <info>  [1570450889.0024] device (enp57s0f1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') NetworkManager[1033]: <info>  [1570450889.0031] device (enp57s0f1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') NetworkManager[1033]: <info>  [1570450889.0040] device (enp57s0f1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed') NetworkManager[1033]: <info>  [1570450889.0045] dhcp4 (enp57s0f1): activation: beginning transaction (timeout in 45 seconds) NetworkManager[1033]: <info>  [1570450889.0066] dhcp4 (enp57s0f1): dhclient started with pid 10891 dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 3 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 7 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 14 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 15 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 18 (xid=0x58746c62) NetworkManager[1033]: <warn>  [1570450934.0052] dhcp4 (enp57s0f1): request timed out NetworkManager[1033]: <info>  [1570450934.0054] dhcp4 (enp57s0f1): state changed unknown -> timeout NetworkManager[1033]: <info>  [1570450934.0391] dhcp4 (enp57s0f1): canceled DHCP transaction, DHCP client pid 10891 NetworkManager[1033]: <info>  [1570450934.0392] dhcp4 (enp57s0f1): state changed timeout -> done NetworkManager[1033]: <info>  [1570450934.0409] device (enp57s0f1): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed') NetworkManager[1033]: <warn>  [1570450934.0431] device (enp57s0f1): Activation: failed for connection 'Wired_connection_1' NetworkManager[1033]: <info>  [1570450934.0439] device (enp57s0f1): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') 

If I check the status of copper cables everything looks ok

Interface Speed Local pair Pair length        Remote pair Pair status --------- ----- ---------- ------------------ ----------- -------------------- Gi0/3     1000M Pair A     41   +/- 10 meters Pair B      Normal                               Pair B     41   +/- 10 meters Pair A      Normal                               Pair C     41   +/- 10 meters Pair D      Normal                               Pair D     41   +/- 10 meters Pair C      Normal    

The computer seems to be connected when I search the status of the interfaces in the swicth

Gi0/3     A02 - Workstation  connected    20         a-full a-1000 10/100/1000BaseTX 

Also the switch knows the computer’s mac address:

           Mac Address Table -------------------------------------------  Vlan    Mac Address       Type        Ports ----    -----------       --------    -----   20    80fa.5b6a.a5d4    DYNAMIC     Gi0/3 

The switch seems to send the packages to the computer but they never arrive

GigabitEthernet0/3 is up, line protocol is up (connected)    Description: A02 - Workstation   MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,       reliability 255/255, txload 1/255, rxload 1/255   Encapsulation ARPA, loopback not set   Keepalive set (10 sec)   Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX   input flow-control is off, output flow-control is unsupported    ARP type: ARPA, ARP Timeout 04:00:00   Last input never, output 00:00:07, output hang never   Last clearing of "show interface" counters 2w0d   Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1886   Queueing strategy: fifo   Output queue: 0/40 (size/max)   5 minute input rate 1000 bits/sec, 1 packets/sec   5 minute output rate 0 bits/sec, 0 packets/sec      5369157 packets input, 905525711 bytes, 0 no buffer      Received 27215 broadcasts (20150 multicasts)      0 runts, 0 giants, 0 throttles       0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored      0 watchdog, 20150 multicast, 0 pause input      0 input packets with dribble condition detected      7547468 packets output, 3260967444 bytes, 0 underruns      0 output errors, 0 collisions, 0 interface resets      0 unknown protocol drops      0 babbles, 0 late collision, 0 deferred      0 lost carrier, 0 no carrier, 0 pause output      0 output buffer failures, 0 output buffers swapped out 

Finally, for some reason, if I boot up my machine with my Ethernet cable plugged in, my wired connection will not work: even if I replug it, even if I tell my laptop to forget the network. However, if I boot up my system with my Ethernet cable unplugged, and then plug it it after it lands on the desktop, it works just fine. The Wi-Fi works perfectly fine regardless.

Download multiple packages in parallel from a single repository with apt?

I’m painfully watching my apt dist-upgrade command download each package in a very long list, and what makes it painful is that packages are downloaded one-by-one. I fail to see why this process couldn’t be sped up by downloading multiple packages simultaneously!

For example, if apt is downloading Chrome (PPA), Syncthing (PPA), and Ubuntu system updates (non-PPA), three simultaneous downloads will begin, one for Chrome, one for Syncthing, and one for the Ubuntu system updates.

Since all update packages are downloaded before any installation even begins, I don’t see any reason why multiple packages for Ubuntu system updates coming from a single repository can’t be downloaded in parallel.

I would really like to know if anyone knows a way to make this happen? Can I downloaded multiple package upgrade files in parallel from a single repository when running apt dist-upgrade or apt upgrade?

Unable to correct problems, you have held broken packages. HELP!

I have some problems downloading and installing not one but several programs/software et cetera.

This is what I get every time: some broken packages. I tryed every single solution suggested in every single posted question of people with the same problem. Nothing worked.

Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  i3 : Depends: i3-wm (= 4.16.1-1~~xenial1) but it is not going to be installed       Recommends: i3lock (>= 2.2) but it is not going to be installed       Recommends: suckless-tools but it is not installable       Recommends: i3status (>= 2.3) but it is not going to be installed       Recommends: dunst but it is not installable E: Unable to correct problems, you have held broken packages.```  My ubuntu version is the 16.04.      

How can I get *ALL* the info for available packages in apt at once?

I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. However, I’m interested in the same list but with the most recent version. Is it possible?

I also know that I can loop over the package names and run apt-cache show pkgName, but I do not want to make multiple queries to apt-cache. I want to query it only once or use another tool or another available resource that could give me this info.

Packages Manager (Upgrade) and Software Center don’t work in Ubuntu 19.04

I upgraded one of my desktop PCs from Ubuntu Studio 18.04.3 to 19.04.

Now, the Packages Manager (GUI to Upgrade packages) and the Software Center don’t work!

Both apps start to run but… They are indicating that something are doing, but… It seems to wait forever I don’t know what!

What’s wrong here?

How can I fix it?