Problems following systems-flush

MymsMan

Ad detector
Is there a problem with downloading the lstest 1.4.4-4 webif?

After several efforts to find a usable USB stick I installed the system-flush and it appeared to install correctly and, as expected, it required me to go through the Humax system installation wizard.

While I was initially able to access the webif problems started when I attempted to run the fix-flash-packages diagnostic.
I was then given the 'Custom Firmware Successfully Installed! ' menu but when I tried the Download & Install button it failed unable to find the Webif package
Code:
Downloading and installing full web interface...
This may take some time depending on your Internet connection speed.




Connection to online repository at http://hpkg.tv successful!

Updating package list...

Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.
Updated list of available packages in /mod/var/opkg/base.
Installing webif (1.4.4-4) to root...
Collected errors:
* opkg_download_pkg: Package webif is not available from any configured src.
* opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package webif.

Error installing packages. Please try again.
opkg update gives me
Code:
opkg update                            
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                  
Updated list of available packages in /mod/var/opkg/base.
opkg upgrade gives no output
The fix-flash-packages says:
Code:
Menu version 1.23                                                                   
                                                                                    
      /-------------------------\                                                   
      |  T E L N E T   M E N U  |                                                   
      \-------------------------/                                                   
                                                                                    
  [ Humax HDR-Fox T2 (humax) 1.03.12/3.13 ]                                         
                                                                                    
   maint - Restart into maintenance mode.                                           
    safe - Enable safe mode on next boot.                                           
     rma - Enable return-to-manufacturer (RMA) mode.                                 
   reset - Reset custom firmware environment.                                       
   webif - Install web interface and supporting packages.                           
  fixweb - Re-install web interface.                                                 
    stat - Show current activity.                                                   
       x - Exit and close connection.                                               
  reboot - Reboot the Humax.                                                         
    diag - Run a diagnostic.                                                         
     cli - System command line (advanced users).                                     
                                                                                    
Please select option: diag                                                           
                                                                                    
Enter the diagnostic name (or press return to cancel): fix-flash-packages           
Are you sure you wish to run diagnostic 'fix-flash-packages'? [Y/N] y               
Running: fix-flash-packages                                                         
Re-installing boot-settings                                                         
Removing package boot-settings from root...                                         
Installing boot-settings (1.0.4) to root...                                         
Downloading http://hpkg.tv/hdrfoxt2/base/boot-settings_1.0.4_mipsel.opk.             
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package boot-settings.                           
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing crashdiag                                                             
Removing package crashdiag from root...                                             
Installing crashdiag (1.1) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/crashdiag_1.1_mipsel.opk.                   
Configuring crashdiag.                                                               
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing dbupdate                                                               
Removing package dbupdate from root...                                               
Installing dbupdate (1.0.0) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/dbupdate_1.0.0_mipsel.opk.                 
Configuring dbupdate.                                                               
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing disable-dso                                                           
Removing package disable-dso from root...                                           
Installing disable-dso (0.3-1) to root...                                           
Downloading http://hpkg.tv/hdrfoxt2/base/disable-dso_0.3-1_mipsel.opk.               
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package disable-dso.                             
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing disable-ota                                                           
Removing package disable-ota from root...                                           
Installing disable-ota (1.0.3-4) to root...                                         
Downloading http://hpkg.tv/hdrfoxt2/base/disable-ota_1.0.3-4_mipsel.opk.             
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package disable-ota.                             
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing fan                                                                   
Removing package fan from root...                                                   
Installing fan (1.0.0) to root...                                                   
Downloading http://hpkg.tv/hdrfoxt2/base/fan_1.0.0_mipsel.opk.                       
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package fan.                                     
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing multienv                                                               
Removing package multienv from root...                                               
Installing multienv (1.7-1) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/multienv_1.7-1_mipsel.opk.                 
Configuring multienv.                                                               
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing multimode                                                             
Removing package multimode from root...                                             
Installing multimode (1.0.2) to root...                                             
Downloading http://hpkg.tv/hdrfoxt2/base/multimode_1.0.2_mipsel.opk.                 
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package multimode.                               
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing newk                                                                   
Removing package newk from root...                                                   
Installing newk (1.0.5-1) to root...                                                 
Downloading http://hpkg.tv/hdrfoxt2/base/newk_1.0.5-1_mipsel.opk.                   
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package newk.                                   
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing opkg-beta                                                             
Removing package opkg-beta from root...                                             
umount: can't umount /etc/opkg: Invalid argument                                     
You can force removal of packages with failed prerm scripts with the option:         
        --force-remove                                                               
No packages removed.                                                                 
Package opkg-beta (1.1) installed in root is up to date.                             
Collected errors:                                                                   
 * pkg_run_script: package "opkg-beta" prerm script returned status 1.               
 * opkg_remove_pkg: not removing package "opkg-beta", prerm script failed           
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing redring                                                               
Removing package redring from root...                                               
Installing redring (2.20-1) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/redring_2.20-1_mipsel.opk.                 
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package redring.                                 
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing rsvsync                                                               
Removing package rsvsync from root...                                               
Installing rsvsync (1.1.12-1) to root...                                             
Downloading http://hpkg.tv/hdrfoxt2/base/rsvsync_1.1.12-1_mipsel.opk.               
Configuring rsvsync.                                                                 
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing tmenu                                                                 
Removing package tmenu from root...                                                 
Installing tmenu (1.22) to root...                                                   
Downloading http://hpkg.tv/hdrfoxt2/base/tmenu_1.22_mipsel.opk.                     
Configuring tmenu.                                                                   
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing tunefix                                                               
Removing package tunefix from root...                                               
Installing tunefix (1.8.0) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/tunefix_1.8.0_mipsel.opk.                   
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package tunefix.                                 
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing tweak                                                                 
Removing package tweak from root...                                                 
Installing tweak (1.0) to root...                                                   
Downloading http://hpkg.tv/hdrfoxt2/base/tweak_1.0_mipsel.opk.                       
Configuring tweak.                                                                   
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing undelete                                                               
Removing package undelete from root...                                               
Installing undelete (1.6-4) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/undelete_1.6-4_mipsel.opk.                 
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package undelete.                               
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
Re-installing virtual-disk2                                                         
Removing package virtual-disk2 from root...                                         
Installing virtual-disk2 (2.0-2) to root...                                         
Downloading http://hpkg.tv/hdrfoxt2/base/virtual-disk2_2.0-2_mipsel.opk.             
Configuring virtual-disk2.                                                           
Downloading http://hpkg.tv/hdrfoxt2/base/Packages.gz.                               
Inflating http://hpkg.tv/hdrfoxt2/base/Packages.gz.                                 
Updated list of available packages in /mod/var/opkg/base.                           
                                                                                    
Press return to continue:
 
I have uninstalled opkg-beta and attemped to specify the current non-beta but it still fails :(
Code:
opkg --force-downgrade install http://hummypkg.org.uk/hdrfoxt2/base/webif_1.4.4-1_mipsel.opk                                                         
Downloading http://hummypkg.org.uk/hdrfoxt2/base/webif_1.4.4-1_mipsel.opk.           
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package webif.

Getting a bit desperate now
 
After a system flush, you will need to force reinstall opkg-beta as it lives in flash. If you re-install it now then hopefully you'll be hooked back into the beta repository.
 
:(
Code:
humax /mnt/hd2/mod # opkg install opkg-beta                                         
Installing opkg-beta (1.1) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/opkg-beta_1.1_mipsel.opk.                   
Installing webif (1.4.4-4) to root...                                               
Collected errors:                                                                   
 * opkg_download_pkg: Package webif is not available from any configured src.       
 * opkg_install_pkg: Failed to download webif. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package opkg-beta.
 
I've moved the webif packages over from beta to the standard repository.. does that help?
 
Does nugget need to be updated? I have just tried to update the WebIF and it fails stating nugget needs to be at version >= 0.99. I and currently on v 0.98-3. No update for nugget appears to be available.
 
Better but is also looking for nugget
Code:
opkg install webif                                             
Installing webif (1.4.4-4) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.4.4-4_mipsel.opk.                   
Installing nugget (0.99) to root...                                                 
Collected errors:                                                                   
 * opkg_download_pkg: Package nugget is not available from any configured src.       
 * opkg_install_pkg: Failed to download nugget. Perhaps you need to run 'opkg update'
?                                                                                   
 * opkg_install_cmd: Cannot install package webif.
 
nugget 0.99 is definitely still in beta, so is your beta source configured?
Run /mod/boot/xinit.d/opkg-beta and try again..
 
OK, I realise this thread isn’t for me, but I have now enabled beta packages and have updated nugget to v 0.99.

A bit confusing to have one package not in beta, but has a dependency that is.
 
I'm stuck in a Chicken & Egg situation where I can't install opkg-beta because I don;t have nugget and cant install nugget 0.99 because I don't have opkg-beta though it still knows about the beta packages so I can't install a non-beta version!

Code:
humax /mnt/hd2/mod # /mod/boot/xinit.d/opkg-beta
/mod/bin/busybox/sh: /mod/boot/xinit.d/opkg-beta: not found      
                   
humax /mnt/hd2/mod # opkg install opkg-beta                                         
Installing opkg-beta (1.1) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/opkg-beta_1.1_mipsel.opk.                   
Installing webif (1.4.4-4) to root...                                               
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.4.4-4_mipsel.opk.                   
Installing nugget (0.99) to root...                                                 
Configuring webif.                                                                   
SMART: (PASSED)                                                                     
startstop: 12170 realloc: 0 hours: 32801 spinretry: 0 pending: 0 offline: 0         
Queue database is up-to-date.                                                       
Collected errors:                                                                   
 * resolve_conffiles: Existing conffile /mod/webif/html/css/EXTRA.css is different fr
om the conffile in the new package. The new conffile will be placed at /mod/webif/htm
l/css/EXTRA.css-opkg.                                                               
 * opkg_download_pkg: Package nugget is not available from any configured src.       
 * opkg_install_pkg: Failed to download nugget. Perhaps you need to run 'opkg update'
?                                                                                   
 * opkg_install_cmd: Cannot install package opkg-beta.
 
Tried again and it said all was up to date despite the error messages :o_O:

Will have to await a break in viewing to reboot now but hopefully OK now

Wondering what went wrong.
Does fix-flash-packages restore the beta hooks?
 
A bit confusing to have one package not in beta, but has a dependency that is.
Yes, it was a mistake earlier when I moved the beta webif package over to base..

I'm stuck in a Chicken & Egg situation
Try this:

Code:
mkdir -p /var/lib/humaxtv_backup/mod/opkg

cat << EOM > /var/lib/humaxtv_backup/mod/opkg/opkg.conf
dest root /mod
lists_dir ext /mod/var/opkg
option tmp_dir /mod/var/opkg/tmp
src/gz base http://hpkg.tv/hdrfoxt2/base
src/gz beta http://hpkg.tv/hdrfoxt2/beta
EOM

mount --bind \
    /var/lib/humaxtv_backup/mod/opkg \
    /etc/opkg

opkg update
 
Thanks @af123 for your help yesterday,
I think that I am now back to normal (or as normal as I get)! I hope the flush improves the system stability and was worth the hassle.

After I got the webif back I discovered that a number of other packages needed to be reinstalled including abduco, fan, boot-settings , tunefix, ir, redring, undelete, newk and multimode.
I also needed to recreate he settings for some packages fan and boot-setings.

I realise the settings need to be stored in flash because the disk is not available early in boot but it would be useful if a duplicate copies of settings were kept on disk so that they could be restored, if necessary, by fix-flash-packages

I am also confused as to how afer I uninstalled opkg-beta, opkg still knew about webif 1.4.4.-4 and nugget .99, even when I attempted to installed the non beta version using the URL

Finally the opkg download command appears to be broken:
Code:
humax /mnt/hd2/mod # opkg download http://hummypkg.org.uk/hdrfoxt2/base/at_3.1.18_mipsel.opk
Collected errors:
 * opkg_download_cmd: Cannot find package http://hummypkg.org.uk/hdrfoxt2/base/at_3.1.18_mipsel.opk.

humax /mnt/hd2/mod # opkg install http://hummypkg.org.uk/hdrfoxt2/base/at_3.1.18_mipsel.opk
Downloading http://hummypkg.org.uk/hdrfoxt2/base/at_3.1.18_mipsel.opk.
Installing at (3.1.18) to root...
Configuring at.
 
...
Finally the opkg download command appears to be broken:
...
To download package at, you're meant to say opkg download at; if you want to download an explicit package URL, try
Code:
wget -U "" http://hummypkg.org.uk/hdrfoxt2/base/at_3.1.18_mipsel.opk
In that command an explicit "User Agent:" header value has to be specified because apparently the server blacklists "wget/..." (response "ERROR 403: Forbidden").
 
To download package at, you're meant to say opkg download at; if you want to download an explicit package URL, try
Code:
wget -U "" http://hummypkg.org.uk/hdrfoxt2/base/at_3.1.18_mipsel.opk
In that command an explicit "User Agent:" header value has to be specified because apparently the server blacklists "wget/..." (response "ERROR 403: Forbidden").
I wanted to be able to download explicit downlevel versions of webif and nugget to try and get around my problems so it seemed logical to me that Download should accept the same URL as install but common sense and computers don't get along.
I had tried wget and go the 403 error but didn't know enough to try -U, hopefully there won't be a next time to use that new knowledge!
 
The help for opkg is misleading. I think it should say something like
Rich (BB code):
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade                 Upgrade installed packages
        install <pkgnamesOrFiles>          Install package(s)
        configure <pkgnames>        Configure unpacked package(s)
        remove <pkgnames|regexp>    Remove package(s)
        flag <flag> <pkgnames>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
        list                    List available packages
        list-installed          List installed packages
        list-upgradable         List installed and upgradable packages
        list-changed-conffiles  List user modified configuration files
        files <pkgname>             List files belonging to <pkgname>
        search <file|regexp>    List package providing <file>
        info [pkgname|regexp]       Display all info for <pkgname>
        status [pkgname|regexp]     Display all status for <pkgname>
        download <pkgname>          Download <pkgname> to current directory
        compare-versions <v1> <op> <v2>
                            compare versions using <= < > >= = << >>
        print-architecture      List installable package architectures
        depends [-A] [pkgname|pat]+
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatrecommends[-A] [pkgname|pat]+
        whatsuggests[-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+

Options:
...
 
The help for opkg is misleading. I think it should say something like
I think the function would be more useful if it were
Rich (BB code):
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade                 Upgrade installed packages
        install <pkgnames|pkgURL|pkgfiles>          Install package(s)
        configure <pkgnames>        Configure unpacked package(s)
        remove <pkgnames|regexp>    Remove package(s)
        flag <flag> <pkgnames>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
        list                    List available packages
        list-installed          List installed packages
        list-upgradable         List installed and upgradable packages
        list-changed-conffiles  List user modified configuration files
        files <pkgname>             List files belonging to <pkgname>
        search <file|regexp>    List package providing <file>
        info [pkgname|regexp]       Display all info for <pkgname>
        status [pkgname|regexp]     Display all status for <pkgname>
        download <pkgname|pkgURL>          Download <pkgname> to current directory
        compare-versions <v1> <op> <v2>
                            compare versions using <= < > >= = << >>
        print-architecture      List installable package architectures
        depends [-A] [pkgname|pat]+
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatrecommends[-A] [pkgname|pat]+
        whatsuggests[-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+

Options:
...
 
Back
Top