Results 1 to 9 of 9

Thread: 'apt-get install' not working on fresh copy of Ubuntu 17.04

  1. #1
    Join Date
    Sep 2018
    Beans
    4

    Thumbs down 'apt-get install' not working on fresh copy of Ubuntu 17.04

    So I have installed a fresh copy of Ubuntu Server 17.04, and its running smoothly. However, I cannot use the command 'apt-get' to install packages.

    I tried typing 'sudo apt-get install xinit,' however I got an error 'Unable to locate package xinit.'

    I tried the command for other packages but was greeted with the exact same error. I am able to ping other websites, so I must have an internet connection. I've also tried updating, rebooting and checking sources.list and haven't found any obvious problems.

    What can I try?

  2. #2
    Join Date
    Oct 2006
    Beans
    58,286

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    The error is telling you what the problem is, it cannot locate the package. Most likely because you are using an end of life unsupported version of Ubuntu and the repositories for 17.04 have been moved, you can either amend your sources.list file to point to the correct location or better, use a currently supported version of Ubuntu.

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    It won't work because 17.04 is no longer supported and the package archives have been removed.
    Best to grab a clean fresh copy of a supported release such as 16.04 or 18.04.

    ninja'd by howefield
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    Sep 2018
    Beans
    4

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    I have tried to update, but ran into the same problem.

    What should be in my sources.list file?

  5. #5
    Join Date
    Sep 2018
    Beans
    4

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    I wasn't able to find a version of 18.04 which doesn't use AMD. I could try 16.04, but I didn't think that would be more supported than 17.

  6. #6
    Join Date
    May 2014
    Location
    /home
    Beans
    10,929
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    What does AMD have to do with it? Can you only use 32 bit? AMD64 just means it is a 64 bit install

  7. #7
    Join Date
    Oct 2006
    Beans
    58,286

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    Quote Originally Posted by sporek View Post
    I wasn't able to find a version of 18.04 which doesn't use AMD. I could try 16.04, but I didn't think that would be more supported than 17.
    16.04 is a Long Term Support release meaning it gets 5 years of updates, as 14.04 before it did and 18.04 does now, ie, even numbered years (April releases). All the rest get nine months updates/support.

  8. #8
    Join Date
    Sep 2018
    Beans
    4

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    Im on 18.04 now and it seems to be working (for now at least). Thanks for the clarification!

  9. #9
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: 'apt-get install' not working on fresh copy of Ubuntu 17.04

    it seems to be working (for now at least).
    It should keep on keeping on for the foreseeable future.
    if you feel you've found the solution works, please mark this thread as solved.
    so others with the same problem might easily find it.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •