Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: `ucf' is missing final newline <- My apt-get suddenly doesn't work

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Beans
    7

    Question `ucf' is missing final newline <- My apt-get suddenly doesn't work

    Hi all!

    First of all, nice distro, nice community!

    Yesterday i wantet to install gFTP. So as always, i typed: 'Sudo apt-get install gFTP'
    But after it has downloaded, i get the following error, when it's trying to install:

    /var/cache/apt/archives/gftp-text_2.0.17-6_i386.deb (--unpack):
    files list file for package `ucf' is missing final newline
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I just thought, that it was only gFTP i had problems with.
    But now i have discovered, that no matter what program i try to install, i get the samme error

    I'm completly new to linux, so maybe this is a very stupid question.

    Also, sorry for my bad english. But english isn't mu native language.

  2. #2
    Join Date
    Jan 2005
    Beans
    7

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    Aren't there anyone who can help me? Or do i have to reinstall Ubuntu?

  3. #3
    Join Date
    Oct 2004
    Beans
    369
    Distro
    Gutsy Gibbon Testing

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    i have the same problem

  4. #4
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    Try:

    sudo dpkg --clear-avail

    Did you have any nasty (non-official) repositories in your list? How about unofficial packages? (like skype or ymessenger)

  5. #5
    Join Date
    Oct 2004
    Beans
    369
    Distro
    Gutsy Gibbon Testing

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    That didnt work. Still the same error.

    I only had backports + wesnoth as "unofficial repos". I commented those, run an apt-get update but still the same problem.

  6. #6
    Join Date
    Sep 2005
    Beans
    1

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    I had a similar problem after fsck corrupted some of my files during a fix, and the way that I got around the problem was by moving the entire /var/lib/dpkg/info to /var/lib/dpkg/info_moved, and create a new info dir. I then successfully installed a random pkg (the 'acct' pkg) using synaptic. Since this worked fine, I moved the acct files in the new info dir to the info_moved directory, and then moved the entire info_moved directoy back to info. Phew.

    That is to say:

    # mv /var/lib/dpkg/info/ /var/lib/dpkg/info_moved

    # mkdir /var/lib/dpkg/info

    <installed the acct pkg using synaptic>

    # mv /var/lib/dpkg/info/* /var/lib/dpkg/info_moved

    # rm /var/lib/dpkg/info

    # mv /var/lib/dpkg/info_moved /var/lib/dpkg/info

    Voila
    Last edited by oxlarge; September 22nd, 2005 at 01:04 AM. Reason: Incorrect "to" directory specified

  7. #7
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    I attempted to do this, but it appears that after updating to "Dapper", I no longer have permission to access/alter most files.

    So far for me, Ubuntu =

  8. #8
    Join Date
    Jul 2006
    Beans
    3

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    I'm having similar issues with my Dell Inspiron 8200 laptop.

    Did a fresh clean install... first thing i did was upgrade everything the update manager flagged (about 90 updates), i let it fly, new kernel, then x stops booting.

    Got the same error as IrIT, except i'm getting it trying to apt-get install nvidia-glx to reconfig X... nice recursive bug of DOOM

    I'll post if i come up with a solution

    =)

  9. #9
    Join Date
    Apr 2006
    Beans
    4

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    Hello.

    I had a similar problem with another package.
    I spent a lot of time trying to fix and I finally managed to do it.
    Here's what I did:
    1. Edit the file /var/lib/dpkg/status , look for the listing for the broken package, remove the info for that package.
    2. mv /var/lib/dpkg/info /var/lib/dpkg/info_old
    3. mkdir /var/lib/dpkg/info
    4. apt-get update, apt-get -f install
    5. mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
    6. rm -f /var/lib/dpkg/info
    7. mv -f /var/lib/dpkg/info_old /var/lib/dpkg/info

    I don't know if all the steps are necessary, maybe 1 and 4 are enough.

  10. #10
    Join Date
    Feb 2008
    Location
    NC, USA
    Beans
    24
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: `ucf' is missing final newline <- My apt-get suddenly doesn't work

    Quote Originally Posted by hordur View Post
    Hello.

    I had a similar problem with another package.
    I spent a lot of time trying to fix and I finally managed to do it.
    Here's what I did:
    1. Edit the file /var/lib/dpkg/status , look for the listing for the broken package, remove the info for that package.
    2. mv /var/lib/dpkg/info /var/lib/dpkg/info_old
    3. mkdir /var/lib/dpkg/info
    4. apt-get update, apt-get -f install
    5. mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/
    6. rm -f /var/lib/dpkg/info
    7. mv -f /var/lib/dpkg/info_old /var/lib/dpkg/info

    I don't know if all the steps are necessary, maybe 1 and 4 are enough.


    This solution worked for me. (libhtml-tree-perl) was the offending package. I only did steps 1 and 4 just to see and it did work.

Page 1 of 2 12 LastLast

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
  •