I have looked at several threads and sites for a solution to this and have not found anything that works.  First I run:  sudo apt update   Which gives:  Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                           Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Reading package lists... Done                                                                    E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 18d 11h 52min 21s). Updates for this repository will not be applied. E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 18d 11h 53min 0s). Updates for this repository will not be applied. E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 18d 11h 52min 2s). Updates for this repository will not be applied.   I don't have enough experience to tell if these are issues that should be fixed or can be fixed.  Next I try to run:  sudo apt-get install g++   Which gives:  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:  g++ : Depends: gcc (&gt;= 4:7.3.0-3ubuntu2) but it is not going to be installed        Depends: g++-7 (&gt;= 7.3.0-12~) but it is not going to be installed        Depends: gcc-7 (&gt;= 7.3.0-12~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I did try following directions in other threads that I'm quite sure broke this issue a bit more than it had been before, but I don't know where to start.  EDIT: In accordance with steeldriver's comment on my VM's date and time settings, it was wrong and I set date &amp; time to automatic and ran timedatectl status which gave:                        Local time: Sat 2019-03-23 13:07:38 EDT                   Universal time: Sat 2019-03-23 17:07:38 UTC                         RTC time: Sat 2019-03-23 17:07:39                        Time zone: America/New_York (EDT, -0400)        System clock synchronized: yes systemd-timesyncd.service active: yes                  RTC in local TZ: no   So:  sudo apt update   Now gives:  Reading package lists... Done Building dependency tree        Reading state information... Done All packages are up to date.   But sudo apt-get install g++ gives an extremely long list of items that it says are "already up to date" but g++ is still not recognized as installed when using it.
122445
I am using Ansible to install the Nginx packages on my Slave1 server from Master server (Note- both Master &amp; Slave server's are having Ubuntu 18.04 and i am running these inside Docker containers), but everytime i am running the Ansible command to do this, getting below error. I am stuck here, what is the solution for this. Please heklp me in debugging this issue.  root@afb19093484e:/# ansible Slave1 -m apt -a "name=nginx state=present"   172.17.0.3 | FAILED! =&gt; {     "changed": false,      "cmd": "apt-get update",      "msg": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be applied.",      "rc": 100,      "stderr": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be applied.\n",      "stderr_lines": [         "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.",      ],
107883
This doubt is hitting me since 2-3 days, so I decided to test it myself. What I did is I installed Ubuntu 16.04.4 in VMWare and edited /etc/apt/sources.list and replaced xenial with bionic using:  sudo sed -i 's/xenial/bionic/g' /etc/apt/sources.list   Then I ran  sudo apt-get update &amp;&amp; sudo apt-get upgrade    I was able to upgrade to 18.04, confirmed by using lsb_release -a. However, I encountered some problems like:   apt does not have a stable CLI interface. Use with caution in scripts. unmet dependency of  python3-aptdaemon.pkcompat Release 'bionic-backports' for 'appstream' not found Broken Unity   I solved all the errors and installed gnome and gdm3.   So, I just want to know is it a good idea to edit sources.list? I know that my system might broke but is there any other specific reason not to use this.  Note: I tested this on Ubuntu 16.04 in VMWare to clear my doubts only.
95
The error I am having when trying to update my package list.  W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333  W: Failed to fetch http://ppa.launchpad.net/samrog131/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.
104893
I'm a new Ubuntu user, and when I try to run sudo apt update, it returns the following errors. Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Err:2 http://archive.ubuntu.com/ubuntu focal InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::23). - connect (101: Network is unreachable) W: Some index files failed to download. They have been ignored, or old ones used instead.  Can you help me to solve this problem? I'm using WSL 2 and Windows 10 using AMD graphic.
56594
I have tried to find some PPA's for Ubuntu 14.04 but didn't find any. So I tried to install the package for previous releases, with no luck and a lot of dependencies issues.
10773
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/_var_cuda-repo-8-0-local_Release N: Skipping acquire of configured file 'non-free/binary-arm64/Packages' as repository 'http://repository.spotify.com stable InRelease' doesn't support architecture 'arm64' E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   After I installed Jetpack for Jetson tx1, my ubuntu constantly tries to fetch arm updates. Is there a way to disable this?  EDIT:   $dpkg --print-architecture amd64  $dpkg --print-foreign-architectures i386 arm64   I see that arm64 is included in foreign architectures. How do I remove it?
19637
Getting below error message while issuing :  sudo apt-get update  Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB] Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 InRelease                                                                                                             Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                          Hit:4 http://ppa.launchpad.net/canonical-x/vulkan/ubuntu xenial InRelease                                                                                                 Hit:5 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 Release                                                                             Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease                                                   Ign:7 http://dl.google.com/linux/talkplugin/deb stable InRelease                                                      Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                    Ign:9 http://linux.dropbox.com/ubuntu wily InRelease                                            Hit:10 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease                               Get:12 http://dl.google.com/linux/chrome/deb stable Release [782 B]       Hit:13 http://dl.google.com/linux/talkplugin/deb stable Release                   Ign:14 https://apt.dockerproject.org/repo ubuntu-wily InRelease           Hit:15 https://apt.dockerproject.org/repo ubuntu-wily Release             Get:16 http://dl.google.com/linux/chrome/deb stable Release.gpg [181 B]   Hit:17 http://linux.dropbox.com/ubuntu wily Release                                   Get:20 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,191 B] Fetched 98.0 kB in 0s (118 kB/s)                                  Reading package lists... Done N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'   This cuts across various releases of ubuntu
85552
I am performing an update and its failing on the following:  The repository 'http://ppa.launchpad.net/izx/askubuntu/ubuntu xenial Release' does not have a Release file..   Running a local Ubuntu server 16.04
25359
I have followed all the instructions on .  In particular, I have run the following commands: sudo dpkg --add-architecture i386  wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'   The first three of the above seemed to work fine.  However, the last command gives me the following error: 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:  winehq-stable : Depends: wine-stable (= 5.0.0~bionic) E: Unable to correct problems, you have held broken packages.  I'm running Lubuntu 18.04.3 on a USB live stick.  (However, if I remember correctly, a couple days ago I got the exact same error on a normal hard disk Lubuntu 18.04.3 installation.) I've read that a lot of people get similar errors.  Unfortunately I haven't found any solutions online that worked. Any help would be much appreciated.  Thanks! EDIT:  Thanks for the comments and suggestions everyone.  I'll try them out later today. In the mean time, here's something I don't understand.  Ubuntu 18.04 has been around for almost two years now.  In all that time, surely somebody has successfully installed wine, right?  What did they do to get it working?
60745
I have four build servers that were all setup the same originally.  We've been using them to cross-compile C projects.  I'm trying to update them compile C++ natively as well.  Two of the servers I was able to install g++ on with no problem, the other two though give me 404 errors.  $ sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed:   g++-7 libstdc++-7-dev Suggested packages:   g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg libstdc++-7-doc The following NEW packages will be installed:   g++ g++-7 libstdc++-7-dev 0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded. Need to get 9,043 kB of archives. After this operation, 40.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.2   404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libstdc++-7-dev_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/g++-7_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_7.4.0-1ubuntu2.2_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I have confirmed that all four report the same version info.  $ uname -a Linux build_server4 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.2 LTS Release:        18.04 Codename:       bionic
72965
Please let me know how to remove certain repositories in Ubuntu 11.04. I am getting the following errors while updating.  sudo apt-get update  Err http://ppa.launchpad.net natty/main Sources                                      404  Not Found Err http://ppa.launchpad.net natty/main i386 Packages                                404  Not Found ......  E: Some index files failed to download. They have been ignored, or old ones used instead.
61079
I am running Ubuntu Bionic Beaver. I was trying to download the pantheon desktop environment on Ubuntu and it didn't work so I gave up. Now when I try to download themes or other things from the terminal I get an error code mentioning Elementary OS even though what I am downloading doesn't have to do with Elementary or pantheon. Here is what the terminal says:   jacob@jacob-MacBookPro:~$ sudo apt-add-repository ppa:tista/adapta -y …                                           E: The repository 'http://ppa.launchpad.net/elementary-os/testing/ubuntu bionic Release' does not have a Release file. 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. E: The repository 'http://ppa.launchpad.net/mpstark/elementary-tweaks-daily/ubuntu bionic Release' does not have a Release file. 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.
28941
sudo apt-get upgrade installs all updates, not just security updates. I know that I can use Update Manager to select only important security updates, but is there a way to do this from the command line?
23771
It started few days ago. I'm running sudo apt update command and it never ends. Terminal output is  Get:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:2 http://archive.canonical.com/ubuntu xenial InRelease                      Hit:3 http://ppa.launchpad.net/attente/java-non-latin-shortcuts/ubuntu xenial InRelease Hit:4 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:6 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease              Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]     Hit:8 http://dl.google.com/linux/chrome/deb stable Release                      Hit:9 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease            Fetched 341 kB in 2s (150 kB/s)   While this proccess system fan speed is boosted on my laptop and it's kinda annoying to listen to this. There is no excessive cpu activity though. Can you guys hint me why it happens?
44583
I just did a do-release-upgrade going from Ubuntu 16.04 to 17.04. However, now when I login via SSH I have the following message   Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-20-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server  0 packages can be updated. 0 updates are security updates.   My question is, how can I remove the   Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server   it wasn't there prior the release-upgrade  I checked and I am on Zesty  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 17.04 Release:    17.04 Codename:   zesty   My question is not, how can I remove this message, this I found. My question is more, is there a reason why this appears after a release-upgrade? Is this message something generic not taking into consideration the current version of Ubuntu? Or maybe my system is not updated properly?
75437
I am using a transparent proxy (other box). When I try to do an 'apt-get update' I get these warnings (in german):  ...  W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/restricted/source/Sources.gz  503  Service Unavailable  W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/source/Sources.gz  503  Service Unavailable  W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/multiverse/source/Sources.gz  503  Service Unavailable  W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/main/binary-i386/Packages.gz  503  Service Unavailable  W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/restricted/binary-i386/Packages.gz  503  Service Unavailable  W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-i386/Packages.gz  503  Service Unavailable  E: Einige Indexdateien konnten nicht heruntergeladen werden, sie wurden ignoriert oder alte an ihrer Stelle benutzt.   I changed ~.bashrc:  http_proxy=http://192.168.120.199:8080 https_proxy=https://192.168.120:8080 export http_proxy export https_proxy   I wrote on commandline:  export http_proxy=http://proxyusername:proxypassword@proxyaddress:proxyport sudo apt-get update   And I edited /etc/apt/apt.conf:  Acquire::http::proxy "http://192.168.120.199:8080/"; Acquire::ftp::proxy "http://192.168.120.199:8080/";   Nothing has worked.  Does anyone knows how to make apt-get working through a transparent proxy?  Regards,  ubuntu2man
63182
working with procedure  to update Ubuntu 18.04 offline machine, the sudo apt-offline install /path_to_downloaded_package_folder do not apply any updates/upgrades. The beginning of the massage I get is :   sudo apt-offline install ./updates_path/ No changelog available (Y) Yes. Proceed with installation (N) No, Abort. (C) Display changelog (?) Display this help message. What would you like to do next:  (y, N, ?)y Proceeding with installation ERROR: Path for keyring is invalid: /etc/apt/trusted.gpg gpgv: Signature made Mon 06 Jan 2020 08:17:27 AM MST gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) &lt;ftpmaster@ubuntu.com&gt;" gpgv: Signature made Mon 06 Jan 2020 08:18:52 AM MST gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) &lt;ftpmaster@ubuntu.com&gt;" gpgv: Signature made Mon 06 Jan 2020 08:18:25 AM MST gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) &lt;ftpmaster@ubuntu.com&gt;" gpgv: Signature made Thu 26 Apr 2018 05:38:40 PM MDT gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) &lt;ftpmaster@ubuntu.com&gt;" security.ubuntu.com_ubuntu_dists_bionic-security_InRelease synced. security.ubuntu.com_ubuntu_dists_bionic-security_Release synced. security.ubuntu.com_ubuntu_dists_bionic-security_Release.gpg synced.   What am I doing wrong?