Opkg update - missing new line character at end of file!

Issue:
Running opkg update results in all signature checks passing, but it also collects errors. 16 lines of parse_from_stream_nomalloc: Missing new line character at end of file! at the bottom of the command's run.

I am attempting to run opkg install luci, but that too results in the same set of errors. I have, using vi, reviewed dozens of files looking for the offending line, but have come up empty handed. Any and all help is much appreciated. Thanks!

Output of ubus call system board:

{
        "kernel": "5.15.167",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 4",
        "model": "Bananapi BPI-R3",
        "board_name": "bananapi,bpi-r3",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.5",
                "revision": "r24106-10cc5fcd00",
                "target": "mediatek/filogic",
                "description": "OpenWrt 23.05.5 r24106-10cc5fcd00"
        }
}

Output of ubus call system info:

{
        "localtime": 1735048039,
        "uptime": 1512,
        "load": [
                0,
                0,
                0
        ],
        "memory": {
                "total": 2090389504,
                "free": 1860853760,
                "shared": 27463680,
                "buffered": 8192,
                "available": 1861419008,
                "cached": 68583424
        },
        "root": {
                "total": 93852,
                "free": 23688,
                "used": 70164,
                "avail": 23688
        },
        "tmp": {
                "total": 1020696,
                "free": 993876,
                "used": 26820,
                "avail": 993876
        },
        "swap": {
                "total": 0,
                "free": 0
        }
}

Since the official firmware includes LuCI, can you tell some background as to why you ran this command?

I just recently installed Openwrt and have been trying to access the Luci web interface, but the IP address won't resolve. So, I thought perhaps I didn't have luci installed, so went down this rabbit hole.

So you're connected via Ethernet to your freshly flashed OpenWrt on pi r3 and enter https://192.168.1.1 - and no joy?

Did you get a DHCP-assigned IP on your client?

To be clear, how are you connected to enter these commands - serial?

I am connected to the bananapi through serial UART > Putty.

I have the pi connected via ethernet to my ATT modem/router and tried https://192.168.1.1 and no joy indeed, just says This site can't be reached.

Did you get a DHCP-assigned IP on your client?

I do not believe so, but I am brand new to this and learning as I go along.

How would I know if I did?

I am reviewing the /base-system/dhcp page currently.

For further clarification, the missing new line error started when I tried install adguardhome through opkg. That is when I tried the luci web interface and hit my current wall/issue.

You lost me. I thought you wanted to access your web GUI. Why are you plugged into a modem?

Can you detail what you wish to accomplish?

I do. Perhaps I am mis-speaking.

The Pi is connected via ethernet to my router/modem and to my Windows PC via UART/serial (using Putty to interact).

I have just started the basic config of Openwrt, following the user guide.

To get an IP, connect via Ethernet. Then browse to https://192.168.1.1

My end-goal, currently, is to install adguardhome to configure it along with the dns/dhcp settings as suggested in the base-system user guide.

First, make a network connection to your OpenWrt from the Windows machine:

Then you can:

  • access LuCI web GUI
  • establish Internet
  • install AdguardHome

Thank you! I didn't realize I had to be connected to the Pi via ethernet to my PC. Testing now.

1 Like

@lleachii

Concerned that I had changed something, I restored factory defaults using firstboot && reboot.

Once everything finished running, I went to https://192.168.1.1 and can finally login! Thanks for all of your help!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.